Initial commit of firmware

This commit is contained in:
2025-04-12 13:30:57 +01:00
commit 264a3462e0
374 changed files with 332649 additions and 0 deletions

34
autogen/RTE_Components.h Normal file
View File

@@ -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 */

View File

@@ -0,0 +1,94 @@
#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_BINDINGS_PRESENT
#define SL_CATALOG_MATTER_BLE_PRESENT
#define SL_CATALOG_MATTER_BRIDGED_DEVICE_BASIC_INFORMATION_PRESENT
#define SL_CATALOG_MATTER_DESCRIPTOR_PRESENT
#define SL_CATALOG_MATTER_DIAGNOSTIC_LOGS_PRESENT
#define SL_CATALOG_MATTER_ETHERNET_NETWORK_DIAGNOSTICS_PRESENT
#define SL_CATALOG_MATTER_FIXED_LABEL_PRESENT
#define SL_CATALOG_GATT_CONFIGURATION_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_IDENTIFY_PRESENT
#define SL_CATALOG_MATTER_LEVEL_CONTROL_PRESENT
#define SL_CATALOG_MATTER_LOCALIZATION_CONFIGURATION_PRESENT
#define SL_CATALOG_MATTER_NETWORK_COMMISSIONING_PRESENT
#define SL_CATALOG_MATTER_ON_OFF_PRESENT
#define SL_CATALOG_MATTER_OPERATIONAL_CREDENTIALS_PRESENT
#define SL_CATALOG_MATTER_OTA_REQUESTOR_PRESENT
#define SL_CATALOG_MATTER_SCENES_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_WIFI_NETWORK_DIAGNOSTICS_PRESENT
#define SL_CATALOG_BLUETOOTH_CONFIGURATION_PRESENT
#define SL_CATALOG_BLUETOOTH_CTE_SUPPORT_PRESENT
#define SL_CATALOG_BLUETOOTH_CS_SUPPORT_PRESENT
#define SL_CATALOG_BLUETOOTH_FEATURE_ADVERTISER_PRESENT
#define SL_CATALOG_BLUETOOTH_FEATURE_CONNECTION_PRESENT
#define SL_CATALOG_BLUETOOTH_FEATURE_GATT_SERVER_PRESENT
#define SL_CATALOG_BLUETOOTH_FEATURE_LEGACY_ADVERTISER_PRESENT
#define SL_CATALOG_BLUETOOTH_FEATURE_SYSTEM_PRESENT
#define SL_CATALOG_BLUETOOTH_HOST_ADAPTATION_PRESENT
#define SL_CATALOG_BLUETOOTH_RTOS_ADAPTATION_PRESENT
#define SL_CATALOG_BLUETOOTH_PRESENT
#define SL_CATALOG_BLUETOOTH_FEATURE_MULTIPROTOCOL_PRESENT
#define SL_CATALOG_GECKO_BOOTLOADER_INTERFACE_PRESENT
#define SL_CATALOG_CLOCK_MANAGER_PRESENT
#define SL_CATALOG_CMSIS_OS_COMMON_PRESENT
#define SL_CATALOG_DEVICE_INIT_PRESENT
#define SL_CATALOG_DEVICE_INIT_CORE_PRESENT
#define SL_CATALOG_DEVICE_INIT_DCDC_PRESENT
#define SL_CATALOG_EMLIB_CORE_PRESENT
#define SL_CATALOG_EMLIB_CORE_DEBUG_CONFIG_PRESENT
#define SL_CATALOG_EMLIB_RMU_PRESENT
#define SL_CATALOG_FREERTOS_KERNEL_PRESENT
#define SL_CATALOG_KERNEL_PRESENT
#define SL_CATALOG_GPIO_PRESENT
#define SL_CATALOG_GPIOINTERRUPT_PRESENT
#define SL_CATALOG_HFXO_MANAGER_PRESENT
#define SL_CATALOG_INTERRUPT_MANAGER_PRESENT
#define SL_CATALOG_IOSTREAM_PRESENT
#define SL_CATALOG_MEMORY_MANAGER_PRESENT
#define SL_CATALOG_MEMORY_PROFILER_API_PRESENT
#define SL_CATALOG_MPU_PRESENT
#define SL_CATALOG_MX25_FLASH_SHUTDOWN_EUSART_PRESENT
#define SL_CATALOG_NVM3_PRESENT
#define SL_CATALOG_OPENTHREAD_CLI_PRESENT
#define SL_CATALOG_OT_GP_INTERFACE_PRESENT
#define SL_CATALOG_OPENTHREAD_STACK_PRESENT
#define SL_CATALOG_POWER_MANAGER_PRESENT
#define SL_CATALOG_PSA_CRYPTO_PRESENT
#define SL_CATALOG_RADIO_PRIORITY_15_4_PRESENT
#define SL_CATALOG_RAIL_LIB_PRESENT
#define SL_CATALOG_RAIL_UTIL_PTI_PRESENT
#define SL_CATALOG_SE_MANAGER_PRESENT
#define SL_CATALOG_SECURITY_MANAGER_PRESENT
#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_LED2_PRESENT
#define SL_CATALOG_SIMPLE_LED_LED2_PRESENT
#define SL_CATALOG_SL_CORE_PRESENT
#define SL_CATALOG_SLEEPTIMER_PRESENT
#define SL_CATALOG_SLI_PROTOCOL_CRYPTO_PRESENT
#define SL_CATALOG_UARTDRV_EUSART_PRESENT
#endif // SL_COMPONENT_CATALOG_H

104
autogen/sl_event_handler.c Normal file
View File

@@ -0,0 +1,104 @@
#include "sl_event_handler.h"
#include "em_chip.h"
#include "sl_interrupt_manager.h"
//#include "sl_board_init.h"
#include "sl_clock_manager_init.h"
#include "sl_device_init_dcdc.h"
#include "sl_clock_manager.h"
#include "sl_hfxo_manager.h"
//#include "pa_conversions_efr32.h"
//#include "sl_rail_util_power_manager_init.h"
//#include "sl_rail_util_pti.h"
//#include "sl_rail_util_rssi.h"
//#include "btl_interface.h"
//#include "sl_board_control.h"
//#include "sl_bt_rtos_adaptation.h"
//#include "platform-efr32.h"
#include "sl_sleeptimer.h"
#include "sl_mpu.h"
#include "sl_gpio.h"
//#include "gpiointerrupt.h"
//#include "sl_iostream_rtt.h"
//#include "sl_mbedtls.h"
//#include "sl_ot_rtos_adaptation.h"
//#include "sl_simple_button_instances.h"
//#include "sl_simple_led_instances.h"
//#include "sl_uartdrv_instances.h"
//#include "psa/crypto.h"
//#include "sl_se_manager.h"
//#include "sli_protocol_crypto.h"
#include "cmsis_os2.h"
//#include "sl_iostream_init_instances.h"
//#include "sl_bluetooth.h"
//#include "nvm3_default.h"
//#include "sl_iostream_handles.h"
#include "sl_power_manager.h"
void sl_platform_init(void)
{
CHIP_Init();
sl_interrupt_manager_init();
//sl_board_preinit();
sl_clock_manager_init();
sl_device_init_dcdc();
sl_clock_manager_runtime_init();
sl_hfxo_manager_init_hardware();
//sl_board_init();
//bootloader_init();
osKernelInitialize();
//nvm3_initDefault();
sl_power_manager_init();
}
void sl_kernel_start(void)
{
//sli_bt_rtos_adaptation_kernel_start();
osKernelStart();
}
void sl_driver_init(void)
{
//sl_gpio_init();
//GPIOINT_Init();
//sl_simple_button_init_instances();
//sl_simple_led_init_instances();
//sl_uartdrv_init_instances();
}
void sl_service_init(void)
{
//sl_board_configure_vcom();
//sl_sleeptimer_init();
//sl_hfxo_manager_init();
//sl_mpu_disable_execute_from_ram();
//sl_mbedtls_init();
//psa_crypto_init();
//sl_se_init();
//sli_protocol_crypto_init();
//sli_aes_seed_mask();
sl_iostream_init_instances();
}
void sl_stack_init(void)
{
//sl_rail_util_pa_init();
//sl_rail_util_power_manager_init();
//sl_rail_util_pti_init();
//sl_rail_util_rssi_init();
//sl_bt_rtos_init();
//sl_ot_sys_init();
}
void sl_internal_app_init(void)
{
//sl_ot_rtos_stack_init();
//sl_ot_rtos_app_init();
}
void sl_iostream_init_instances(void)
{
//sl_iostream_rtt_init();
//sl_iostream_set_console_instance();
}

View File

@@ -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