-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54400f8
commit fe44df4
Showing
13 changed files
with
322 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 31 additions & 35 deletions
66
matter/si91x/siwx917/BRD4338A/autogen/sl_component_catalog.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,31 @@ | ||
#ifndef SL_COMPONENT_CATALOG_H | ||
#define SL_COMPONENT_CATALOG_H | ||
|
||
// APIs present in project | ||
#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_LED0_PRESENT | ||
#define SL_CATALOG_SIMPLE_LED_PRESENT | ||
#define SL_CATALOG_SIMPLE_LED_LED0_PRESENT | ||
#define SL_CATALOG_LED1_PRESENT | ||
#define SL_CATALOG_SIMPLE_LED_LED1_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 | ||
#if defined(DISPLAY_ENABLED) || defined(SL_ICD_ENABLED) | ||
#define SL_CATALOG_SLEEPTIMER_PRESENT | ||
#ifdef DISPLAY_ENABLED | ||
#define SL_CATALOG_DMD_MEMLCD_PRESENT | ||
#define SL_CATALOG_GLIB_PRESENT | ||
#endif // DISPLAY_ENABLED | ||
#endif // DISPLAY_ENABLED || SL_ICD_ENABLED | ||
|
||
#endif // SL_COMPONENT_CATALOG_H | ||
#ifndef SL_COMPONENT_CATALOG_H | ||
#define SL_COMPONENT_CATALOG_H | ||
|
||
// APIs present in project | ||
#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_LED0_PRESENT | ||
#define SL_CATALOG_SIMPLE_LED_PRESENT | ||
#define SL_CATALOG_SIMPLE_LED_LED0_PRESENT | ||
#define SL_CATALOG_LED1_PRESENT | ||
#define SL_CATALOG_SIMPLE_LED_LED1_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_DMD_MEMLCD_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_GLIB_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 | ||
|
||
#endif // SL_COMPONENT_CATALOG_H |
140 changes: 70 additions & 70 deletions
140
matter/si91x/siwx917/BRD4338A/autogen/sl_event_handler.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +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(); | ||
} | ||
#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(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +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 | ||
#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 |
52 changes: 26 additions & 26 deletions
52
matter/si91x/siwx917/BRD4338A/autogen/sl_iostream_handles.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +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; | ||
#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; | ||
} |
40 changes: 20 additions & 20 deletions
40
matter/si91x/siwx917/BRD4338A/autogen/sl_iostream_handles.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +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 | ||
#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 |
30 changes: 15 additions & 15 deletions
30
matter/si91x/siwx917/BRD4338A/autogen/sl_iostream_init_instances.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +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 | ||
|
||
#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 |
Oops, something went wrong.