Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SiWx917] - Adding autogen and config files for brd2605a devkit board #224

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions matter/si91x/siwx917/BRD2605A/autogen/RTE_Components.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// This file is autogenerated by Simplicity Configuration Tools.
// The contents of this file will be replaced in their entirety upon regeneration.
//
// Source template file: RTE_Components.h.jinja


#ifndef RTE_COMPONENTS_H
#define RTE_COMPONENTS_H

/* standard device header from emlib */
#define CMSIS_device_header "em_device.h"

/* components are auto-generated here */

#define RTE_RTOS_FreeRTOS_CORE

#define RTE_RTOS_FreeRTOS_CONFIG_RTOS2

#define RTE_RTOS_FreeRTOS_COROUTINE

#define RTE_RTOS_FreeRTOS_EVENTGROUPS

#define RTE_RTOS_FreeRTOS_TIMERS

#define RTE_RTOS_FreeRTOS_HEAP_3


#endif /* RTE_COMPONENTS_H */

/* This file is autogenerated by Simplicity Configuration Tools. */
/* The contents of this file will be replaced in their entirety upon regeneration. */
/* */
/* Source template file: RTE_Components.h.jinja */

54 changes: 54 additions & 0 deletions matter/si91x/siwx917/BRD2605A/autogen/sl_component_catalog.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#ifndef SL_COMPONENT_CATALOG_H
#define SL_COMPONENT_CATALOG_H

// APIs present in project
#define SL_CATALOG_MATTER_ACCESS_CONTROL_PRESENT
#define SL_CATALOG_MATTER_ADMINISTRATOR_COMMISSIONING_PRESENT
#define SL_CATALOG_MATTER_BASIC_INFORMATION_PRESENT
#define SL_CATALOG_MATTER_DESCRIPTOR_PRESENT
#define SL_CATALOG_MATTER_DIAGNOSTIC_LOGS_PRESENT
#define SL_CATALOG_MATTER_DOOR_LOCK_PRESENT
#define SL_CATALOG_MATTER_ETHERNET_NETWORK_DIAGNOSTICS_PRESENT
#define SL_CATALOG_MATTER_FIXED_LABEL_PRESENT
#define SL_CATALOG_MATTER_GENERAL_COMMISSIONING_PRESENT
#define SL_CATALOG_MATTER_GENERAL_DIAGNOSTICS_PRESENT
#define SL_CATALOG_MATTER_GROUP_KEY_MGMT_PRESENT
#define SL_CATALOG_MATTER_GROUPS_PRESENT
#define SL_CATALOG_MATTER_ICD_MANAGEMENT_PRESENT
#define SL_CATALOG_MATTER_IDENTIFY_PRESENT
#define SL_CATALOG_MATTER_LOCALIZATION_CONFIGURATION_PRESENT
#define SL_CATALOG_MATTER_NETWORK_COMMISSIONING_PRESENT
#define SL_CATALOG_MATTER_OPERATIONAL_CREDENTIALS_PRESENT
#define SL_CATALOG_MATTER_OTA_REQUESTOR_PRESENT
#define SL_CATALOG_MATTER_POWER_SOURCE_PRESENT
#define SL_CATALOG_MATTER_POWER_SOURCE_CONFIGURATION_PRESENT
#define SL_CATALOG_MATTER_SOFTWARE_DIAGNOSTICS_PRESENT
#define SL_CATALOG_MATTER_SWITCH_PRESENT
#define SL_CATALOG_MATTER_THREAD_NETWORK_DIAGNOSTICS_PRESENT
#define SL_CATALOG_MATTER_TIME_FORMAT_LOCALIZATION_PRESENT
#define SL_CATALOG_MATTER_USER_LABEL_PRESENT
#define SL_CATALOG_MATTER_BLE_PRESENT
#define SL_CATALOG_MATTER_WIFI_NETWORK_DIAGNOSTICS_PRESENT
bhmanda-silabs marked this conversation as resolved.
Show resolved Hide resolved
#define SL_CATALOG_BTN0_PRESENT
#define SL_CATALOG_SIMPLE_BUTTON_PRESENT
#define SL_CATALOG_SIMPLE_BUTTON_BTN0_PRESENT
#define SL_CATALOG_BTN1_PRESENT
#define SL_CATALOG_SIMPLE_BUTTON_BTN1_PRESENT
#define SL_CATALOG_LEDB_PRESENT
#define SL_CATALOG_SIMPLE_LED_PRESENT
#define SL_CATALOG_SIMPLE_LED_LEDB_PRESENT
#define SL_CATALOG_ULP_TIMER_PRESENT
#define SL_CATALOG_ULP_TIMER_TIMER0_PRESENT
#define SL_CATALOG_CMSIS_OS_COMMON_PRESENT
#define SL_CATALOG_DEVICE_INIT_NVIC_PRESENT
#define SL_CATALOG_EMLIB_CORE_PRESENT
#define SL_CATALOG_EMLIB_CORE_DEBUG_CONFIG_PRESENT
#define SL_CATALOG_FREERTOS_KERNEL_PRESENT
#define SL_CATALOG_KERNEL_PRESENT
#define SL_CATALOG_IOSTREAM_PRESENT
#define SL_CATALOG_MEMORY_MANAGER_PRESENT
#define SL_CATALOG_NVM3_PRESENT
#define SL_CATALOG_SEGGER_RTT_PRESENT
#define SL_CATALOG_SLEEPTIMER_PRESENT
bhmanda-silabs marked this conversation as resolved.
Show resolved Hide resolved

#endif // SL_COMPONENT_CATALOG_H
70 changes: 70 additions & 0 deletions matter/si91x/siwx917/BRD2605A/autogen/sl_event_handler.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#include "sl_event_handler.h"

#include "system_si91x.h"
#include "rsi_nvic_priorities_config.h"
#include "sli_siwx917_soc.h"
#include "rsi_board.h"
#include "rsi_debug.h"
#if SL_ICD_ENABLED
#include "sl_si91x_power_manager.h"
#include "rsi_wisemcu_hardware_setup.h"
#include "sl_si91x_power_manager_init.h"
#endif // SL_ICD_ENABLED
#include "SEGGER_RTT.h"
#include "sl_sleeptimer.h"
#include "sl_si91x_button_instances.h"
#include "sl_si91x_led_instances.h"
#include "sl_ulp_timer_instances.h"
#include "sl_iostream_rtt.h"
#include "cmsis_os2.h"
#include "sl_iostream_init_instances.h"

void sl_platform_init(void)
{
SystemCoreClockUpdate();
sl_si91x_device_init_nvic();
sli_si91x_platform_init();
RSI_Board_Init();
DEBUGINIT();
#if SL_ICD_ENABLED
sl_si91x_hardware_setup();
#endif // SL_ICD_ENABLED
osKernelInitialize();
}

void sl_kernel_start(void)
{
osKernelStart();
}

void sl_driver_init(void)
{
button_init_instances();
led_init_instances();
}

void sl_service_init(void)
{
#if SL_ICD_ENABLED
sl_si91x_power_manager_init();
sli_si91x_power_manager_configure_ram_and_peripheral();
#endif // SL_ICD_ENABLED
#if defined(DISPLAY_ENABLED) || defined(SL_ICD_ENABLED)
sl_sleeptimer_init();
#endif // DISPLAY_ENABLED || SL_ICD_ENABLED
sl_iostream_init_instances();
}

void sl_stack_init(void)
{
}

void sl_internal_app_init(void)
{
}

void sl_iostream_init_instances(void)
{
sl_iostream_rtt_init();
}

12 changes: 12 additions & 0 deletions matter/si91x/siwx917/BRD2605A/autogen/sl_event_handler.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifndef SL_EVENT_HANDLER_H
#define SL_EVENT_HANDLER_H

void sl_platform_init(void);
void sl_kernel_start(void);
void sl_driver_init(void);
void sl_service_init(void);
void sl_stack_init(void);
void sl_internal_app_init(void);
void sl_iostream_init_instances(void);

#endif // SL_EVENT_HANDLER_H
27 changes: 27 additions & 0 deletions matter/si91x/siwx917/BRD2605A/autogen/sl_iostream_handles.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#include "sl_iostream.h"
#include "sl_iostream_handles.h"
#include "string.h"

const sl_iostream_instance_info_t *sl_iostream_instances_info[] = {

&sl_iostream_instance_rtt_info,

};

const uint32_t sl_iostream_instances_count = sizeof(sl_iostream_instances_info) / sizeof(sl_iostream_instances_info[0]);

/***************************************************************************//**
* Get iostream instance handle for a given name
*
* @return Instance handle if it exist, NULL otherwise.
******************************************************************************/
sl_iostream_t *sl_iostream_get_handle(char *name)
{
for (uint32_t i = 0; i < sl_iostream_instances_count; i++) {
if (strcmp(sl_iostream_instances_info[i]->name, name) == 0) {
return sl_iostream_instances_info[i]->handle;
}
}

return NULL;
}
20 changes: 20 additions & 0 deletions matter/si91x/siwx917/BRD2605A/autogen/sl_iostream_handles.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#ifndef SL_IOSTREAM_HANDLES_H
#define SL_IOSTREAM_HANDLES_H
#include "sl_iostream.h"
#include "sl_iostream_rtt.h"


#ifdef __cplusplus
extern "C" {
#endif

extern const sl_iostream_instance_info_t *sl_iostream_instances_info[];
extern const uint32_t sl_iostream_instances_count;

sl_iostream_t *sl_iostream_get_handle(char *name);

#ifdef __cplusplus
}
#endif

#endif // SL_IOSTREAM_HANDLES_H
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#ifndef SL_IOSTREAM_INIT_INSTANCES_H
#define SL_IOSTREAM_INIT_INSTANCES_H

#include "sl_iostream.h"
#ifdef __cplusplus
extern "C" {
#endif

// Initialize iostream component(s) / instance(s)
void sl_iostream_init_instances(void);

#ifdef __cplusplus
}
#endif

#endif // SL_IOSTREAM_INIT_INSTANCES_H
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/***************************************************************************/ /**
* @file sl_si91x_button_instances.c.jinja
* @brief Button Driver Instances
*******************************************************************************
* # License
* <b>Copyright 2023 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
*
* The licensor of this software is Silicon Laboratories Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
******************************************************************************/

#include "sl_si91x_button_pin_config.h"
#include "sl_si91x_button_instances.h"
#include "sl_si91x_button_btn0_config.h"
#include "sl_si91x_button_btn1_config.h"

sl_button_t const button_btn0 = {
.port = SL_BUTTON_BTN0_PORT,
.pin = SL_BUTTON_BTN0_PIN,
.button_number = SL_BUTTON_BTN0_NUMBER,
#ifdef SL_BUTTON_BTN0_PAD
.pad = SL_BUTTON_BTN0_PAD,
#endif
.interrupt_config = SL_BUTTON_CONFIG_BTN0_INTR
};
sl_button_t const button_btn1 = {
.port = SL_BUTTON_BTN1_PORT,
.pin = SL_BUTTON_BTN1_PIN,
.button_number = SL_BUTTON_BTN1_NUMBER,
#ifdef SL_BUTTON_BTN1_PAD
.pad = SL_BUTTON_BTN1_PAD,
#endif
.interrupt_config = SL_BUTTON_CONFIG_BTN1_INTR
};

void button_init_instances(void)
{
sl_si91x_button_init(&button_btn0);
sl_si91x_button_init(&button_btn1);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/***************************************************************************/ /**
* @file sl_si91x_button_instances.h.jinja
* @brief Button Driver Instances
*******************************************************************************
* # License
* <b>Copyright 2023 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
*
* The licensor of this software is Silicon Laboratories Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
******************************************************************************/

#ifndef SL_SI91X_BUTTON_INSTANCES_H
#define SL_SI91X_BUTTON_INSTANCES_H

#include "sl_si91x_button.h"

extern const sl_button_t button_btn0;
extern const sl_button_t button_btn1;


void button_init_instances(void);
void sl_simple_button_init_instances(void);

#endif // BUTTON_INSTANCES_H
43 changes: 43 additions & 0 deletions matter/si91x/siwx917/BRD2605A/autogen/sl_si91x_led_instances.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/***************************************************************************/ /**
* @file sl_si91x_led_instances.c.jinja
* @brief Button Driver Instances
*******************************************************************************
* # License
* <b>Copyright 2023 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
*
* The licensor of this software is Silicon Laboratories Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
******************************************************************************/

#include "sl_si91x_led.h"
#include "sl_si91x_led_config.h"
#include "sl_si91x_led_instances.h"
sl_led_t const led_ledb = {
.port = SL_LED_LEDB_PORT,
.pin = SL_LED_LEDB_PIN,
.led_number = SL_LED_LEDB_NUMBER,
};

void led_init_instances(void)
{
sl_si91x_led_init(&led_ledb);
}
Loading
Loading