diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/RTE_Components.h b/board-support/efr32/efr32mg24/BRD2601B/autogen/RTE_Components.h deleted file mode 100644 index 6531f566c..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/RTE_Components.h +++ /dev/null @@ -1,34 +0,0 @@ -// 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 */ - diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/gatt_db.c b/board-support/efr32/efr32mg24/BRD2601B/autogen/gatt_db.c deleted file mode 100644 index bac66e37b..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/gatt_db.c +++ /dev/null @@ -1,149 +0,0 @@ -/******************************************************************** - * Autogenerated file, do not edit. - *******************************************************************/ - -#include -#include "sli_bt_gattdb_def.h" - -#define GATT_HEADER(F) F -#define GATT_DATA(F) F -GATT_DATA(const uint16_t gattdb_uuidtable_16_map[]) = -{ - 0x2800, - 0x2801, - 0x2803, - 0x2a00, - 0x2a01, - 0x2a29, - 0x2a24, - 0x2a23, - 0x2a05, - 0x2b2a, - 0x2b29, - 0x2902, -}; - -GATT_DATA(const uint8_t gattdb_uuidtable_128_map[]) = -{ - 0x11, 0x9d, 0x9f, 0x42, 0x9c, 0x4f, 0x9f, 0x95, 0x59, 0x45, 0x3d, 0x26, 0xf5, 0x2e, 0xee, 0x18, - 0x12, 0x9d, 0x9f, 0x42, 0x9c, 0x4f, 0x9f, 0x95, 0x59, 0x45, 0x3d, 0x26, 0xf5, 0x2e, 0xee, 0x18, - 0x04, 0x8f, 0x21, 0x83, 0x8a, 0x74, 0x7d, 0xb8, 0xf2, 0x45, 0x72, 0x87, 0x38, 0x02, 0x63, 0x64, -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_27) = { - .properties = 0x2e, - .max_len = 512, - .len = 1, - .data = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, } -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_24) = { - .properties = 0x2e, - .max_len = 247, - .len = 1, - .data = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, } -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_22) = { - .properties = 0x0a, - .max_len = 247, - .len = 1, - .data = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, } -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_20) = { - .len = 2, - .data = { 0xf6, 0xff, } -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_19) = { - .len = 6, - .data = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, } -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_17) = { - .len = 10, - .data = { 0x42, 0x6c, 0x75, 0x65, 0x20, 0x47, 0x65, 0x63, 0x6b, 0x6f, } -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_15) = { - .len = 12, - .data = { 0x53, 0x69, 0x6c, 0x69, 0x63, 0x6f, 0x6e, 0x20, 0x4c, 0x61, 0x62, 0x73, } -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_13) = { - .len = 2, - .data = { 0x0a, 0x18, } -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_12) = { - .len = 2, - .data = { 0x00, 0x00, } -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_10) = { - .properties = 0x0a, - .max_len = 13, - .data = { 0x45, 0x6d, 0x70, 0x74, 0x79, 0x20, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, }, -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_8) = { - .len = 2, - .data = { 0x00, 0x18, } -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_7) = { - .properties = 0x0a, - .max_len = 1, - .data = { 0x00, }, -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_5) = { - .properties = 0x02, - .max_len = 16, - .data = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }, -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_2) = { - .properties = 0x20, - .max_len = 4, - .data = { 0x00, 0x00, 0x00, 0x00, }, -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_0) = { - .len = 2, - .data = { 0x01, 0x18, } -}; - -GATT_DATA(const sli_bt_gattdb_attribute_t gattdb_attributes_map[]) = { - { .handle = 0x01, .uuid = 0x0000, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_0 }, - { .handle = 0x02, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x20, .char_uuid = 0x0008 } }, - { .handle = 0x03, .uuid = 0x0008, .permissions = 0x800, .caps = 0xffff, .state = 0x00, .datatype = 0x01, .dynamicdata = &gattdb_attribute_field_2 }, - { .handle = 0x04, .uuid = 0x000b, .permissions = 0x803, .caps = 0xffff, .state = 0x00, .datatype = 0x03, .configdata = { .flags = 0x02, .clientconfig_index = 0x00 } }, - { .handle = 0x05, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x02, .char_uuid = 0x0009 } }, - { .handle = 0x06, .uuid = 0x0009, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x01, .dynamicdata = &gattdb_attribute_field_5 }, - { .handle = 0x07, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x0a, .char_uuid = 0x000a } }, - { .handle = 0x08, .uuid = 0x000a, .permissions = 0x803, .caps = 0xffff, .state = 0x00, .datatype = 0x01, .dynamicdata = &gattdb_attribute_field_7 }, - { .handle = 0x09, .uuid = 0x0000, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_8 }, - { .handle = 0x0a, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x0a, .char_uuid = 0x0003 } }, - { .handle = 0x0b, .uuid = 0x0003, .permissions = 0x803, .caps = 0xffff, .state = 0x00, .datatype = 0x01, .dynamicdata = &gattdb_attribute_field_10 }, - { .handle = 0x0c, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x02, .char_uuid = 0x0004 } }, - { .handle = 0x0d, .uuid = 0x0004, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_12 }, - { .handle = 0x0e, .uuid = 0x0000, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_13 }, - { .handle = 0x0f, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x02, .char_uuid = 0x0005 } }, - { .handle = 0x10, .uuid = 0x0005, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_15 }, - { .handle = 0x11, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x02, .char_uuid = 0x0006 } }, - { .handle = 0x12, .uuid = 0x0006, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_17 }, - { .handle = 0x13, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x02, .char_uuid = 0x0007 } }, - { .handle = 0x14, .uuid = 0x0007, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_19 }, - { .handle = 0x15, .uuid = 0x0000, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_20 }, - { .handle = 0x16, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x0a, .char_uuid = 0x8000 } }, - { .handle = 0x17, .uuid = 0x8000, .permissions = 0x803, .caps = 0xffff, .state = 0x00, .datatype = 0x02, .dynamicdata = &gattdb_attribute_field_22 }, - { .handle = 0x18, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x2e, .char_uuid = 0x8001 } }, - { .handle = 0x19, .uuid = 0x8001, .permissions = 0x807, .caps = 0xffff, .state = 0x00, .datatype = 0x02, .dynamicdata = &gattdb_attribute_field_24 }, - { .handle = 0x1a, .uuid = 0x000b, .permissions = 0x803, .caps = 0xffff, .state = 0x00, .datatype = 0x03, .configdata = { .flags = 0x02, .clientconfig_index = 0x01 } }, - { .handle = 0x1b, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x2e, .char_uuid = 0x8002 } }, - { .handle = 0x1c, .uuid = 0x8002, .permissions = 0x807, .caps = 0xffff, .state = 0x00, .datatype = 0x02, .dynamicdata = &gattdb_attribute_field_27 }, - { .handle = 0x1d, .uuid = 0x000b, .permissions = 0x803, .caps = 0xffff, .state = 0x00, .datatype = 0x03, .configdata = { .flags = 0x02, .clientconfig_index = 0x02 } }, -}; - -GATT_HEADER(const sli_bt_gattdb_t gattdb) = { - .attributes = gattdb_attributes_map, - .attribute_table_size = 29, - .attribute_num = 29, - .uuid16 = gattdb_uuidtable_16_map, - .uuid16_table_size = 12, - .uuid16_num = 12, - .uuid128 = gattdb_uuidtable_128_map, - .uuid128_table_size = 3, - .uuid128_num = 3, - .num_ccfg = 3, - .caps_mask = 0xffff, - .enabled_caps = 0xffff, -}; -const sli_bt_gattdb_t *static_gattdb = &gattdb; diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/gatt_db.h b/board-support/efr32/efr32mg24/BRD2601B/autogen/gatt_db.h deleted file mode 100644 index c179e6b28..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/gatt_db.h +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************** - * Autogenerated file, do not edit. - *******************************************************************/ - -#ifndef __GATT_DB_H -#define __GATT_DB_H - -#if __cplusplus -extern "C" { -#endif - -#include "sli_bt_gattdb_def.h" - -extern const sli_bt_gattdb_t gattdb; - -#define gattdb_generic_attribute 1 -#define gattdb_service_changed_char 3 -#define gattdb_database_hash 6 -#define gattdb_client_support_features 8 -#define gattdb_device_name 11 -#define gattdb_CHIPoBLEChar_Rx 23 -#define gattdb_CHIPoBLEChar_Tx 25 -#define gattdb_CHIPoBLEChar_C3 28 - -#define gattdb_generic_attribute_len 2 -#define gattdb_service_changed_char_len 4 -#define gattdb_database_hash_len 16 -#define gattdb_client_support_features_len 1 -#define gattdb_device_name_len 13 -#define gattdb_CHIPoBLEChar_Rx_len 247 -#define gattdb_CHIPoBLEChar_Tx_len 247 -#define gattdb_CHIPoBLEChar_C3_len 512 - -#if __cplusplus -} -#endif - -#endif // __GATT_DB_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_application_type.h b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_application_type.h deleted file mode 100644 index 4118ef4b9..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_application_type.h +++ /dev/null @@ -1,41 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Autogenerated configuration file for application properties - ******************************************************************************* - * # License - * Copyright 2021 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_APPLICATION_TYPE_H -#define SL_APPLICATION_TYPE_H - -#include "api/application_properties.h" - -// Bitfield representing type of application -#define APPLICATION_TYPE APPLICATION_TYPE_BLUETOOTH_APP | APPLICATION_TYPE_THREAD - - -#endif // SL_APPLICATION_TYPE_H - diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_bluetooth.c b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_bluetooth.c deleted file mode 100644 index 0a5f1a969..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_bluetooth.c +++ /dev/null @@ -1,94 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth initialization and event processing - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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 -#include "sl_bluetooth.h" -#include "sli_bt_api.h" -#include "sli_bgapi.h" -#include "sl_assert.h" -#include "sl_bt_stack_init.h" -#include "sl_component_catalog.h" - -void sl_bt_init(void) -{ - // Stack initialization could fail, e.g., due to out of memory. - // The failure could not be returned to user as the system initialization - // does not return an error code. Use the EFM_ASSERT to catch the failure, - // which requires either DEBUG_EFM or DEBUG_EFM_USER is defined. - sl_status_t err = sl_bt_stack_init(); - EFM_ASSERT(err == SL_STATUS_OK); -} - -SL_WEAK void sl_bt_on_event(sl_bt_msg_t* evt) -{ - (void)(evt); -} - -void sl_bt_process_event(sl_bt_msg_t *evt) -{ - sl_bt_on_event(evt); -} - -#if !defined(SL_CATALOG_KERNEL_PRESENT) -// When running in an RTOS, the stack events are processed in a dedicated -// event processing task, and these functions are not used at all. - -SL_WEAK bool sl_bt_can_process_event(uint32_t len) -{ - (void)(len); - return true; -} - -void sl_bt_step(void) -{ - sl_bt_msg_t evt; - - // Run the Bluetooth host stack processing step - sl_bt_run(); - - // Check the length of the next event, if any, and verify that the application - // can process it. To prevent data loss, the event will be kept in the stack's - // queue if the application cannot process it at the moment. - size_t event_len = sli_bgapi_device_peek_event_len(&sli_bt_bgapi_device); - if ((event_len == 0) || (!sl_bt_can_process_event(event_len))) { - return; - } - - // Pop the event and process it if successful - sl_status_t status = sli_bgapi_device_pop_event(&sli_bt_bgapi_device, - sizeof(evt), - &evt); - - if (status != SL_STATUS_OK) { - return; - } - sl_bt_process_event(&evt); -} -#endif // !defined(SL_CATALOG_KERNEL_PRESENT) diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_bluetooth.h b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_bluetooth.h deleted file mode 100644 index 2b284460f..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_bluetooth.h +++ /dev/null @@ -1,73 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth initialization and event processing - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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 BLUETOOTH_H -#define BLUETOOTH_H - -#include -#include "sl_power_manager.h" -#include "sl_bluetooth_config.h" -#include "sl_bt_stack_init.h" -#include "sl_bt_api.h" -#define SL_BT_COMPONENT_ADVERTISERS 0 - -#define SL_BT_COMPONENT_CONNECTIONS 0 - -// Initialize Bluetooth core functionality -void sl_bt_init(void); - -// Polls bluetooth stack for an event and processes it -void sl_bt_step(void); - -/** - * Tell if the application can process a new Bluetooth event in its current - * state, for example, based on resource availability status. - * If true is returned by this function, sl_bt_process_event will be called - * for event processing. Otherwise, the event will be kept in stack's event - * queue until the application can process it. - * - * @note Default implementation of this function returns true. - * Application can override it for own business logic. - * - * @param len Data length of the event - * @return ture if event can be processed; false otherwise - */ -bool sl_bt_can_process_event(uint32_t len); - -// Processes a single bluetooth event -void sl_bt_process_event(sl_bt_msg_t *evt); - -void sl_bt_on_event(sl_bt_msg_t* evt); - -// Power Manager related functions -bool sli_bt_is_ok_to_sleep(void); -sl_power_manager_on_isr_exit_t sli_bt_sleep_on_isr_exit(void); - -#endif // BLUETOOTH_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_board_default_init.c b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_board_default_init.c deleted file mode 100644 index c3a6b4866..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_board_default_init.c +++ /dev/null @@ -1,34 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Board Default Init - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_board_control.h" - -void sl_board_default_init(void) -{ -} diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_component_catalog.h b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_component_catalog.h deleted file mode 100644 index f9f41093d..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_component_catalog.h +++ /dev/null @@ -1,77 +0,0 @@ -#ifndef SL_COMPONENT_CATALOG_H -#define SL_COMPONENT_CATALOG_H - -// APIs present in project -#define SL_CATALOG_BGAPI_PROTOCOL_PRESENT -#define SL_CATALOG_BGAPI_PROTOCOL_RTOS_ADAPTATION_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_CONNECTION_ROLE_PERIPHERAL_PRESENT -#ifdef SL_BLE_SIDE_CHANNEL_ENABLED -#define SL_CATALOG_BLUETOOTH_FEATURE_DYNAMIC_GATTDB_PRESENT -#endif // SL_BLE_SIDE_CHANNEL_ENABLED -#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_CPP_SUPPORT_PRESENT -#define SL_CATALOG_DEVICE_INIT_PRESENT -#define SL_CATALOG_DEVICE_INIT_DCDC_PRESENT -#define SL_CATALOG_EMLIB_CORE_PRESENT -#define SL_CATALOG_EMLIB_RMU_PRESENT -#define SL_CATALOG_FREERTOS_KERNEL_PRESENT -#define SL_CATALOG_KERNEL_PRESENT -#define SL_CATALOG_GATT_CONFIGURATION_PRESENT -#define SL_CATALOG_GPIO_PRESENT -#define SL_CATALOG_GPIOINTERRUPT_PRESENT -#define SL_CATALOG_HAL_SYSTEM_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 -#ifdef CONFIG_USE_EXTERNAL_FLASH -#define SL_CATALOG_MX25_FLASH_SHUTDOWN_USART_PRESENT -#endif // CONFIG_USE_EXTERNAL_FLASH -#define SL_CATALOG_NVM3_DEFAULT_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_POWER_MANAGER_DEEPSLEEP_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_SECURITY_MANAGER_PRESENT -#define SL_CATALOG_SEGGER_RTT_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_SL_CORE_PRESENT -#define SL_CATALOG_SL_MAIN_PRESENT -#define SL_CATALOG_SLEEPTIMER_PRESENT -#define SL_CATALOG_SLI_PROTOCOL_CRYPTO_PRESENT -#if defined(CONFIG_ENABLE_UART) -#define SL_CATALOG_UARTDRV_EUSART_PRESENT -#endif - -#endif // SL_COMPONENT_CATALOG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_event_handler.c b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_event_handler.c deleted file mode 100644 index e0a480e06..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_event_handler.c +++ /dev/null @@ -1,146 +0,0 @@ -#include "sl_event_handler.h" - -#include "sl_board_init.h" -#include "sl_clock_manager.h" -#include "sl_hfxo_manager.h" -#include "sl_rail_util_compatible_pa.h" -#if !(defined(SLI_SI91X_ENABLE_BLE) && SLI_SI91X_ENABLE_BLE) -#include "sl_bluetooth.h" -#include "sl_rail_util_power_manager_init.h" -#endif // !SLI_SI91X_ENABLE_BLE -#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 "platform-efr32.h" -#include "sl_bt_rtos_adaptation.h" -#include "sl_gpio.h" -#include "gpiointerrupt.h" -#if defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR -#include "sl_i2cspm_instances.h" -#endif // defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR -#include "sl_iostream_rtt.h" -#include "sl_mbedtls.h" -#include "sl_ot_rtos_adaptation.h" -#include "sl_simple_button_instances.h" - -#if (defined(SL_MATTER_RGB_LED_ENABLED) && SL_MATTER_RGB_LED_ENABLED == 1) -#include "sl_simple_rgb_pwm_led_instances.h" -#else -#include "sl_simple_led_instances.h" -#endif //(SL_MATTER_RGB_LED_ENABLED) && SL_MATTER_RGB_LED_ENABLED == 1) -#if defined(CONFIG_ENABLE_UART) -#include "sl_uartdrv_instances.h" -#endif // CONFIG_ENABLE_UART -#include "psa/crypto.h" -#include "sl_se_manager.h" -#include "sli_protocol_crypto.h" -#include "sli_crypto.h" -#include "sl_iostream_init_instances.h" -#include "cmsis_os2.h" -#include "nvm3_default.h" - -#include "sl_iostream_handles.h" - -void sli_driver_permanent_allocation(void) -{ -} - -void sli_service_permanent_allocation(void) -{ -} - -void sli_stack_permanent_allocation(void) -{ - sli_bt_stack_permanent_allocation(); - sl_ot_rtos_perm_allocation(); -} - -void sli_internal_permanent_allocation(void) -{ -} - -void sl_platform_init(void) -{ - sl_board_preinit(); - sl_clock_manager_runtime_init(); - sl_hfxo_manager_init_hardware(); - sl_board_init(); - bootloader_init(); - nvm3_initDefault(); -} - -void sli_internal_init_early(void) -{ -} - -void sl_kernel_start(void) -{ - sli_bt_rtos_adaptation_kernel_start(); - osKernelStart(); -} - -void sl_driver_init(void) -{ - sl_gpio_init(); - GPIOINT_Init(); -#if defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR - sl_i2cspm_init_instances(); -#endif // defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR - sl_simple_button_init_instances(); -#if (defined(SL_MATTER_RGB_LED_ENABLED) && SL_MATTER_RGB_LED_ENABLED == 1) - sl_simple_rgb_pwm_led_init_instances(); -#else - sl_simple_led_init_instances(); -#endif //(SL_MATTER_RGB_LED_ENABLED) && SL_MATTER_RGB_LED_ENABLED == 1) - #if defined(CONFIG_ENABLE_UART) - sl_uartdrv_init_instances(); -#endif // CONFIG_ENABLE_UART -} - -void sl_service_init(void) -{ - sl_board_configure_vcom(); - sl_hfxo_manager_init(); - sl_mbedtls_init(); - psa_crypto_init(); - sl_se_init(); - sli_protocol_crypto_init(); - sli_crypto_init(); - sli_aes_seed_mask(); - sl_iostream_init_instances_stage_1(); - sl_iostream_init_instances_stage_2(); -} - -void sl_stack_init(void) -{ -#if !SLI_SI91X_ENABLE_BLE - sl_rail_util_pa_init(); - sl_rail_util_power_manager_init(); - sl_rail_util_pti_init(); - sl_rail_util_rssi_init(); - sli_bt_stack_functional_init(); -#endif // !SLI_SI91X_ENABLE_BLE -#ifdef SL_OT_ENABLE - sl_ot_sys_init(); -#endif // SL_OT_ENABLE -} - -void sl_internal_app_init(void) -{ -#ifdef SL_OT_ENABLE - sl_ot_rtos_stack_init(); - sl_ot_rtos_app_init(); -#endif // SL_OT_ENABLE -} - -void sl_iostream_init_instances_stage_1(void) -{ - sl_iostream_rtt_init(); -} - -void sl_iostream_init_instances_stage_2(void) -{ - sl_iostream_set_console_instance(); -} diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_event_handler.h b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_event_handler.h deleted file mode 100644 index 1d0468d03..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_event_handler.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef SL_EVENT_HANDLER_H -#define SL_EVENT_HANDLER_H - -void sli_driver_permanent_allocation(void); -void sli_service_permanent_allocation(void); -void sli_stack_permanent_allocation(void); -void sli_internal_permanent_allocation(void); -void sl_platform_init(void); -void sli_internal_init_early(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); - -#endif // SL_EVENT_HANDLER_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_i2cspm_init.c b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_i2cspm_init.c deleted file mode 100644 index 247e557d7..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_i2cspm_init.c +++ /dev/null @@ -1,64 +0,0 @@ -/***************************************************************************//** - * @file - * @brief I2C simple poll-based master mode driver instance initialilization - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_i2cspm.h" -#include "sl_clock_manager.h" -// Include instance config -#include "sl_i2cspm_sensor_config.h" - -sl_i2cspm_t *sl_i2cspm_sensor = SL_I2CSPM_SENSOR_PERIPHERAL; - -#if SL_I2CSPM_SENSOR_SPEED_MODE == 0 -#define SL_I2CSPM_SENSOR_HLR i2cClockHLRStandard -#define SL_I2CSPM_SENSOR_MAX_FREQ I2C_FREQ_STANDARD_MAX -#elif SL_I2CSPM_SENSOR_SPEED_MODE == 1 -#define SL_I2CSPM_SENSOR_HLR i2cClockHLRAsymetric -#define SL_I2CSPM_SENSOR_MAX_FREQ I2C_FREQ_FAST_MAX -#elif SL_I2CSPM_SENSOR_SPEED_MODE == 2 -#define SL_I2CSPM_SENSOR_HLR i2cClockHLRFast -#define SL_I2CSPM_SENSOR_MAX_FREQ I2C_FREQ_FASTPLUS_MAX -#endif - -I2CSPM_Init_TypeDef init_sensor = { - .port = SL_I2CSPM_SENSOR_PERIPHERAL, - .sclPort = SL_I2CSPM_SENSOR_SCL_PORT, - .sclPin = SL_I2CSPM_SENSOR_SCL_PIN, - .sdaPort = SL_I2CSPM_SENSOR_SDA_PORT, - .sdaPin = SL_I2CSPM_SENSOR_SDA_PIN, - .i2cRefFreq = 0, - .i2cMaxFreq = SL_I2CSPM_SENSOR_MAX_FREQ, - .i2cClhr = SL_I2CSPM_SENSOR_HLR -}; - -void sl_i2cspm_init_instances(void) -{ - sl_clock_manager_enable_bus_clock(SL_BUS_CLOCK_GPIO); - I2CSPM_Init(&init_sensor); -} diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_i2cspm_instances.h b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_i2cspm_instances.h deleted file mode 100644 index 41ff115bf..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_i2cspm_instances.h +++ /dev/null @@ -1,52 +0,0 @@ -/***************************************************************************//** - * @file - * @brief I2C simple poll-based master mode driver instances - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_I2CSPM_INSTANCES_H -#define SL_I2CSPM_INSTANCES_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include "sl_i2cspm.h" - - -#define SL_I2CSPM_SENSOR_PRESENT - - -extern sl_i2cspm_t *sl_i2cspm_sensor; - -void sl_i2cspm_init_instances(void); - -#ifdef __cplusplus -} -#endif - -#endif // SL_I2CSPM_INSTANCES_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_iostream_handles.c b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_iostream_handles.c deleted file mode 100644 index dc69e48a7..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_iostream_handles.c +++ /dev/null @@ -1,63 +0,0 @@ -#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]); -sl_iostream_t *sl_iostream_recommended_console_stream = NULL; - - -/***************************************************************************//** - * Get iostream instance handle for a given name - * - * @return Instance handle if it exist, NULL otherwise. - ******************************************************************************/ -sl_iostream_t *sl_iostream_get_handle(const 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; -} - -/***************************************************************************//** - * Set iostream recommended instance for a console - ******************************************************************************/ -void sl_iostream_set_console_instance(void) -{ - sl_iostream_type_t console = SL_IOSTREAM_TYPE_UNDEFINED; - - for (uint32_t i = 0; i < sl_iostream_instances_count; i++) { - switch (sl_iostream_instances_info[i]->type) { - case SL_IOSTREAM_TYPE_UART: - case SL_IOSTREAM_TYPE_RTT: - if (console != SL_IOSTREAM_TYPE_UART) { - console = sl_iostream_instances_info[i]->type; - sl_iostream_recommended_console_stream = sl_iostream_instances_info[i]->handle; - } - break; - - case SL_IOSTREAM_TYPE_VUART: - if (console != SL_IOSTREAM_TYPE_UART && console != SL_IOSTREAM_TYPE_RTT) { - console = sl_iostream_instances_info[i]->type; - sl_iostream_recommended_console_stream = sl_iostream_instances_info[i]->handle; - } - break; - - case SL_IOSTREAM_TYPE_LOOPBACK: - // Ignore loopback interface - break; - - default: - break; - } - } -} diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_iostream_handles.h b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_iostream_handles.h deleted file mode 100644 index fcaee849d..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_iostream_handles.h +++ /dev/null @@ -1,24 +0,0 @@ -#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; - -extern sl_iostream_t *sl_iostream_recommended_console_stream; - -sl_iostream_t *sl_iostream_get_handle(const char *name); - -void sl_iostream_set_console_instance(void); - -#ifdef __cplusplus -} -#endif - -#endif // SL_IOSTREAM_HANDLES_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_iostream_init_instances.h b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_iostream_init_instances.h deleted file mode 100644 index 1e9df285f..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_iostream_init_instances.h +++ /dev/null @@ -1,17 +0,0 @@ -#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_stage_1(void); -void sl_iostream_init_instances_stage_2(void); - -#ifdef __cplusplus -} -#endif - -#endif // SL_IOSTREAM_INIT_INSTANCES_H \ No newline at end of file diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_ot_init.c b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_ot_init.c deleted file mode 100644 index 78eb35993..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_ot_init.c +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * @file - * @brief OpenThread initialization. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_ot_init.h" - -void sl_ot_init(void) -{ - sl_ot_create_instance(); - sl_ot_sleep_init(); - sl_ot_cli_init(); - sl_ot_custom_cli_init(); -} \ No newline at end of file diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_ot_init.h b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_ot_init.h deleted file mode 100644 index 4afeb49d9..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_ot_init.h +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * @file - * @brief This generated header includes declaration of all functions required - * during initialization that must be defined by the OpenThread application. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_OT_INIT_H -#define SL_OT_INIT_H - -void sl_ot_init(void); -extern void sl_ot_create_instance(void); -extern void sl_ot_sleep_init(void); -extern void sl_ot_cli_init(void); -extern void sl_ot_custom_cli_init(void); - -#endif // SL_OT_INIT_H \ No newline at end of file diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_simple_button_instances.c b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_simple_button_instances.c deleted file mode 100644 index 3991bd5e5..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_simple_button_instances.c +++ /dev/null @@ -1,86 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Button Driver Instances - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_simple_button.h" -#include "sl_simple_button_btn0_config.h" -#include "sl_simple_button_btn1_config.h" - -sl_simple_button_context_t simple_btn0_context = { - .state = 0, - .history = 0, - .port = SL_SIMPLE_BUTTON_BTN0_PORT, - .pin = SL_SIMPLE_BUTTON_BTN0_PIN, - .mode = SL_SIMPLE_BUTTON_BTN0_MODE, -}; - -const sl_button_t sl_button_btn0 = { - .context = &simple_btn0_context, - .init = sl_simple_button_init, - .get_state = sl_simple_button_get_state, - .poll = sl_simple_button_poll_step, - .enable = sl_simple_button_enable, - .disable = sl_simple_button_disable, -}; -sl_simple_button_context_t simple_btn1_context = { - .state = 0, - .history = 0, - .port = SL_SIMPLE_BUTTON_BTN1_PORT, - .pin = SL_SIMPLE_BUTTON_BTN1_PIN, - .mode = SL_SIMPLE_BUTTON_BTN1_MODE, -}; - -const sl_button_t sl_button_btn1 = { - .context = &simple_btn1_context, - .init = sl_simple_button_init, - .get_state = sl_simple_button_get_state, - .poll = sl_simple_button_poll_step, - .enable = sl_simple_button_enable, - .disable = sl_simple_button_disable, -}; - -// the table of buttons and button count are generated as a -// convenience for the application -const sl_button_t *sl_simple_button_array[] = { - &sl_button_btn0, - &sl_button_btn1 -}; -const uint8_t simple_button_count = 2; - -void sl_simple_button_init_instances(void) -{ - sl_button_init(&sl_button_btn0); - sl_button_init(&sl_button_btn1); -} - -void sl_simple_button_poll_instances(void) -{ - sl_button_poll_step(&sl_button_btn0); - sl_button_poll_step(&sl_button_btn1); -} diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_simple_button_instances.h b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_simple_button_instances.h deleted file mode 100644 index 1a5ddb293..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_simple_button_instances.h +++ /dev/null @@ -1,47 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Button Driver Instances - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_BUTTON_INSTANCES_H -#define SL_SIMPLE_BUTTON_INSTANCES_H - -#include "sl_simple_button.h" - -extern const sl_button_t sl_button_btn0; -extern const sl_button_t sl_button_btn1; - -extern const sl_button_t *sl_simple_button_array[]; - -#define SL_SIMPLE_BUTTON_COUNT 2 -#define SL_SIMPLE_BUTTON_INSTANCE(n) (sl_simple_button_array[n]) - -void sl_simple_button_init_instances(void); -void sl_simple_button_poll_instances(void); - -#endif // SL_SIMPLE_BUTTON_INSTANCES_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_simple_led_instances.c b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_simple_led_instances.c deleted file mode 100644 index 9958e20be..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_simple_led_instances.c +++ /dev/null @@ -1,75 +0,0 @@ -/***************************************************************************//** - * @file - * @brief LED Driver Instances - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_simple_led.h" -#include "sl_gpio.h" - -#include "sl_simple_led_led0_config.h" -#include "sl_simple_led_led1_config.h" - -sl_simple_led_context_t simple_led0_context = { - .port = SL_SIMPLE_LED_LED0_PORT, - .pin = SL_SIMPLE_LED_LED0_PIN, - .polarity = SL_SIMPLE_LED_LED0_POLARITY, -}; - -const sl_led_t sl_led_led0 = { - .context = &simple_led0_context, - .init = sl_simple_led_init, - .turn_on = sl_simple_led_turn_on, - .turn_off = sl_simple_led_turn_off, - .toggle = sl_simple_led_toggle, - .get_state = sl_simple_led_get_state, -}; -sl_simple_led_context_t simple_led1_context = { - .port = SL_SIMPLE_LED_LED1_PORT, - .pin = SL_SIMPLE_LED_LED1_PIN, - .polarity = SL_SIMPLE_LED_LED1_POLARITY, -}; - -const sl_led_t sl_led_led1 = { - .context = &simple_led1_context, - .init = sl_simple_led_init, - .turn_on = sl_simple_led_turn_on, - .turn_off = sl_simple_led_turn_off, - .toggle = sl_simple_led_toggle, - .get_state = sl_simple_led_get_state, -}; - -const sl_led_t *sl_simple_led_array[] = { - &sl_led_led0, - &sl_led_led1 -}; - -void sl_simple_led_init_instances(void) -{ - sl_led_init(&sl_led_led0); - sl_led_init(&sl_led_led1); -} diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_simple_rgb_pwm_led_instances.c b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_simple_rgb_pwm_led_instances.c deleted file mode 100644 index fd4a13f75..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_simple_rgb_pwm_led_instances.c +++ /dev/null @@ -1,108 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple RGB PWM LED Driver Instances - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_gpio.h" -#include "sl_simple_rgb_pwm_led.h" - -#include "sl_simple_rgb_pwm_led_rgb_led0_config.h" - - - -sl_led_pwm_t red_rgb_led0 = { - .port = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RED_PORT, - .pin = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RED_PIN, - .level = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RESOLUTION - 1, - .polarity = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RED_POLARITY, - .channel = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RED_CHANNEL, -#if defined(SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RED_LOC) - .location = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RED_LOC, -#endif - .timer = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_PERIPHERAL, - .frequency = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_FREQUENCY, - .resolution = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RESOLUTION, -}; - -sl_led_pwm_t green_rgb_led0 = { - .port = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_GREEN_PORT, - .pin = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_GREEN_PIN, - .level = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RESOLUTION - 1, - .polarity = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_GREEN_POLARITY, - .channel = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_GREEN_CHANNEL, -#if defined(SL_SIMPLE_RGB_PWM_LED_RGB_LED0_GREEN_LOC) - .location = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_GREEN_LOC, -#endif - .timer = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_PERIPHERAL, - .frequency = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_FREQUENCY, - .resolution = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RESOLUTION, -}; - -sl_led_pwm_t blue_rgb_led0 = { - .port = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_BLUE_PORT, - .pin = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_BLUE_PIN, - .level = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RESOLUTION - 1, - .polarity = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_BLUE_POLARITY, - .channel = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_BLUE_CHANNEL, -#if defined(SL_SIMPLE_RGB_PWM_LED_RGB_LED0_BLUE_LOC) - .location = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_BLUE_LOC, -#endif - .timer = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_PERIPHERAL, - .frequency = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_FREQUENCY, - .resolution = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RESOLUTION, -}; - -sl_simple_rgb_pwm_led_context_t simple_rgb_pwm_rgb_led0_context = { - .red = &red_rgb_led0, - .green = &green_rgb_led0, - .blue = &blue_rgb_led0, - - .timer = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_PERIPHERAL, - .frequency = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_FREQUENCY, - .resolution = SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RESOLUTION, -}; - -const sl_led_rgb_pwm_t sl_simple_rgb_pwm_led_rgb_led0 = { - .led_common.context = &simple_rgb_pwm_rgb_led0_context, - .led_common.init = sl_simple_rgb_pwm_led_init, - .led_common.turn_on = sl_simple_rgb_pwm_led_turn_on, - .led_common.turn_off = sl_simple_rgb_pwm_led_turn_off, - .led_common.toggle = sl_simple_rgb_pwm_led_toggle, - .led_common.get_state = sl_simple_rgb_pwm_led_get_state, - .set_rgb_color = sl_simple_rgb_pwm_led_set_color, - .get_rgb_color = sl_simple_rgb_pwm_led_get_color, -}; - - - -void sl_simple_rgb_pwm_led_init_instances(void) -{ - - sl_led_init((sl_led_t *)&sl_simple_rgb_pwm_led_rgb_led0); - -} diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_simple_rgb_pwm_led_instances.h b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_simple_rgb_pwm_led_instances.h deleted file mode 100644 index d01b9b86c..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_simple_rgb_pwm_led_instances.h +++ /dev/null @@ -1,41 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple RGB PWM Driver Instances - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_RGB_PWM_LED_INSTANCES_H -#define SL_SIMPLE_RGB_PWM_LED_INSTANCES_H - -#include "sl_simple_rgb_pwm_led.h" - -extern const sl_led_rgb_pwm_t sl_simple_rgb_pwm_led_rgb_led0; - - -void sl_simple_rgb_pwm_led_init_instances(void); - -#endif // SL_SIMPLE_RGB_PWM_LED_INIT_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_uartdrv_init.c b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_uartdrv_init.c deleted file mode 100644 index adab0fb5b..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_uartdrv_init.c +++ /dev/null @@ -1,74 +0,0 @@ -#include "uartdrv.h" -#include "sl_uartdrv_instances.h" -#include - -#include "sl_uartdrv_eusart_vcom_config.h" - -UARTDRV_HandleData_t sl_uartdrv_eusart_vcom_handle_data; -UARTDRV_Handle_t sl_uartdrv_eusart_vcom_handle = &sl_uartdrv_eusart_vcom_handle_data; - - -static UARTDRV_Handle_t sli_uartdrv_default_handle = NULL; - -/* If CTS and RTS not defined, define a default value to avoid errors */ -#ifndef SL_UARTDRV_EUSART_VCOM_CTS_PORT -#define SL_UARTDRV_EUSART_VCOM_CTS_PORT SL_GPIO_PORT_A -#define SL_UARTDRV_EUSART_VCOM_CTS_PIN 0 -#endif - -#ifndef SL_UARTDRV_EUSART_VCOM_RTS_PORT -#define SL_UARTDRV_EUSART_VCOM_RTS_PORT SL_GPIO_PORT_A -#define SL_UARTDRV_EUSART_VCOM_RTS_PIN 0 -#endif - - -/* Define RX and TX buffer queues */ -DEFINE_BUF_QUEUE(SL_UARTDRV_EUSART_VCOM_RX_BUFFER_SIZE, sl_uartdrv_eusart_vcom_rx_buffer); -DEFINE_BUF_QUEUE(SL_UARTDRV_EUSART_VCOM_TX_BUFFER_SIZE, sl_uartdrv_eusart_vcom_tx_buffer); - - -/* Create uartdrv initialization structs */ -UARTDRV_InitEuart_t sl_uartdrv_eusart_init_vcom = { - .port = SL_UARTDRV_EUSART_VCOM_PERIPHERAL, - .useLowFrequencyMode = SL_UARTDRV_EUSART_VCOM_LF_MODE, - .baudRate = SL_UARTDRV_EUSART_VCOM_BAUDRATE, - .txPort = SL_UARTDRV_EUSART_VCOM_TX_PORT, - .rxPort = SL_UARTDRV_EUSART_VCOM_RX_PORT, - .txPin = SL_UARTDRV_EUSART_VCOM_TX_PIN, - .rxPin = SL_UARTDRV_EUSART_VCOM_RX_PIN, - .uartNum = SL_UARTDRV_EUSART_VCOM_PERIPHERAL_NO, - .stopBits = SL_UARTDRV_EUSART_VCOM_STOP_BITS, - .parity = SL_UARTDRV_EUSART_VCOM_PARITY, - .oversampling = SL_UARTDRV_EUSART_VCOM_OVERSAMPLING, - .mvdis = SL_UARTDRV_EUSART_VCOM_MVDIS, - .fcType = SL_UARTDRV_EUSART_VCOM_FLOW_CONTROL_TYPE, - .ctsPort = SL_UARTDRV_EUSART_VCOM_CTS_PORT, - .ctsPin = SL_UARTDRV_EUSART_VCOM_CTS_PIN, - .rtsPort = SL_UARTDRV_EUSART_VCOM_RTS_PORT, - .rtsPin = SL_UARTDRV_EUSART_VCOM_RTS_PIN, - .rxQueue = (UARTDRV_Buffer_FifoQueue_t *)&sl_uartdrv_eusart_vcom_rx_buffer, - .txQueue = (UARTDRV_Buffer_FifoQueue_t *)&sl_uartdrv_eusart_vcom_tx_buffer, -}; - - -void sl_uartdrv_init_instances(void){ - UARTDRV_InitEuart(sl_uartdrv_eusart_vcom_handle, &sl_uartdrv_eusart_init_vcom); - sl_uartdrv_set_default(sl_uartdrv_eusart_vcom_handle); -} - -sl_status_t sl_uartdrv_set_default(UARTDRV_Handle_t handle) -{ - sl_status_t status = SL_STATUS_INVALID_HANDLE; - - if (handle != NULL) { - sli_uartdrv_default_handle = handle; - status = SL_STATUS_OK; - } - - return status; -} - -UARTDRV_Handle_t sl_uartdrv_get_default(void) -{ - return sli_uartdrv_default_handle; -} diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_uartdrv_instances.h b/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_uartdrv_instances.h deleted file mode 100644 index 83202285e..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_uartdrv_instances.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef SL_UARTDRV_INSTANCES_H -#define SL_UARTDRV_INSTANCES_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include "sl_status.h" -#include "uartdrv.h" - - -extern UARTDRV_Handle_t sl_uartdrv_eusart_vcom_handle; - -void sl_uartdrv_init_instances(void); - -/***************************************************************************//** - * Set the handle as the default UARTDRV handle. - * - * @param[in] handle UARTDRV handle to set as default. - * - * @return Status result - ******************************************************************************/ -sl_status_t sl_uartdrv_set_default(UARTDRV_Handle_t handle); - -/***************************************************************************//** - * Get the default UARTDRV handle configured. - * - * @return UARTDRV handle - ******************************************************************************/ -UARTDRV_Handle_t sl_uartdrv_get_default(void); - -#ifdef __cplusplus -} -#endif - -#endif // SL_UARTDRV_INSTANCES_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sli_mbedtls_config_autogen.h b/board-support/efr32/efr32mg24/BRD2601B/autogen/sli_mbedtls_config_autogen.h deleted file mode 100644 index 9452fa1cf..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sli_mbedtls_config_autogen.h +++ /dev/null @@ -1,54 +0,0 @@ -// This is an autogenerated config file, any changes to this file will be overwritten - -#ifndef SLI_MBEDTLS_CONFIG_AUTOGEN_H -#define SLI_MBEDTLS_CONFIG_AUTOGEN_H - - -// Added definition check because of DIC specific configs -#ifndef MBEDTLS_MPI_MAX_SIZE -#define MBEDTLS_MPI_MAX_SIZE 32 -#endif - - -#define MBEDTLS_AES_C -#define MBEDTLS_ASN1_PARSE_C -#define MBEDTLS_ASN1_WRITE_C -#define MBEDTLS_BASE64_C -#define MBEDTLS_CIPHER_C -#define MBEDTLS_CMAC_C -#define MBEDTLS_BIGNUM_C -#define MBEDTLS_OID_C -#define MBEDTLS_PEM_PARSE_C -#define MBEDTLS_PEM_WRITE_C -#define MBEDTLS_PK_C -#define MBEDTLS_PK_PARSE_C -#define MBEDTLS_PK_WRITE_C -#define MBEDTLS_PLATFORM_C -#define MBEDTLS_PLATFORM_MEMORY -#define MBEDTLS_THREADING_C -#define MBEDTLS_THREADING_ALT -#define MBEDTLS_X509_USE_C -#define MBEDTLS_X509_CREATE_C -#define MBEDTLS_X509_CRT_PARSE_C -// Do not need this feature -// #define MBEDTLS_X509_CRT_WRITE_C -#define MBEDTLS_X509_CRL_PARSE_C -#define MBEDTLS_X509_CSR_PARSE_C -#define MBEDTLS_X509_CSR_WRITE_C -#define MBEDTLS_USE_PSA_CRYPTO -#define MBEDTLS_PSA_CRYPTO_C -#define MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS -#define MBEDTLS_PSA_CRYPTO_CONFIG -#define MBEDTLS_ECP_C -#define MBEDTLS_ECP_DP_SECP256R1_ENABLED -#define MBEDTLS_ECDSA_C -#define MBEDTLS_MD_C -#define MBEDTLS_PSA_CRYPTO_DRIVERS -#define MBEDTLS_PSA_CRYPTO_STORAGE_C - - - - - - -#endif // SLI_MBEDTLS_CONFIG_AUTOGEN_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sli_mbedtls_config_transform_autogen.h b/board-support/efr32/efr32mg24/BRD2601B/autogen/sli_mbedtls_config_transform_autogen.h deleted file mode 100644 index ccf963ce1..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sli_mbedtls_config_transform_autogen.h +++ /dev/null @@ -1,75 +0,0 @@ -// This is an autogenerated config file, any changes to this file will be overwritten - -#ifndef SLI_MBEDTLS_CONFIG_TRANSFORM_AUTOGEN_H -#define SLI_MBEDTLS_CONFIG_TRANSFORM_AUTOGEN_H - -// Convert CMSIS Markup config defines to mbedTLS specific config defines - -#if SL_MBEDTLS_RSA_NO_CRT - #define MBEDTLS_RSA_NO_CRT -#endif - -// Allow undefining the specified cipher suites -#if defined(SLI_MBEDTLS_AUTODETECT_CIPHERSUITES) - #undef MBEDTLS_SSL_CIPHERSUITES -#endif - -#if SL_MBEDTLS_SSL_MAX_FRAGMENT_LENGTH - #define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH -#endif -#if SL_MBEDTLS_SSL_EXPORT_KEYS - #define MBEDTLS_SSL_EXPORT_KEYS -#endif -#if SL_MBEDTLS_KEY_EXCHANGE_PSK_ENABLED - #define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED -#endif -#if SL_MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED - #define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED -#endif -#if SL_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED - #define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED -#endif -#if SL_MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED - #define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED -#endif -#if SL_MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED - #define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED -#endif -#if SL_MBEDTLS_ECP_ENABLE_COMPRESSED_CURVE_PARSING - #define MBEDTLS_ECP_ENABLE_COMPRESSED_CURVE_PARSING -#endif -#if SL_MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS - #define MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS -#endif - -#if !defined(MBEDTLS_SSL_IN_CONTENT_LEN) - #define MBEDTLS_SSL_IN_CONTENT_LEN SL_MBEDTLS_SSL_IN_CONTENT_LEN -#endif - -#if !defined(MBEDTLS_SSL_OUT_CONTENT_LEN) - #define MBEDTLS_SSL_OUT_CONTENT_LEN SL_MBEDTLS_SSL_OUT_CONTENT_LEN -#endif - - -#define SLI_SSL_IN_CONTENT_LEN_REQUIREMENT 900 - -// If the SDK requires a certain SSL buffer size, configure Mbed TLS -// to size the buffer to the highest of the user/default or SDK setting. -#if MBEDTLS_SSL_IN_CONTENT_LEN < SLI_SSL_IN_CONTENT_LEN_REQUIREMENT - #undef MBEDTLS_SSL_IN_CONTENT_LEN - #define MBEDTLS_SSL_IN_CONTENT_LEN SLI_SSL_IN_CONTENT_LEN_REQUIREMENT -#endif - - - -#define SLI_SSL_OUT_CONTENT_LEN_REQUIREMENT 900 - -// If the SDK requires a certain SSL buffer size, configure Mbed TLS -// to size the buffer to the highest of the user/default or SDK setting. -#if MBEDTLS_SSL_OUT_CONTENT_LEN < SLI_SSL_OUT_CONTENT_LEN_REQUIREMENT - #undef MBEDTLS_SSL_OUT_CONTENT_LEN - #define MBEDTLS_SSL_OUT_CONTENT_LEN SLI_SSL_OUT_CONTENT_LEN_REQUIREMENT -#endif - - -#endif // SLI_MBEDTLS_CONFIG_TRANSFORM_AUTOGEN_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sli_psa_builtin_config_autogen.h b/board-support/efr32/efr32mg24/BRD2601B/autogen/sli_psa_builtin_config_autogen.h deleted file mode 100644 index c8b70fad1..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sli_psa_builtin_config_autogen.h +++ /dev/null @@ -1,13 +0,0 @@ -// This is an autogenerated config file, any changes to this file will be overwritten - -#ifndef SLI_PSA_BUILTIN_CONFIG_AUTOGEN_H -#define SLI_PSA_BUILTIN_CONFIG_AUTOGEN_H - -// Do not need this feature - SLC imposed -// #define MBEDTLS_PSA_BUILTIN_KEY_TYPE_AES 1 -// #define MBEDTLS_PSA_BUILTIN_ALG_ECB_NO_PADDING 1 -// #define MBEDTLS_PSA_BUILTIN_ALG_CMAC 1 -// #define MBEDTLS_PSA_BUILTIN_ALG_PBKDF2_AES_CMAC_PRF_128 1 - - -#endif // SLI_PSA_BUILTIN_CONFIG_AUTOGEN_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sli_psa_config_autogen.h b/board-support/efr32/efr32mg24/BRD2601B/autogen/sli_psa_config_autogen.h deleted file mode 100644 index f90dd6e9a..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sli_psa_config_autogen.h +++ /dev/null @@ -1,37 +0,0 @@ -// This is an autogenerated config file, any changes to this file will be overwritten - -#ifndef SLI_PSA_CONFIG_AUTOGEN_H -#define SLI_PSA_CONFIG_AUTOGEN_H - -#define PSA_WANT_KEY_TYPE_AES 1 -#define PSA_WANT_ALG_CCM 1 -#define PSA_WANT_ALG_ECB_NO_PADDING 1 -#define PSA_WANT_ALG_CMAC 1 -#define PSA_WANT_ALG_SHA_256 1 -#define PSA_WANT_ALG_ECDSA 1 -#define PSA_WANT_ALG_ECDH 1 -#define PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY 1 -#define PSA_WANT_ECC_SECP_R1_256 1 -#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC 1 -#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT 1 -#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT 1 -#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE 1 -#define PSA_WANT_ALG_HKDF 1 -#define PSA_WANT_ALG_HMAC 1 -#define PSA_WANT_KEY_TYPE_HMAC 1 -#define PSA_WANT_ALG_PBKDF2_AES_CMAC_PRF_128 1 -#define PSA_WANT_ALG_TLS12_PRF 1 -#define PSA_WANT_ALG_TLS12_PSK_TO_MS 1 -#define MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG - -#if defined(KSU_MAX_KEY_SLOTS) -#include "sli_ksu_keyslots_config.h" -#define MBEDTLS_PSA_KEY_SLOT_COUNT (22 + 15 + 1 + SL_PSA_KEY_USER_SLOT_COUNT + SLI_KSU_MAX_KEY_SLOTS - SLI_KSU_KEY_SLOT_USER_START + 1) -#else -#define MBEDTLS_PSA_KEY_SLOT_COUNT (22 + 15 + 1 + SL_PSA_KEY_USER_SLOT_COUNT + 1) -#endif -#ifndef SL_PSA_ITS_MAX_FILES -#define SL_PSA_ITS_MAX_FILES (1 + SL_PSA_ITS_USER_MAX_FILES) -#endif - -#endif // SLI_PSA_CONFIG_AUTOGEN_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/app_properties_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/app_properties_config.h deleted file mode 100644 index 6a6b97666..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/app_properties_config.h +++ /dev/null @@ -1,65 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Application Properties Header File - ******************************************************************************* - * # License - * Copyright 2021 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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 APP_PROPERTIES_CONFIG_H -#define APP_PROPERTIES_CONFIG_H - -#include "sl_application_type.h" - -// <<< Use Configuration Wizard in Context Menu >>> - -// App Properties settings - -// Type of signature this application is signed with -// Default: APPLICATION_SIGNATURE_NONE(0) -#define SL_APPLICATION_SIGNATURE 0 - -// Location of the signature -// Default: 0xFFFFFFFF -#define SL_APPLICATION_SIGNATURE_LOCATION 0xFFFFFFFF - -// Bitfield representing type of application -#define SL_APPLICATION_TYPE APPLICATION_TYPE - -// Version number for this application -// <0-4294967295:1> -// Default: 1 [0-4294967295] -#define SL_APPLICATION_VERSION 1 - -// Capabilities of this application -// Default: 0 -#define SL_APPLICATION_CAPABILITIES 0 - -//Product ID of the device for which the application is built -#define SL_APPLICATION_PRODUCT_ID { 0 } - -// - -#endif // APP_PROPERTIES_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/btconf/gatt_configuration.btconf b/board-support/efr32/efr32mg24/BRD2601B/config/btconf/gatt_configuration.btconf deleted file mode 100644 index 4d1efd972..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/btconf/gatt_configuration.btconf +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - Abstract: The generic_access service contains generic information about the device. All available Characteristics are readonly. - - - - - Empty Example - - - - - - - - - Abstract: The external appearance of this device. The values are composed of a category (10-bits) and sub-categories (6-bits). - 0000 - - - - - - - - - Abstract: The Device Information Service exposes manufacturer and/or vendor information about a device. Summary: This service exposes manufacturer information about a device. The Device Information Service is instantiated as a Primary Service. Only one instance of the Device Information Service is exposed on a device. - - - - Abstract: The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device. - Silicon Labs - - - - - - - - Abstract: The value of this characteristic is a UTF-8 string representing the model number assigned by the device vendor. - Blue Gecko - - - - - - - - Abstract: The SYSTEM ID characteristic consists of a structure with two fields. The first field are the LSOs and the second field contains the MSOs. This is a 64-bit structure which consists of a 40-bit manufacturer-defined identifier concatenated with a 24 bit unique Organizationally Unique Identifier (OUI). The OUI is issued by the IEEE Registration Authority (http://standards.ieee.org/regauth/index.html) and is required to be used in accordance with IEEE Standard 802-2001.6 while the least significant 40 bits are manufacturer defined. If System ID generated based on a Bluetooth Device Address, it is required to be done as follows. System ID and the Bluetooth Device Address have a very similar structure: a Bluetooth Device Address is 48 bits in length and consists of a 24 bit Company Assigned Identifier (manufacturer defined identifier) concatenated with a 24 bit Company Identifier (OUI). In order to encapsulate a Bluetooth Device Address as System ID, the Company Identifier is concatenated with 0xFFFE followed by the Company Assigned Identifier of the Bluetooth Address. For more guidelines related to EUI-64, refer to http://standards.ieee.org/develop/regauth/tut/eui64.pdf. Examples: If the system ID is based of a Bluetooth Device Address with a Company Identifier (OUI) is 0x123456 and the Company Assigned Identifier is 0x9ABCDE, then the System Identifier is required to be 0x123456FFFE9ABCDE. - 000102030405 - - - - - - - - - Custom service - - - - Custom characteristic - 00 - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/buffer_pool_allocator_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/buffer_pool_allocator_config.h deleted file mode 100644 index 2c3fd2e67..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/buffer_pool_allocator_config.h +++ /dev/null @@ -1,29 +0,0 @@ -/***************************************************************************//** - * @file buffer_pool_allocator_config.h - * @brief Configuration file for buffer pool allocator. - * @copyright Copyright 2015 Silicon Laboratories, Inc. www.silabs.com - ******************************************************************************/ - -#ifndef __BUFFER_POOL_ALLOCATOR_CONFIG_H__ -#define __BUFFER_POOL_ALLOCATOR_CONFIG_H__ - -// <<< Use Configuration Wizard in Context Menu >>> -// Memory Manager Configuration - -// Number Buffer Pools -// <0-256:1> -// Default: 5 -#define BUFFER_POOL_ALLOCATOR_POOL_SIZE 5 - -// Length of Each Buffer Pool -// <0-1024:1> -// Default: 256 -#define BUFFER_POOL_ALLOCATOR_BUFFER_SIZE_MAX 256 - -// Clear Each Newly Allocated Buffer -#define BUFFER_POOL_ALLOCATOR_CLEAR_ON_INIT 0 - -// -// <<< end of configuration section >>> - -#endif // __BUFFER_POOL_ALLOCATOR_CONFIG_H__ diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/circular_queue_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/circular_queue_config.h deleted file mode 100644 index 81a7173d6..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/circular_queue_config.h +++ /dev/null @@ -1,23 +0,0 @@ -/***************************************************************************//** - * @file circular_queue_config.h - * @brief Configuration file for circular queue. - * @copyright Copyright 2015 Silicon Laboratories, Inc. www.silabs.com - ******************************************************************************/ - -#ifndef __CIRCULAR_QUEUE_CONFIG_H__ -#define __CIRCULAR_QUEUE_CONFIG_H__ - -// <<< Use Configuration Wizard in Context Menu >>> -// Circular Queue Configuration - -// Max Queue Length -// <0-256:1> -// Default: 5 -#ifndef CIRCULAR_QUEUE_LEN_MAX -#define CIRCULAR_QUEUE_LEN_MAX 16 -#endif - -// -// <<< end of configuration section >>> - -#endif // __CIRCULAR_QUEUE_CONFIG_H__ diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/dmadrv_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/dmadrv_config.h deleted file mode 100644 index ed105e4f3..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/dmadrv_config.h +++ /dev/null @@ -1,26 +0,0 @@ -#ifndef DMADRV_CONFIG_H -#define DMADRV_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// DMA interrupt priority <0-15> -// Priority of the DMA interrupt. Smaller number equals higher priority. -// Default: 8 -#define EMDRV_DMADRV_DMA_IRQ_PRIORITY 8 - -// Number of available channels <1-8> -// Number of DMA channels supported by the driver. A lower channel count -// will reduce RAM memory footprint. The default is to support all channels -// on the device. -// Default: 8 -#define EMDRV_DMADRV_DMA_CH_COUNT 8 - -// Number of fixed priority channels -// This will configure channels [0, CH_PRIORITY - 1] as fixed priority, -// and channels [CH_PRIORITY, CH_COUNT] as round-robin. -// Default: 0 -#define EMDRV_DMADRV_DMA_CH_PRIORITY 0 - -// <<< end of configuration section >>> - -#endif // DMADRV_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/nvm3_default_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/nvm3_default_config.h deleted file mode 100644 index 2bf415f94..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/nvm3_default_config.h +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef NVM3_DEFAULT_CONFIG_H -#define NVM3_DEFAULT_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// NVM3 Default Instance Configuration - -#ifndef NVM3_DEFAULT_CACHE_SIZE -// NVM3 Default Instance Cache Size -// Number of NVM3 objects to cache. To reduce access times this number -// should be equal to or higher than the number of NVM3 objects in the -// default NVM3 instance. -// Default: 200 -#define NVM3_DEFAULT_CACHE_SIZE 200 -#endif - -#ifndef NVM3_DEFAULT_MAX_OBJECT_SIZE -// NVM3 Default Instance Max Object Size -// Max NVM3 object size that can be stored. -// Default: 254 -#define NVM3_DEFAULT_MAX_OBJECT_SIZE 4092 -#endif - -#ifndef NVM3_DEFAULT_REPACK_HEADROOM -// NVM3 Default Instance User Repack Headroom -// Headroom determining how many bytes below the forced repack limit the user -// repack limit should be placed. The default is 0, which means the user and -// forced repack limits are equal. -// Default: 0 -#define NVM3_DEFAULT_REPACK_HEADROOM 0 -#endif - -#ifndef NVM3_DEFAULT_NVM_SIZE -// NVM3 Default Instance Size -// Size of the NVM3 storage region in flash. This size should be aligned with -// the flash page size of the device. -// Default: 40960 -#define NVM3_DEFAULT_NVM_SIZE 40960 -#endif - -// - -// <<< end of configuration section >>> - -#endif // NVM3_DEFAULT_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/pin_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/pin_config.h deleted file mode 100644 index c2127fdac..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/pin_config.h +++ /dev/null @@ -1,244 +0,0 @@ -#ifndef PIN_CONFIG_H -#define PIN_CONFIG_H - -// $[CMU] -// [CMU]$ - -// $[LFXO] -// [LFXO]$ - -// $[PRS.ASYNCH0] -// [PRS.ASYNCH0]$ - -// $[PRS.ASYNCH1] -// [PRS.ASYNCH1]$ - -// $[PRS.ASYNCH2] -// [PRS.ASYNCH2]$ - -// $[PRS.ASYNCH3] -// [PRS.ASYNCH3]$ - -// $[PRS.ASYNCH4] -// [PRS.ASYNCH4]$ - -// $[PRS.ASYNCH5] -// [PRS.ASYNCH5]$ - -// $[PRS.ASYNCH6] -// [PRS.ASYNCH6]$ - -// $[PRS.ASYNCH7] -// [PRS.ASYNCH7]$ - -// $[PRS.ASYNCH8] -// [PRS.ASYNCH8]$ - -// $[PRS.ASYNCH9] -// [PRS.ASYNCH9]$ - -// $[PRS.ASYNCH10] -// [PRS.ASYNCH10]$ - -// $[PRS.ASYNCH11] -// [PRS.ASYNCH11]$ - -// $[PRS.ASYNCH12] -// [PRS.ASYNCH12]$ - -// $[PRS.ASYNCH13] -// [PRS.ASYNCH13]$ - -// $[PRS.ASYNCH14] -// [PRS.ASYNCH14]$ - -// $[PRS.ASYNCH15] -// [PRS.ASYNCH15]$ - -// $[PRS.SYNCH0] -// [PRS.SYNCH0]$ - -// $[PRS.SYNCH1] -// [PRS.SYNCH1]$ - -// $[PRS.SYNCH2] -// [PRS.SYNCH2]$ - -// $[PRS.SYNCH3] -// [PRS.SYNCH3]$ - -// $[GPIO] -// GPIO SWV on PA03 -#ifndef GPIO_SWV_PORT -#define GPIO_SWV_PORT SL_GPIO_PORT_A -#endif -#ifndef GPIO_SWV_PIN -#define GPIO_SWV_PIN 3 -#endif - -// [GPIO]$ - -// $[TIMER0] -// [TIMER0]$ - -// $[TIMER1] -// [TIMER1]$ - -// $[TIMER2] -// [TIMER2]$ - -// $[TIMER3] -// [TIMER3]$ - -// $[TIMER4] -// [TIMER4]$ - -// $[USART0] -// [USART0]$ - -// $[I2C1] -// I2C1 SCL on PC04 -#ifndef I2C1_SCL_PORT -#define I2C1_SCL_PORT SL_GPIO_PORT_C -#endif -#ifndef I2C1_SCL_PIN -#define I2C1_SCL_PIN 4 -#endif - -// I2C1 SDA on PC05 -#ifndef I2C1_SDA_PORT -#define I2C1_SDA_PORT SL_GPIO_PORT_C -#endif -#ifndef I2C1_SDA_PIN -#define I2C1_SDA_PIN 5 -#endif - -// [I2C1]$ - -// $[EUSART1] -// [EUSART1]$ - -// $[KEYSCAN] -// [KEYSCAN]$ - -// $[LETIMER0] -// [LETIMER0]$ - -// $[IADC0] -// [IADC0]$ - -// $[ACMP0] -// [ACMP0]$ - -// $[ACMP1] -// [ACMP1]$ - -// $[VDAC0] -// [VDAC0]$ - -// $[VDAC1] -// [VDAC1]$ - -// $[PCNT0] -// [PCNT0]$ - -// $[HFXO0] -// [HFXO0]$ - -// $[I2C0] -// [I2C0]$ - -// $[EUSART0] -// EUSART0 CTS on PB02 -#ifndef EUSART0_CTS_PORT -#define EUSART0_CTS_PORT SL_GPIO_PORT_B -#endif -#ifndef EUSART0_CTS_PIN -#define EUSART0_CTS_PIN 2 -#endif - -// EUSART0 RX on PA06 -#ifndef EUSART0_RX_PORT -#define EUSART0_RX_PORT SL_GPIO_PORT_A -#endif -#ifndef EUSART0_RX_PIN -#define EUSART0_RX_PIN 6 -#endif - -// EUSART0 TX on PA05 -#ifndef EUSART0_TX_PORT -#define EUSART0_TX_PORT SL_GPIO_PORT_A -#endif -#ifndef EUSART0_TX_PIN -#define EUSART0_TX_PIN 5 -#endif - -// [EUSART0]$ - -// $[PTI] -// PTI DFRAME on PC07 -#ifndef PTI_DFRAME_PORT -#define PTI_DFRAME_PORT SL_GPIO_PORT_C -#endif -#ifndef PTI_DFRAME_PIN -#define PTI_DFRAME_PIN 7 -#endif - -// PTI DOUT on PC06 -#ifndef PTI_DOUT_PORT -#define PTI_DOUT_PORT SL_GPIO_PORT_C -#endif -#ifndef PTI_DOUT_PIN -#define PTI_DOUT_PIN 6 -#endif - -// [PTI]$ - -// $[MODEM] -// [MODEM]$ - -// $[CUSTOM_PIN_NAME] -#ifndef _PORT -#define _PORT SL_GPIO_PORT_A -#endif -#ifndef _PIN -#define _PIN 0 -#endif - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -// [CUSTOM_PIN_NAME]$ - - -#endif // PIN_CONFIG_H - - diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/psa_crypto_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/psa_crypto_config.h deleted file mode 100644 index 773ce99e0..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/psa_crypto_config.h +++ /dev/null @@ -1,176 +0,0 @@ -#ifndef PSA_CRYPTO_CONFIG_H -#define PSA_CRYPTO_CONFIG_H - -// ----------------------------------------------------------------------------- -// User exposed config options - -// <<< Use Configuration Wizard in Context Menu >>> - -// Key management configuration - -// PSA User Maximum Open Keys Count <0-128> -// Maximum amount of keys that the user application will have open -// simultaneously. In context of PSA Crypto, an open key means any key -// either stored in RAM (lifetime set to PSA_KEY_LIFETIME_VOLATILE), or -// used as part of a cryptographic operation. -// When using a key for a multi-part (setup/update/finish) operation, a key -// is considered to be open from the moment the operation is successfully -// setup, until it finishes or aborts. -// When an application tries to open more keys than this value accounts for, -// the PSA API may return PSA_ERROR_INSUFFICIENT_MEMORY. Keep in mind that -// other software included in the application (e.g. wireless protocol stacks) -// also can have a need to have open keys in PSA Crypto. This could lead to -// a race condition when the application key slot count is set too low for -// the actual usage of the application, as a software stack may not fail -// gracefully in case an application opens more than its declared amount of -// keys, thereby precluding the stack from functioning. -// Default: 4 -#define SL_PSA_KEY_USER_SLOT_COUNT (4) - -// Maximum User Persistent PSA Key Count <0-1024> -// Maximum amount of keys (or other files) that can be stored persistently -// by the user application, when PSA ITS (Internal Trusted Storage) support -// is included in the project. -// NOTE: -// In addition to SL_PSA_ITS_USER_MAX_FILES (number of user keys) the -// application may be configured to include SDK components that require an -// additional number of keys. The sum of user keys and SDK component keys -// is computed and the result, called SL_PSA_ITS_MAX_FILES, is used -// internally in the PSA ITS driver. -// -// WARNING: -// For applications using PSA ITS driver version 1 or 2, when changing the -// SL_PSA_ITS_USER_MAX_FILES in an application that is already depeloyed, -// and thus will get the change through an application upgrade, care should -// be taken to ensure that the total sum of keys SL_PSA_ITS_MAX_FILES is -// only ever equal or increased, and never decreased. Decreasing this -// setting might cause previously stored keys/files to become inaccessible, -// ITS should be cleared and all files need to be stored again. -// -// For applications using PSA ITS driver version 3, it is not possible to -// change this setting because the file-storage indexing is dependent on the -// maximum number of files (SL_PSA_ITS_MAX_FILES) being consistent, and if -// the sum of SDK component keys and user keys (SL_PSA_ITS_USER_MAX_FILES) -// is changed, may cause previously stored keys/files to become inaccessible -// ITS should be cleared and all files need to be stored again. -// Default: 128 -#define SL_PSA_ITS_USER_MAX_FILES (128) - -// Enable V1 Format Support For ITS Files <0-1> -// Devices that used PSA ITS together with gecko_sdk_3.1.x or earlier -// might have keys (or other files) stored in V1 format. -// If no v1 files are used, its support can be disabled for space -// optimization. -// Default: 0 -#define SL_PSA_ITS_SUPPORT_V1_DRIVER 0 - -// Enable V2 ITS Driver Support <0-1> -// Devices that have used GSDK 4.1.x and earlier, and used ITS have the keys -// (or other files) stored using different address range. Enabling this -// config option adds upgrade code which converts V2 (and V1 if -// supported) format ITS keys/files to the latest V3 format. Update is -// fully automatic, needs to be run once and require extra flash space of -// approximately the size of the largest key. -// V1 ITS driver support can be disabled if the device has never used ITS -// driver before in GSDK 4.1.x and earlier, or the keys has been already -// migrated. -// Default: 0 -#define SL_PSA_ITS_SUPPORT_V2_DRIVER 0 - -// Enable support for V3 ITS Driver <0-1> -// Devices that have used GSDK 4.1.x and earlier, and used ITS have the keys -// (or other files) stored using different address range. In rare case -// that those devices have full nvm3 and not enough space for the -// upgrade, (that requires an extra space to store largest key in memory -// twice), this config option can disable v3 driver and use v2 one. -// To upgrade the device, make space for the upgrade, and enable v3 driver again. -// -// WARNING: When using V3 driver, it is not possible to increase or decrease -// the value of SL_PSA_ITS_USER_MAX_FILES. If the change of -// SL_PSA_ITS_USER_MAX_FILES is required, ITS should be cleared and -// all files need to be stored again. -// Default: 1 -#define SL_PSA_ITS_SUPPORT_V3_DRIVER 1 - -// Built-in AES Key Mode of Operation -// CTR Mode -// CFB Mode -// OFB Mode -// ECB Mode -// CBC Mode (no padding) -// CBC Mode (PKCS#7 padding) -// PSA Crypto only allows one specific usage algorithm per built-in key ID. -// Default: PSA_ALG_CTR -#define SL_SE_BUILTIN_KEY_AES128_ALG_CONFIG (PSA_ALG_CTR) - -#ifndef SL_CRYPTOACC_BUILTIN_KEY_PUF_ALG -// Built-in PUF Key Algorithm -// PBKDF2 (CMAC-AES-128-PRF) -// CMAC -// PSA Crypto only allows one specific usage algorithm per built-in key ID. -// It is recommended to only use the PUF key for deriving further key -// material. -// Default: PSA_ALG_PBKDF2_AES_CMAC_PRF_128 -#define SL_CRYPTOACC_BUILTIN_KEY_PUF_ALG (PSA_ALG_PBKDF2_AES_CMAC_PRF_128) -#endif // SL_CRYPTOACC_BUILTIN_KEY_PUF_ALG - -// - -// Power optimization configuration - -// Store already-generated random bytes before putting the device to sleep -// Using the hardware TRNG (for example through psa_generate_random()) will -// consume a non-negligible amount of power. A start-up routine must pass -// and a relatively large minimum amount of random bytes will be generated. -// Use cases where the device is frequently entering EM2/EM3 and thereafter -// consumes a small amount of data from the TRNG may benefit from buffering -// the existing random bytes before putting the device to sleep. These -// buffered bytes are then consumed until exhaustion before the TRNG needs -// to be initialized and used again. -// -// NOTE: this configuration option is only applicable for devices with a -// Virtual Secure Engine (VSE), and requires the 'Power Manager' component -// to be included in the project. -// -// Default: 0 -#define SL_VSE_BUFFER_TRNG_DATA_DURING_SLEEP (0) - -// Number of random words to buffer before putting the device to sleep <1-63> -// This option can be used to decrease the amount of random words that -// (if enabled) are buffered before the device enters EM2/EM3. Lowering this -// number will result in less static RAM usage, but also means that the TRNG -// potentially has to be initialized more times--leading to increased power -// consumption. By default this option in configured to buffer as much TRNG -// data as possible (limited by the depth of the TRNG FIFO). -// -// NOTE: this configuration option is only applicable when -// SL_VSE_BUFFER_TRNG_DATA_DURING_SLEEP is enabled. -// -// Default: 63 -#define SL_VSE_MAX_TRNG_WORDS_BUFFERED_DURING_SLEEP (63) -// - -// - -// <<< end of configuration section >>> - -// ----------------------------------------------------------------------------- -// Sub-files - -#if defined(SLI_PSA_CONFIG_AUTOGEN_OVERRIDE_FILE) - #include SLI_PSA_CONFIG_AUTOGEN_OVERRIDE_FILE -#else - #include "sli_psa_config_autogen.h" -#endif - -#if defined(TFM_CONFIG_SL_SECURE_LIBRARY) - #include "sli_psa_tfm_translation.h" -#endif - -#if SL_MBEDTLS_DRIVERS_ENABLED - #include "sli_psa_acceleration.h" -#endif - -#include "sli_psa_builtin_config_autogen.h" - -#endif // PSA_CRYPTO_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_802154_radio_priority_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_802154_radio_priority_config.h deleted file mode 100644 index 77334ba2c..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_802154_radio_priority_config.h +++ /dev/null @@ -1,57 +0,0 @@ -/***************************************************************************//** - * @brief Unified radio scheduler priority configuration for 802.15.4 stacks - * - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * The licensor of this software is Silicon Laboratories Inc. Your use of this - * software is governed by the terms of Silicon Labs Master Software License - * Agreement (MSLA) available at - * www.silabs.com/about-us/legal/master-software-license-agreement. This - * software is distributed to you in Source Code format and is governed by the - * sections of the MSLA applicable to Source Code. - * - ******************************************************************************/ -#ifndef __SL_802154_RADIO_PRIORITY_CONFIG_H__ -#define __SL_802154_RADIO_PRIORITY_CONFIG_H__ - -// <<< Use Configuration Wizard in Context Menu >>> - -// 802.15.4 Radio Priorities - -// TX priority minimum -// <1-255:1> -// Default: 100 -// The 802.15.4 TX priority for the first try of a TX message -#define SL_802154_RADIO_PRIO_TX_MIN 100 - -// TX priority step -// <1-50:1> -// Default: 2 -// The delta by which the TX priority for 802.15.4 stacks decrements for each retry of the packet -#define SL_802154_RADIO_PRIO_TX_STEP 2 - -// TX priority maximum -// <1-255:1> -// Default: 80 -// The highest 802.15.4 TX priority of a message. TX priorities are elevated based on number of retries and the step value specified -#define SL_802154_RADIO_PRIO_TX_MAX 80 - -// Active RX priority -// <1-255:1> -// Default: 255 -// The 802.15.4 active RX priority. Active RX is when the device is receiving a packet -#define SL_802154_RADIO_PRIO_ACTIVE_RX_VALUE 255 - -// Background RX priority -// <1-255:1> -// Default: 255 -// The 802.15.4 background RX priority. Background RX is the general, passive receive state when the device is not transmitting anything -#define SL_802154_RADIO_PRIO_BACKGROUND_RX_VALUE 255 - -// - -// <<< end of configuration section >>> -#endif //__SL_802154_RADIO_PRIORITY_CONFIG_H__ diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_bgapi_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_bgapi_config.h deleted file mode 100644 index 1ae43b6b5..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_bgapi_config.h +++ /dev/null @@ -1,43 +0,0 @@ -/***************************************************************************//** - * @file - * @brief BGAPI Protocol configuration - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BGAPI_CONFIG_H -#define SL_BGAPI_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// The maximum BGAPI payload size <256-2047> -// Default: 256 -// Define the maximum payload size for BGAPI commands, responses, and events. The setting impacts all protocol stacks that use the BGAPI, i.e. Bluetooth host and Bluetooth mesh. -#define SL_BGAPI_MAX_PAYLOAD_SIZE (256) - -// <<< end of configuration section >>> - -#endif // SL_BGAPI_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_bluetooth_advertiser_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_bluetooth_advertiser_config.h deleted file mode 100644 index 00163cd9a..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_bluetooth_advertiser_config.h +++ /dev/null @@ -1,45 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth Advertiser configuration - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BT_ADVERTISER_CONFIG_H -#define SL_BT_ADVERTISER_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> -// Max number of advertising sets reserved for user <0-255> -// Default: 1 -// Define the number of advertising sets that the application needs to use concurrently. Note that all types of advertising uses the same pool of advertising sets, but periodic advertising has extra configuration to define the number of advertising sets that are capable of periodic advertising. -// -// Specifically, if the component "bluetooth_feature_periodic_advertiser" is used, its configuration SL_BT_CONFIG_MAX_PERIODIC_ADVERTISERS specifies how many of the SL_BT_CONFIG_USER_ADVERTISERS advertising sets are capable of periodic advertising. Similarly, if the component bluetooth_feature_pawr_advertiser is used, its configuration SL_BT_CONFIG_MAX_PAWR_ADVERTISERS specifies how many of the periodic advertising sets are capable of Periodic Advertising with Responses. -// -// The configuration values must satisfy the condition SL_BT_CONFIG_USER_ADVERTISERS >= SL_BT_CONFIG_MAX_PERIODIC_ADVERTISERS >= SL_BT_CONFIG_MAX_PAWR_ADVERTISERS. -#define SL_BT_CONFIG_USER_ADVERTISERS (1) -// <<< end of configuration section >>> - -#endif diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_bluetooth_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_bluetooth_config.h deleted file mode 100644 index 93bfbbcc4..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_bluetooth_config.h +++ /dev/null @@ -1,181 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth Stack configuration - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BLUETOOTH_CONFIG_H -#define SL_BLUETOOTH_CONFIG_H -#if defined(SL_COMPONENT_CATALOG_PRESENT) -#include "sl_component_catalog.h" -#endif - -// <<< Use Configuration Wizard in Context Menu >>> - -// Bluetooth Stack Configuration - -#ifdef SL_CATALOG_BLUETOOTH_FEATURE_CONNECTION_PRESENT -#include "sl_bluetooth_connection_config.h" -#else -#define SL_BT_CONFIG_MAX_CONNECTIONS (0) -#endif - -// Max number of connections reserved by user application and components -#define SL_BT_CONFIG_MAX_CONNECTIONS_SUM (SL_BT_CONFIG_MAX_CONNECTIONS + SL_BT_COMPONENT_CONNECTIONS) - -#ifdef SL_CATALOG_BLUETOOTH_FEATURE_ADVERTISER_PRESENT -#include "sl_bluetooth_advertiser_config.h" -#else -#define SL_BT_CONFIG_USER_ADVERTISERS (0) -#endif - -#define SL_BT_CONFIG_MAX_ADVERTISERS (SL_BT_CONFIG_USER_ADVERTISERS + SL_BT_COMPONENT_ADVERTISERS) - -// Max number of software timers <0-16> -// Default: 4 -// Define the number of software timers the application needs. Each timer needs resources from the stack to be implemented. Increasing amount of soft timers may cause degraded performance in some use cases. -#define SL_BT_CONFIG_MAX_SOFTWARE_TIMERS (4) - -// Buffer memory size for Bluetooth stack -// Default: 3150 -// Define buffer memory size for running Bluetooth stack and buffering data over Bluetooth connections, -// advertising and scanning. The default value is an estimation for achieving adequate throughput -// and supporting multiple simultaneous connections. Consider increasing this value for -// higher data throughput over connections, advertising or scanning long advertisement data. -#define SL_BT_CONFIG_BUFFER_SIZE (3150) - -// Enable using a custom Bluetooth address stored in NVM3 -// Enable or disable using a custom Bluetooth address stored the Bluetooth space of NVM3. When enabled, -// the Bluetooth stack sets the address as the Bluetooth identity address of the device if a valid address -// is found in NVM3. -// Default: 1 -#define SL_BT_CONFIG_SET_CUSTOM_ADDRESS_FROM_NVM3 (1) -// - -// Enable setting the HFXO CTUNE with a value stored in the Bluetooth space of NVM3. -// Enable or disable setting the HFXO CTUNE with a value stored in the Bluetooth space of NVM3. When enabled, the -// Bluetooth stack sets the HFXO CTUNE at Bluetooth starting phase if a CTUNE value is found in NVM3. This -// operation will override the CTUNE that is set to with the value stored in the MFG_CTUNE token or the -// configuration value in the Clock Manager. -// Setting the HFXO CTUNE with this method is deprecated. Currently the functionality is provided for keeping -// backwards compatibility with legacy SDKs, and the support will be discontinued in future SDK releases. -// The recommended method is to store CTUNE value in the MFG_CTUNE token. -// Default: 0 -#define SL_BT_CONFIG_SET_CTUNE_FROM_NVM3 (0) -// - -// End Bluetooth Stack Configuration - -// TX Power Levels - -// Minimum radiated TX power level in 0.1dBm unit -// Default: -30 (-3 dBm) -// Configure the minimum radiated TX power level for Bluetooth connections and DTM testing. -// This configuration is used for power control on Bluetooth connections -// if the LE Power Control feature is enabled. -// When this configuration is passed into stack initialization, the stack -// will select the closest value that the device supports. -// API sl_bt_system_set_tx_power() can be used to set the minimum TX power at runtime. -// API sl_bt_system_get_tx_power_setting() can be used to query the selected value. -#define SL_BT_CONFIG_MIN_TX_POWER (-30) - -// Maximum radiated TX power level in 0.1dBm unit -// Default: 80 (8 dBm) -// Configure the maximum radiated TX power level for Bluetooth connections, -// advertising, scanning and DTM testing. -// When this configuration is passed into stack initialization, the stack -// will select the closest value that the device supports. -// API sl_bt_system_set_tx_power() can be used to set the maximum TX power at runtime. -// API sl_bt_system_get_tx_power_setting() can be used to query the selected value. -#define SL_BT_CONFIG_MAX_TX_POWER (80) - -// End TX Power Levels - -// RF Path - -// RF TX path gain in 0.1dBm unit -// Default: 0 -// The Bluetooth stack takes TX RF path gain into account when adjusting transmitter -// output power. Power radiated from the antenna then matches the application request. -// A negative value indicates some power loss in the path. For example, -// with radiated TX power set to +10 dBm and this configuration to -10 -// (i.e., 1 dBm loss), the transmitter output power will be set to +11 dBm. -#define SL_BT_CONFIG_RF_PATH_GAIN_TX (0) - -// RF RX path gain in 0.1dBm unit -// Default: 0 -// RX RF path gain is used to compensate the RSSI reports from the Bluetooth Stack. -#define SL_BT_CONFIG_RF_PATH_GAIN_RX (0) - -// End RF Path - -// <<< end of configuration section >>> - -/** - * By default, Bluetooth requires accurate LF clock for EM2. If the component - * catalog presents, an inaccurate LF clock for EM2 can be used if the Bluetooth - * connection, periodic advertising and periodic advertising synchronization - * features are known to not present. - */ -#define BT_EM2_LFCLK_REQ_FLAG 0 - -#if defined(SL_COMPONENT_CATALOG_PRESENT) -#if !defined(SL_CATALOG_BLUETOOTH_FEATURE_CONNECTION_PRESENT) \ - && !defined(SL_CATALOG_BLUETOOTH_FEATURE_PERIODIC_ADV_PRESENT) \ - && !defined(SL_CATALOG_BLUETOOTH_FEATURE_SYNC_PRESENT) - #undef BT_EM2_LFCLK_REQ_FLAG - #define BT_EM2_LFCLK_REQ_FLAG SL_BT_CONFIG_FLAG_INACCURATE_LFCLK_EM2 -#endif -#endif // SL_COMPONENT_CATALOG_PRESENT - -#ifdef SL_CATALOG_KERNEL_PRESENT - #define SL_BT_CONFIG_FLAGS (SL_BT_CONFIG_FLAG_RTOS | BT_EM2_LFCLK_REQ_FLAG) -#else - #define SL_BT_CONFIG_FLAGS (BT_EM2_LFCLK_REQ_FLAG) -#endif // SL_CATALOG_KERNEL_PRESENT - -#include "sl_bt_stack_config.h" -#include "sl_bgapi_config.h" // For SL_BGAPI_MAX_PAYLOAD_SIZE - -// NOTE: Struct sl_btctrl_ll_priorities is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// The Link Layer scheduler priority configuration is initialized via the Bluetooth Low Energy Controller component. -#define SL_BT_CONFIG_DEFAULT \ - { \ - .config_flags = SL_BT_CONFIG_FLAGS, \ - .bluetooth.max_buffer_memory = SL_BT_CONFIG_BUFFER_SIZE, \ - .scheduler_callback = NULL, \ - .stack_schedule_callback = NULL, \ - .gattdb = &gattdb, \ - .max_timers = SL_BT_CONFIG_MAX_SOFTWARE_TIMERS, \ - .rf.tx_gain = SL_BT_CONFIG_RF_PATH_GAIN_TX, \ - .rf.rx_gain = SL_BT_CONFIG_RF_PATH_GAIN_RX, \ - .rf.tx_min_power = SL_BT_CONFIG_MIN_TX_POWER, \ - .rf.tx_max_power = SL_BT_CONFIG_MAX_TX_POWER, \ - .max_bgapi_payload_size = SL_BGAPI_MAX_PAYLOAD_SIZE, \ - } - -#endif // SL_BLUETOOTH_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_board_control_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_board_control_config.h deleted file mode 100644 index 79caa1fd9..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_board_control_config.h +++ /dev/null @@ -1,130 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Board Control - ******************************************************************************* - * # License - * Copyright 2022 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BOARD_CONTROL_CONFIG_H -#define SL_BOARD_CONTROL_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Enable Relative Humidity and Temperature sensor -// Default: 0 -#define SL_BOARD_ENABLE_SENSOR_RHT 0 - -// Enable Hall Effect sensor -// Default: 0 -#define SL_BOARD_ENABLE_SENSOR_HALL 0 - -// Enable Barometric Pressure sensor -// Default: 0 -#define SL_BOARD_ENABLE_SENSOR_PRESSURE 0 - -// Enable Light sensor -// Default: 0 -#define SL_BOARD_ENABLE_SENSOR_LIGHT 0 - -// Enable Inertial Measurement Unit -// Default: 0 -#define SL_BOARD_ENABLE_SENSOR_IMU 0 - -// Enable Microphone -// Default: 0 -#define SL_BOARD_ENABLE_SENSOR_MICROPHONE 0 - -// Disable SPI Flash -// Default: 1 -#define SL_BOARD_DISABLE_MEMORY_SPI 1 - -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_BOARD_ENABLE_SENSOR_RHT -// $[GPIO_SL_BOARD_ENABLE_SENSOR_RHT] -#ifndef SL_BOARD_ENABLE_SENSOR_RHT_PORT -#define SL_BOARD_ENABLE_SENSOR_RHT_PORT SL_GPIO_PORT_C -#endif -#ifndef SL_BOARD_ENABLE_SENSOR_RHT_PIN -#define SL_BOARD_ENABLE_SENSOR_RHT_PIN 9 -#endif -// [GPIO_SL_BOARD_ENABLE_SENSOR_RHT]$ - -// SL_BOARD_ENABLE_SENSOR_HALL -// $[GPIO_SL_BOARD_ENABLE_SENSOR_HALL] -#ifndef SL_BOARD_ENABLE_SENSOR_HALL_PORT -#define SL_BOARD_ENABLE_SENSOR_HALL_PORT SL_GPIO_PORT_C -#endif -#ifndef SL_BOARD_ENABLE_SENSOR_HALL_PIN -#define SL_BOARD_ENABLE_SENSOR_HALL_PIN 9 -#endif -// [GPIO_SL_BOARD_ENABLE_SENSOR_HALL]$ - -// SL_BOARD_ENABLE_SENSOR_PRESSURE -// $[GPIO_SL_BOARD_ENABLE_SENSOR_PRESSURE] -#ifndef SL_BOARD_ENABLE_SENSOR_PRESSURE_PORT -#define SL_BOARD_ENABLE_SENSOR_PRESSURE_PORT SL_GPIO_PORT_C -#endif -#ifndef SL_BOARD_ENABLE_SENSOR_PRESSURE_PIN -#define SL_BOARD_ENABLE_SENSOR_PRESSURE_PIN 9 -#endif -// [GPIO_SL_BOARD_ENABLE_SENSOR_PRESSURE]$ - -// SL_BOARD_ENABLE_SENSOR_LIGHT -// $[GPIO_SL_BOARD_ENABLE_SENSOR_LIGHT] -#ifndef SL_BOARD_ENABLE_SENSOR_LIGHT_PORT -#define SL_BOARD_ENABLE_SENSOR_LIGHT_PORT SL_GPIO_PORT_C -#endif -#ifndef SL_BOARD_ENABLE_SENSOR_LIGHT_PIN -#define SL_BOARD_ENABLE_SENSOR_LIGHT_PIN 9 -#endif -// [GPIO_SL_BOARD_ENABLE_SENSOR_LIGHT]$ - -// SL_BOARD_ENABLE_SENSOR_IMU -// $[GPIO_SL_BOARD_ENABLE_SENSOR_IMU] -#ifndef SL_BOARD_ENABLE_SENSOR_IMU_PORT -#define SL_BOARD_ENABLE_SENSOR_IMU_PORT SL_GPIO_PORT_C -#endif -#ifndef SL_BOARD_ENABLE_SENSOR_IMU_PIN -#define SL_BOARD_ENABLE_SENSOR_IMU_PIN 9 -#endif -// [GPIO_SL_BOARD_ENABLE_SENSOR_IMU]$ - -// SL_BOARD_ENABLE_SENSOR_MICROPHONE -// $[GPIO_SL_BOARD_ENABLE_SENSOR_MICROPHONE] -#ifndef SL_BOARD_ENABLE_SENSOR_MICROPHONE_PORT -#define SL_BOARD_ENABLE_SENSOR_MICROPHONE_PORT SL_GPIO_PORT_C -#endif -#ifndef SL_BOARD_ENABLE_SENSOR_MICROPHONE_PIN -#define SL_BOARD_ENABLE_SENSOR_MICROPHONE_PIN 8 -#endif -// [GPIO_SL_BOARD_ENABLE_SENSOR_MICROPHONE]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_BOARD_CONTROL_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_bt_host_adaptation_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_bt_host_adaptation_config.h deleted file mode 100644 index 4ba5a3dc8..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_bt_host_adaptation_config.h +++ /dev/null @@ -1,59 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Configuration of the Bluetooth host stack system adaptation layer - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BT_HOST_ADAPTATION_CONFIG_H -#define SL_BT_HOST_ADAPTATION_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Bluetooth Host Adaptation Configuration - -// Radio interrupt priority in baremetal applications <1..7:1> -// Default: 4 -// Define the ISR priority for radio interrupts in baremetal applications. The Bluetooth host stack sets this priority when the Bluetooth stack is started. -// -// NOTE: SL_BT_HOST_ADAPTATION_RADIO_IRQ_PRIORITY is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// Please use SL_BT_CONTROLLER_RADIO_IRQ_PRIORITY instead, provided by the Bluetooth Low Energy Controller component. -#define SL_BT_HOST_ADAPTATION_RADIO_IRQ_PRIORITY (4) - -// Linklayer interrupt priority in baremetal applications <1..7:1> -// Default: 5 -// Define the ISR priority for linklayer interrupts in baremetal applications. The Bluetooth host stack sets this priority when the Bluetooth stack is started. -// The value of SL_BT_HOST_ADAPTATION_LINKLAYER_IRQ_PRIORITY must be higher than SL_BT_HOST_ADAPTATION_RADIO_IRQ_PRIORITY. -// -// NOTE: SL_BT_HOST_ADAPTATION_LINKLAYER_IRQ_PRIORITY is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// Please use SL_BT_CONTROLLER_LINKLAYER_IRQ_PRIORITY instead, provided by the Bluetooth Low Energy Controller component. -#define SL_BT_HOST_ADAPTATION_LINKLAYER_IRQ_PRIORITY (5) - -// Bluetooth Host Adaptation Configuration - -// <<< end of configuration section >>> - -#endif // SL_BT_HOST_ADAPTATION_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_bt_rtos_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_bt_rtos_config.h deleted file mode 100644 index b80c07967..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_bt_rtos_config.h +++ /dev/null @@ -1,44 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth RTOS configuration - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BT_RTOS_CONFIG_H -#define SL_BT_RTOS_CONFIG_H - -#include - -#if defined(_SILICON_LABS_32B_SERIES_2) -#include "sl_bt_rtos_config_s2.h" -#elif defined(_SILICON_LABS_32B_SERIES_3) -#include "sl_bt_rtos_config_s3.h" -#else -#error "Device not supported" -#endif - -#endif // SL_BT_RTOS_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_bt_rtos_config_s2.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_bt_rtos_config_s2.h deleted file mode 100644 index eb4fe3ea2..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_bt_rtos_config_s2.h +++ /dev/null @@ -1,84 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth RTOS configuration - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BT_RTOS_CONFIG_S2_H -#define SL_BT_RTOS_CONFIG_S2_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Priority Configuration for Bluetooth RTOS Tasks - -// Bluetooth link layer task priority -// Default: 52 (CMSIS-RTOS2 osPriorityRealtime4) -// Define the priority of the Bluetooth link layer task. This must be a valid -// priority value from CMSIS-RTOS2 osPriority_t definition. The link layer -// task must have the highest priority in these three Bluetooth RTOS tasks. -#define SL_BT_RTOS_LINK_LAYER_TASK_PRIORITY (52) - -// Bluetooth link layer task stack size in bytes -// Default: 1000 -// Define the stack size of the Bluetooth link layer task. The value is in bytes -// and will be word aligned when it is applied at the task creation. -#define SL_BT_RTOS_LINK_LAYER_TASK_STACK_SIZE 1024 - -// Bluetooth host stack task priority -// Default: 51 (CMSIS-RTOS2 osPriorityRealtime3) -// Define the priority of the Bluetooth host stack task. This must be a -// valid priority value from CMSIS-RTOS2 osPriority_t definition. -#define SL_BT_RTOS_HOST_STACK_TASK_PRIORITY (51) - -// Bluetooth host stack task stack size in bytes -// Default: 2000 -// Define the stack size of the Bluetooth host stack task. The value is in bytes -// and will be word aligned when it is applied at the task creation. -#define SL_BT_RTOS_HOST_STACK_TASK_STACK_SIZE 2048 - -// Bluetooth event handler task priority -// Default: 50 (CMSIS-RTOS2 osPriorityRealtime2) -// Define the priority of the Bluetooth event handler task. This must be a -// valid priority value from CMSIS-RTOS2 osPriority_t definition. The event -// handler task must have the lowest priority in these three Bluetooth RTOS tasks. -// The event task is not created and this configuration is unused if the -// Bluetooth Event System IPC component is included in the application -#define SL_BT_RTOS_EVENT_HANDLER_TASK_PRIORITY (50) - -// Bluetooth event handler task stack size in bytes -// Default: 1000 -// Define the stack size of the Bluetooth event handler task. The value is in bytes -// and will be word aligned when it is applied at the task creation. -// The event task is not created and this configuration is unused if the -// Bluetooth Event System IPC component is included in the application -#define SL_BT_RTOS_EVENT_HANDLER_STACK_SIZE 1536 - -// End Priority Configuration for Bluetooth RTOS Tasks - -// <<< end of configuration section >>> - -#endif // SL_BT_RTOS_CONFIG_S2_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_btctrl_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_btctrl_config.h deleted file mode 100644 index 403df1ffe..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_btctrl_config.h +++ /dev/null @@ -1,174 +0,0 @@ -#ifndef SL_BTCTRL_CONFIG_H -#define SL_BTCTRL_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Bluetooth Controller Configuration - -// Bluetooth Controller Buffer Memory -// Default: SL_BT_CONTROLLER_BUFFER_MEMORY -// Define the Amount of memory to allocate for tx/rx buffers in Bluetooth Controller -#ifndef SL_BT_CONTROLLER_BUFFER_MEMORY -#define SL_BT_CONTROLLER_BUFFER_MEMORY (8192) -#endif - -// Bluetooth Controller ACL data packets that can be stored -// Default: SL_BT_CONTROLLER_LE_BUFFER_SIZE_MAX -// Define the total number of the maximum sized ACL data packets that can be received from the host -#ifndef SL_BT_CONTROLLER_LE_BUFFER_SIZE_MAX -#define SL_BT_CONTROLLER_LE_BUFFER_SIZE_MAX (3) -#endif - -// Maximum number of queued advertisement reports <1-255> -// Default: 10 -// Define the maximum number of queued advertisement reports. Additional advertisement reports are dropped. -#ifndef SL_BT_CONFIG_MAX_QUEUED_ADV_REPORTS -#define SL_BT_CONFIG_MAX_QUEUED_ADV_REPORTS (10) -#endif - -// Bluetooth Controller Scanner Reception Early Abort. -// Default: Disabled -// Enable or disable the scanner reception early abort feature. -// This feature allows the controller to control the scanner to abort the reception of a packet if it will conflinct with another scheduled higher priority task. -#ifndef SL_BT_CONTROLLER_SCANNER_RECEPTION_EARLY_ABORT -#define SL_BT_CONTROLLER_SCANNER_RECEPTION_EARLY_ABORT (0) -#endif - -// Linklayer interrupt priority in baremetal applications <1..7:1> -// Default: 5 -// Define the ISR priority for linklayer interrupts in baremetal applications. -// The value of SL_BT_CONTROLLER_LINKLAYER_IRQ_PRIORITY must be higher than SL_BT_CONTROLLER_RADIO_IRQ_PRIORITY. -// -// NOTE: SL_BT_CONTROLLER_LINKLAYER_IRQ_PRIORITY is only applicable in baremetal applications. -// For RCP applications that include an RTOS, Link Layer thread priority is determined by SL_BTCTRL_RTOS_LINK_LAYER_TASK_PRIORITY, -// defined in config/sl_btctrl_rtos_config.h. -// For NCP/SoC applications that include an RTOS, Link Layer thread priority is determined by SL_BT_RTOS_LINK_LAYER_TASK_PRIORITY, -// defined in config/sl_bt_rtos_config.h. -#ifndef SL_BT_CONTROLLER_LINKLAYER_IRQ_PRIORITY -#define SL_BT_CONTROLLER_LINKLAYER_IRQ_PRIORITY (5) -#endif - -// Radio interrupt priority <1..7:1> -// Default: 4 -// Define the ISR priority for radio interrupts. -#ifndef SL_BT_CONTROLLER_RADIO_IRQ_PRIORITY -#define SL_BT_CONTROLLER_RADIO_IRQ_PRIORITY (4) -#endif - -// TX Power Levels - -// Override Default Minimum Supported TX Power Level -// Default: 0 -// Define the minimum radiated TX power level. -#ifndef SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE -#define SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE (0) -#endif - -// Minimum radiated TX power level in 0.1dBm unit -// Default: 0 -// Define the minimum radiated TX power level. -// If the configured power level is lower than what the radio supports, the minimum supported level will be used. -// For NCP and SoC applications, the TX power configuration is located in the Bluetooth Core component. -// This value will nonetheless be applied, provided that SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE is enabled, and the corresponding minimum TX power value in the Bluetooth Core component remains at the default value. -// For RCP applications, this value will be applied if SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE is enabled. If SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE is disabled, this value will be ignored and the minimum supported TX power level will be used. -#ifndef SL_BT_CONTROLLER_MIN_POWER_LEVEL -#define SL_BT_CONTROLLER_MIN_POWER_LEVEL (0) -#endif -// - -// Override Default Maximum Supported TX Power Level -// Default: 0 -// Define the maximum radiated TX power level. -#ifndef SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE -#define SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE (0) -#endif - -// Maximum radiated TX power level in 0.1dBm unit -// Default: 0 -// Define the maximum radiated TX power level. -// If the configured power level is higher than what the radio supports, the maximum supported level will be used. -// For NCP and SoC applications, the TX power configuration is located in the Bluetooth Core component. -// This value will nonetheless be applied, provided that SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE is enabled, and the corresponding maximum TX power value in the Bluetooth Core component remains at the default value. -// For RCP applications, this value will be applied if SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE is enabled. If SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE is disabled, this value will be ignored and the maximum supported TX power level will be used. -#ifndef SL_BT_CONTROLLER_MAX_POWER_LEVEL -#define SL_BT_CONTROLLER_MAX_POWER_LEVEL (0) -#endif -// - -// End TX Power Levels - -// Bluetooth Controller Configuration for LE Connection -// Total transmitted packets threshold for all connections to send the Number Of Completed Packets HCI event to the host <1-255> -// Default: 4 -// Define the number of transmitted air interface ACL packets to trigger the Number Of Completed Packets HCI event. -#ifndef SL_BT_CONTROLLER_COMPLETED_PACKETS_THRESHOLD -#define SL_BT_CONTROLLER_COMPLETED_PACKETS_THRESHOLD (4) -#endif - -// Number of connection events to send the Number Of Completed Packets HCI event to the host <1-255> -// Default: 3 -// Define the maximum number of connection events since the previous Number Of Completed Packets HCI event to trigger reporting of any unreported completed ACL packets. -#ifndef SL_BT_CONTROLLER_COMPLETED_PACKETS_EVENTS_TIMEOUT -#define SL_BT_CONTROLLER_COMPLETED_PACKETS_EVENTS_TIMEOUT (3) -#endif - -// Bluetooth Controller Minimum Connection Event Duration -// Default: SL_BT_CONTROLLER_CONN_EVENT_LENGTH_MIN -// Define the minimum connection event length in 0.625 ms units. This value is used to provide a hint to the linklayer scheduler. -// User could set a larger minimum connection event length when creating a connection or when updating connection parameters. -#ifndef SL_BT_CONTROLLER_CONN_EVENT_LENGTH_MIN -#define SL_BT_CONTROLLER_CONN_EVENT_LENGTH_MIN (3) -#endif - -// Bluetooth Controller Connection Event Extension -// Default: Disabled -// Enable or disable the connection event extension feature. -// This allows connections to overrun lower priority tasks as long as there is data to transmit or receive on the connection, -// and the maximum connection event length is not reached. -#ifndef SL_BT_CONTROLLER_CONN_EVENT_LENGTH_EXTENSION -#define SL_BT_CONTROLLER_CONN_EVENT_LENGTH_EXTENSION (0) -#endif -// Bluetooth Controller Configuration for LE Connection - -// Use legacy event code 0x3e for vendor specific events -// Default: 0 -#ifndef SL_BT_CONTROLLER_USE_LEGACY_VENDOR_SPECIFIC_EVENT_CODE -#define SL_BT_CONTROLLER_USE_LEGACY_VENDOR_SPECIFIC_EVENT_CODE (0) -#endif - -// Adaptive Frequency Hopping operation mode -// Active AFH -// Passive AFH -// Choose between active AFH and passive AFH -// Default: Active AFH -// SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY -#ifndef SL_BT_CONTROLLER_ADAPTIVITY_MODE -#define SL_BT_CONTROLLER_ADAPTIVITY_MODE (SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY) -#endif - -// Advertising Configuration -// Include TX Power in the extended header of primary extended advertising packets -// This is default setting to all advertising sets unless it is specifically overridden by VS_SiliconLabs_Set_Advertising_Config_Bits. -// Default: 0 -// Enabling this option takes effect only if permitted by Le_Set_Extended_Advertising_Parameters -// According to Link Layer specification, Vol 6, Part B, Table 2.4 and Table 2.5: -// Optional in 1M PHY when the advertiser is connectable or scannable, or with auxiliary pointer. -// In other cases, the Extended Advertising TX Power is always optional by settings. -#define SL_BT_CONTROLLER_PRIMARY_EXT_PACKET_INCLUDE_TX_POWER (0) -// -// Include Advertiser Address in the header of primary extended advertising packets -// This is default setting to all advertising sets unless it is specifically overridden by VS_SiliconLabs_Set_Advertising_Config_Bits. -// Default: 0 -// Enabling this option takes effect only if permitted by Le_Set_Extended_Advertising_Parameters -// According to Link Layer specification, Vol 6, Part B, Table 2.4 and Table 2.5: -// Optional in 1M PHY when the advertiser is non-connectable and non-scannable, with auxiliary pointer. -// Mandatory when the advertiser is non-connectable and non-scannable, without auxiliary pointer. -// Forbidden when the advertiser is connectable or scannable. -#define SL_BT_CONTROLLER_PRIMARY_EXT_PACKET_INCLUDE_ADDRESS (0) -// -// Advertising Configuration -// Bluetooth Controller Configuration - -// <<< end of configuration section >>> - -#endif // SL_BTCTRL_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_btctrl_scheduler_priority_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_btctrl_scheduler_priority_config.h deleted file mode 100644 index 0eec28095..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_btctrl_scheduler_priority_config.h +++ /dev/null @@ -1,235 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth Scheduler Priority configuration - ******************************************************************************* - * # License - * Copyright 2025 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H -#define SL_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H -#include "sl_btctrl_linklayer_defs.h" - -// <<< Use Configuration Wizard in Context Menu >>> - -// Bluetooth Low Energy Scheduler Priorities - -// Scan - Min -// <0-255:1> -// Default: 191 -// Define the lowest permitted BLE scan priority. [0-255] -// A lower value indicates a higher priority. -// Scanning is typically considered to be a low priority -// operation, and the default values are set to reflect that. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MIN 191 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MIN - -// Scan - Max -// <0-255:1> -// Default: 143 -// Define the highest permitted BLE scan priority. [0-255] -// A lower value indicates a higher priority. -// Scanning is typically considered to be a low priority -// operation, and the default values are set to reflect that. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MAX 143 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MAX - -// Scan - Step -// <1-255:1> -// Default: 4 -// Define the step size of an increment or decrement of the scan priority. -// This defines how quickly the scanner adjusts the task priority -// in the event of a scheduling conflict. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP -#define SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP 4 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP - -// Advertisement - Min -// <0-255:1> -// Default: 175 -// Define the lowest permitted BLE advertisement priority. [0-255] -// A lower value indicates a higher priority. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MIN 175 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MIN - -// Advertisement - Max -// <0-255:1> -// Default: 127 -// Define the highest permitted BLE advertisement priority. [0-255] -// A lower value indicates a higher priority. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MAX 127 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MAX - -// Advertisement - Step -// <1-255:1> -// Default: 4 -// Define the step size of an increment or decrement of the advertisement priority. -// This defines how quickly the advertiser adjusts the task priority -// in the event of a scheduling conflict. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP -#define SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP 4 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP - -// Connection - Min -// <0-255:1> -// Default: 135 -// Define the lowest permitted BLE connection priority. [0-255] -// A lower value indicates a higher priority. -// The minimum connection priority is by default above the priority of scanning -// and advertising. Connection priority is calculated by how close to the -// supervision timeout the connection is. In good link conditions, the -// connection priority is close to the minimum specified value. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MIN 135 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MIN - -// Connection - Max -// <0-255:1> -// Default: 0 -// Define the highest permitted BLE connection priority. [0-255] -// A lower value indicates a higher priority. -// The default is equal to the maximum possible value. If the connection -// priority has risen to the maximum value then this is likely the last connection -// event before the supervision timeout. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX 0 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX - -// Connection Initiation - Min -// <0-255:1> -// Default: 55 -// Define the lowest permitted BLE connection initiation priority. [0-255] -// A lower value indicates a higher priority. -// The scanning priority during connection establishment. -// The default value gives a relatively high minimum priority to connection -// establishment. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN 55 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN - -// Connection Initiation - Max -// <0-255:1> -// Default: 15 -// Define the highest permitted BLE connection initiation priority. [0-255] -// A lower value indicates a higher priority. -// This default value prevents the initiation task from consuming too much -// high priority connection task time. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX 15 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX - -// Rail Mapping Window Min -// <0-255:1> -// Default: 16 -// Define the minimum value of RAIL mapping window. -// This parameter specifies how task priorities are passed to radio -// coexistence and multiprotocol schedulers. -// Internal task priorities in Bluetooth should always use maximum range of 0-255, -// and use this mapping window to adapt to other protocols. -// Internal task priorities are linear scaled to the window before passing -// to RAIL. -// If coexistence or multiprotocol configuration is not used, then these -// parameters have no effect. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 16 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN - -// Rail Mapping Window Range -// <0-255:1> -// Default: 32 -// Define the maximum value of the RAIL mapping window. -// See SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN for a description of -// this parameter. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 32 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX - -// PAwR Tx - Min -// <0-255:1> -// Default: 15 -// Define the lowest permitted BLE PAwR transmission priority. [0-255] -// A lower value indicates a higher priority. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MIN 15 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MIN - -// PAwR Tx - Max -// <0-255:1> -// Default: 5 -// Define the highest permitted BLE PAwR transmission priority. [0-255] -// A lower value indicates a higher priority. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MAX 5 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MAX - -// PAwR Rx - Min -// <0-255:1> -// Default: 20 -// Define the lowest permitted BLE PAwR reception priority. [0-255] -// A lower value indicates a higher priority. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MIN 20 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MIN - -// PAwR Rx - Max -// <0-255:1> -// Default: 10 -// Define the highest permitted BLE PAwR reception priority. [0-255] -// A lower value indicates a higher priority. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MAX 10 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MAX - -// - -// <<< end of configuration section >>> - -//Default priority configuration -#define SL_BTCTRL_SCHEDULER_PRIORITIES { \ - .scan_min = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MIN, \ - .scan_max = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MAX, \ - .adv_min = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MIN, \ - .adv_max = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MAX, \ - .conn_min = SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MIN, \ - .conn_max = SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX, \ - .init_min = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN, \ - .init_max = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX, \ - .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN, \ - .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX \ - - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN), \ - 0, \ - .adv_step = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP, \ - .scan_step = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP, \ - .pawr_tx_min = SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MIN, \ - .pawr_tx_max = SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MAX, \ - .pawr_rx_min = SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MIN, \ - .pawr_rx_max = SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MAX \ -} - -#endif // SL_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_clock_manager_oscillator_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_clock_manager_oscillator_config.h deleted file mode 100644 index a66815036..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_clock_manager_oscillator_config.h +++ /dev/null @@ -1,376 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Clock Manager - Oscillators configuration file. - ******************************************************************************* - * # License - * Copyright 2025 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_CLOCK_MANAGER_OSCILLATOR_CONFIG_H -#define SL_CLOCK_MANAGER_OSCILLATOR_CONFIG_H - -#if defined(SL_COMPONENT_CATALOG_PRESENT) -#include "sl_component_catalog.h" - -#endif - -// Internal Defines: DO NOT MODIFY -#define SL_CLOCK_MANAGER_HFXO_EN_ENABLE 1 -#define SL_CLOCK_MANAGER_HFXO_EN_DISABLE 0 - -#if defined(SL_CATALOG_RAIL_LIB_PRESENT) -#define SL_CLOCK_MANAGER_HFXO_EN_AUTO SL_CLOCK_MANAGER_HFXO_EN_ENABLE -#else -#define SL_CLOCK_MANAGER_HFXO_EN_AUTO SL_CLOCK_MANAGER_HFXO_EN_DISABLE -#endif - -// <<< Use Configuration Wizard in Context Menu >>> - -// Oscillators Settings - -// HFXO Settings (if High Frequency crystal is used) - -// Enable -// Enable to configure HFXO -// AUTO enables HFXO if a radio is used -// AUTO -// ENABLE -// DISABLE -// SL_CLOCK_MANAGER_HFXO_EN_AUTO -#ifndef SL_CLOCK_MANAGER_HFXO_EN -#define SL_CLOCK_MANAGER_HFXO_EN SL_CLOCK_MANAGER_HFXO_EN_ENABLE -#endif - -// Mode -// -// XTAL -// EXTCLK -// EXTCLKPKDET -// HFXO_CFG_MODE_XTAL -#ifndef SL_CLOCK_MANAGER_HFXO_MODE -#define SL_CLOCK_MANAGER_HFXO_MODE HFXO_CFG_MODE_XTAL -#endif - -// Frequency in Hz <38000000-40000000> -// 39000000 -#ifndef SL_CLOCK_MANAGER_HFXO_FREQ -#define SL_CLOCK_MANAGER_HFXO_FREQ 39000000 -#endif - -// CTUNE <0-255> -// 140 -#ifndef SL_CLOCK_MANAGER_HFXO_CTUNE -#define SL_CLOCK_MANAGER_HFXO_CTUNE 140 -#endif - -// Precision in PPM <0-65535> -// 50 -#ifndef SL_CLOCK_MANAGER_HFXO_PRECISION -#define SL_CLOCK_MANAGER_HFXO_PRECISION 50 -#endif - -// CTUNE HXFO manufacturing -// Enable to use CTUNE HFXO manufacturing value for calibration -// 1 -#ifndef SL_CLOCK_MANAGER_CTUNE_MFG_HFXO_EN -#define SL_CLOCK_MANAGER_CTUNE_MFG_HFXO_EN 1 -#endif - -// HFXO crystal sharing feature -// Enable to configure HFXO crystal sharing leader or follower -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_EN -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_EN 0 -#endif - -// Crystal sharing leader -// Enable to configure HFXO crystal sharing leader -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_EN -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_EN 0 -#endif - -// Crystal sharing leader minimum startup delay -// If enabled, BUFOUT does not start until timeout set in -// SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_TIMEOUT_STARTUP expires. -// This prevents waste of power if BUFOUT is ready too early. -// 1 -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_MIN_STARTUP_DELAY_EN -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_MIN_STARTUP_DELAY_EN 1 -#endif - -// Wait duration of oscillator startup sequence -// -// T42US -// T83US -// T108US -// T133US -// T158US -// T183US -// T208US -// T233US -// T258US -// T283US -// T333US -// T375US -// T417US -// T458US -// T500US -// T667US -// HFXO_BUFOUTCTRL_TIMEOUTSTARTUP_T208US -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_TIMEOUT_STARTUP -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_TIMEOUT_STARTUP HFXO_BUFOUTCTRL_TIMEOUTSTARTUP_T208US -#endif -// -// - -// Crystal sharing follower -// Enable to configure HFXO crystal sharing follower -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_FOLLOWER_EN -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_FOLLOWER_EN 0 -#endif -// - -// GPIO Port -// Bufout request GPIO port. If SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_EN -// is enabled, this port will be used to receive the BUFOUT request. If -// SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_FOLLOWER_EN is enabled this port -// will be used to request BUFOUT from the crystal sharing leader. -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_GPIO_PORT -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_GPIO_PORT 0 -#endif - -// GPIO Pin -// Bufout request GPIO pin. If SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_EN -// is enabled, this pin will be used to receive the BUFOUT request. If -// SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_FOLLOWER_EN is enabled this pin -// will be used to request BUFOUT from the crystal sharing leader. -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_GPIO_PIN -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_GPIO_PIN 10 -#endif -// -// - -// LFXO Settings (if Low Frequency crystal is used) -// Enable to configure LFXO -#ifndef SL_CLOCK_MANAGER_LFXO_EN -#define SL_CLOCK_MANAGER_LFXO_EN 1 -#endif - -// Mode -// -// XTAL -// BUFEXTCLK -// DIGEXTCLK -// LFXO_CFG_MODE_XTAL -#ifndef SL_CLOCK_MANAGER_LFXO_MODE -#define SL_CLOCK_MANAGER_LFXO_MODE LFXO_CFG_MODE_XTAL -#endif - -// CTUNE <0-127> -// 63 -#ifndef SL_CLOCK_MANAGER_LFXO_CTUNE -#define SL_CLOCK_MANAGER_LFXO_CTUNE 63 -#endif - -// LFXO precision in PPM <0-65535> -// 50 -#ifndef SL_CLOCK_MANAGER_LFXO_PRECISION -#define SL_CLOCK_MANAGER_LFXO_PRECISION 50 -#endif - -// Startup Timeout Delay -// -// CYCLES2 -// CYCLES256 -// CYCLES1K -// CYCLES2K -// CYCLES4K -// CYCLES8K -// CYCLES16K -// CYCLES32K -// LFXO_CFG_TIMEOUT_CYCLES4K -#ifndef SL_CLOCK_MANAGER_LFXO_TIMEOUT -#define SL_CLOCK_MANAGER_LFXO_TIMEOUT LFXO_CFG_TIMEOUT_CYCLES4K -#endif - -// CTUNE LXFO manufacturing -// Enable to use CTUNE LFXO manufacturing value for calibration -// 1 -#ifndef SL_CLOCK_MANAGER_CTUNE_MFG_LFXO_EN -#define SL_CLOCK_MANAGER_CTUNE_MFG_LFXO_EN 1 -#endif -// - -// HFRCO and DPLL Settings -// Frequency Band -// RC Oscillator Frequency Band -// 1 MHz -// 2 MHz -// 4 MHz -// 7 MHz -// 13 MHz -// 16 MHz -// 19 MHz -// 26 MHz -// 32 MHz -// 38 MHz -// 48 MHz -// 56 MHz -// 64 MHz -// 80 MHz -// cmuHFRCODPLLFreq_80M0Hz -#ifndef SL_CLOCK_MANAGER_HFRCO_BAND -#define SL_CLOCK_MANAGER_HFRCO_BAND cmuHFRCODPLLFreq_80M0Hz -#endif - -// Use DPLL -// Enable to use the DPLL with HFRCO -#ifndef SL_CLOCK_MANAGER_HFRCO_DPLL_EN -#define SL_CLOCK_MANAGER_HFRCO_DPLL_EN 1 -#endif - -// Target Frequency in Hz <1000000-80000000> -// DPLL target frequency -// 78000000 -#ifndef SL_CLOCK_MANAGER_DPLL_FREQ -#define SL_CLOCK_MANAGER_DPLL_FREQ 78000000 -#endif - -// Numerator (N) <300-4095> -// Value of N for output frequency calculation fout = fref * (N+1) / (M+1) -// 3839 -#ifndef SL_CLOCK_MANAGER_DPLL_N -#define SL_CLOCK_MANAGER_DPLL_N 3839 -#endif - -// Denominator (M) <0-4095> -// Value of M for output frequency calculation fout = fref * (N+1) / (M+1) -// 1919 -#ifndef SL_CLOCK_MANAGER_DPLL_M -#define SL_CLOCK_MANAGER_DPLL_M 1919 -#endif - -// Reference Clock -// Reference clock source for DPLL -// DISABLED -// HFXO -// LFXO -// CLKIN0 -// CMU_DPLLREFCLKCTRL_CLKSEL_HFXO -#ifndef SL_CLOCK_MANAGER_DPLL_REFCLK -#define SL_CLOCK_MANAGER_DPLL_REFCLK CMU_DPLLREFCLKCTRL_CLKSEL_HFXO -#endif - -// Reference Clock Edge Detect -// Edge detection for reference clock -// Falling Edge -// Rising Edge -// cmuDPLLEdgeSel_Fall -#ifndef SL_CLOCK_MANAGER_DPLL_EDGE -#define SL_CLOCK_MANAGER_DPLL_EDGE cmuDPLLEdgeSel_Fall -#endif - -// DPLL Lock Mode -// Lock mode -// Frequency-Lock Loop -// Phase-Lock Loop -// cmuDPLLLockMode_Freq -#ifndef SL_CLOCK_MANAGER_DPLL_LOCKMODE -#define SL_CLOCK_MANAGER_DPLL_LOCKMODE cmuDPLLLockMode_Phase -#endif - -// Automatic Lock Recovery -// 1 -#ifndef SL_CLOCK_MANAGER_DPLL_AUTORECOVER -#define SL_CLOCK_MANAGER_DPLL_AUTORECOVER 1 -#endif - -// Enable Dither -// 0 -#ifndef SL_CLOCK_MANAGER_DPLL_DITHER -#define SL_CLOCK_MANAGER_DPLL_DITHER 0 -#endif -// -// - -// HFRCOEM23 Settings -// Frequency Band -// RC Oscillator Frequency Band -// 1 MHz -// 2 MHz -// 4 MHz -// 13 MHz -// 16 MHz -// 19 MHz -// 26 MHz -// 32 MHz -// 40 MHz -// cmuHFRCOEM23Freq_19M0Hz -#ifndef SL_CLOCK_MANAGER_HFRCOEM23_BAND -#define SL_CLOCK_MANAGER_HFRCOEM23_BAND cmuHFRCOEM23Freq_19M0Hz -#endif -// - -// LFRCO Settings -// Precision Mode -// Precision mode uses hardware to automatically re-calibrate the LFRCO -// against a crystal driven by the HFXO. Hardware detects temperature -// changes and initiates a re-calibration of the LFRCO as needed when -// operating in EM0, EM1, or EM2. If a re-calibration is necessary and the -// HFXO is not active, the precision mode hardware will automatically -// enable HFXO for a short time to perform the calibration. EM4 operation is -// not allowed while precision mode is enabled. -// If high precision is selected on devices that do not support it, default -// precision will be used. -// Default precision -// High precision -// cmuPrecisionDefault -#ifndef SL_CLOCK_MANAGER_LFRCO_PRECISION -#define SL_CLOCK_MANAGER_LFRCO_PRECISION cmuPrecisionDefault -#endif -// - -// CLKIN0 Settings -// Frequency in Hz <1000000-38000000> -// 38000000 -#ifndef SL_CLOCK_MANAGER_CLKIN0_FREQ -#define SL_CLOCK_MANAGER_CLKIN0_FREQ 38000000 -#endif -// - -// - -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_CLOCK_MANAGER_CLKIN0 -// $[CMU_SL_CLOCK_MANAGER_CLKIN0] - - -// [CMU_SL_CLOCK_MANAGER_CLKIN0]$ - -// <<< sl:end pin_tool >>> - -#endif /* SL_CLOCK_MANAGER_OSCILLATOR_CONFIG_H */ diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_clock_manager_tree_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_clock_manager_tree_config.h deleted file mode 100644 index 1f6f2a089..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_clock_manager_tree_config.h +++ /dev/null @@ -1,309 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Clock Manager - Clock Tree configuration file. - ******************************************************************************* - * # License - * Copyright 2025 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_CLOCK_MANAGER_TREE_CONFIG_H -#define SL_CLOCK_MANAGER_TREE_CONFIG_H - -#if defined(SL_COMPONENT_CATALOG_PRESENT) -#include "sl_component_catalog.h" - -#endif - -// Internal Defines: DO NOT MODIFY -// Those defines are used internally to help converting the DEFAULT_HF_CLOCK_SOURCE and DEFAULT_LF_CLOCK_SOURCE -// selection of each clock branch to the right HW register value. -#define SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_HFRCODPLL 0xFF -#define SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_HFXO 0xFE -#define SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_FSRCO 0xFD -#define SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE_LFRCO 0xFC -#define SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE_LFXO 0xFB -#define SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE_ULFRCO 0xFA - -#if defined(SL_CATALOG_RAIL_LIB_PRESENT) -#define SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_AUTO SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_HFXO -#else -#define SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_AUTO SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_HFRCODPLL -#endif - -// <<< Use Configuration Wizard in Context Menu >>> - -// Clock Tree Settings - -// Default Clock Source Selection for HF clock branches -// AUTO -// HFRCODPLL -// HFXO -// FSRCO -// Selection of the high frequency clock source. HF clock branches can select this value by chosing the DEFAULT_HF value. -// AUTO uses HFXO if a radio is used and HFRCODPLL otherwise -// SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_AUTO -#ifndef SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#define SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_HFXO -#endif - -// Default Clock Source Selection for LF clock branches -// LFRCO -// LFXO -// ULFRCO -// Selection of the low frequency clock source. LF clock branches can select this value by chosing the DEFAULT_HF value. -// SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE_LFRCO -#ifndef SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#define SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE_LFXO -#endif - -// System Clock Branch Settings - -// Clock Source Selection for SYSCLK branch -// DEFAULT_HF -// FSRCO -// HFRCODPLL -// HFXO -// CLKIN0 -// Selection of the Clock source for SYSCLK -// SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_SYSCLK_SOURCE -#define SL_CLOCK_MANAGER_SYSCLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#endif - -// HCLK branch divider -// DIV1 -// DIV2 -// DIV4 -// DIV8 -// DIV16 -// HCLK branch is derived from SYSCLK. This clock drives the AHB bus interface. -// CMU_SYSCLKCTRL_HCLKPRESC_DIV1 -#ifndef SL_CLOCK_MANAGER_HCLK_DIVIDER -#define SL_CLOCK_MANAGER_HCLK_DIVIDER CMU_SYSCLKCTRL_HCLKPRESC_DIV1 -#endif - -// PCLK branch divider -// DIV1 -// DIV2 -// MIN -// PCLK branch is derived from HCLK. This clock drives the APB bus interface. -// SL_CLOCK_MANAGER_PCLK_DIV_MIN -#ifndef SL_CLOCK_MANAGER_PCLK_DIVIDER -#define SL_CLOCK_MANAGER_PCLK_DIVIDER SL_CLOCK_MANAGER_PCLK_DIV_MIN -#endif - -// - -// Trace Clock Branches Settings -// Clock Source Selection for TRACECLK branch -// DISABLE -// SYSCLK -// HFRCOEM23 -// HFRCODPLLRT -// Selection of the Clock source for TRACECLK -// CMU_TRACECLKCTRL_CLKSEL_SYSCLK -#ifndef SL_CLOCK_MANAGER_TRACECLK_SOURCE -#define SL_CLOCK_MANAGER_TRACECLK_SOURCE CMU_TRACECLKCTRL_CLKSEL_SYSCLK -#endif - -// TRACECLK branch Divider -// DIV1 -// DIV2 -// DIV3 -// DIV4 -// Selection of the divider value for TRACECLK branch -// CMU_TRACECLKCTRL_PRESC_DIV1 -#ifndef SL_CLOCK_MANAGER_TRACECLK_DIVIDER -#define SL_CLOCK_MANAGER_TRACECLK_DIVIDER CMU_TRACECLKCTRL_PRESC_DIV1 -#endif - -// - -// High Frequency Clock Branches Settings -// Each HF Clock Tree branch can be customized, else the same clock source as for SYSCLK will be used when possible -// EM01GRPACLK clock the Timer peripherals -// Clock Source Selection for EM01GRPACLK branch -// DEFAULT_HF -// HFRCODPLL -// HFXO -// FSRCO -// HFRCOEM23 -// HFRCODPLLRT -// HFXORT -// Selection of the Clock source for EM01GRPACLK -// SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_EM01GRPACLK_SOURCE -#define SL_CLOCK_MANAGER_EM01GRPACLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#endif - -// Clock Source Selection for EM01GRPCCLK branch -// DEFAULT_HF -// HFRCODPLL -// HFXO -// FSRCO -// HFRCOEM23 -// HFRCODPLLRT -// HFXORT -// Selection of the Clock source for EM01GRPCCLK -// SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_EM01GRPCCLK_SOURCE -#define SL_CLOCK_MANAGER_EM01GRPCCLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#endif - -// Clock Source Selection for IADCCLK branch -// EM01GRPACLK -// FSRCO -// HFRCOEM23 -// Selection of the Clock source for IADCCLK -// CMU_IADCCLKCTRL_CLKSEL_EM01GRPACLK -#ifndef SL_CLOCK_MANAGER_IADCCLK_SOURCE -#define SL_CLOCK_MANAGER_IADCCLK_SOURCE CMU_IADCCLKCTRL_CLKSEL_EM01GRPACLK -#endif - -// - -// Low Frequency Clock Branches Settings - -// Clock Source Selection for EM23GRPACLK branch -// DEFAULT_LF -// LFRCO -// LFXO -// ULFRCO -// Selection of the Clock source for EM23GRPACLK -// SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_EM23GRPACLK_SOURCE -#define SL_CLOCK_MANAGER_EM23GRPACLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#endif - -// Clock Source Selection for EM4GRPACLK branch -// DEFAULT_LF -// LFRCO -// LFXO -// ULFRCO -// Selection of the Clock source for EM4GRPACLK -// SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_EM4GRPACLK_SOURCE -#define SL_CLOCK_MANAGER_EM4GRPACLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#endif - -// Clock Source Selection for SYSRTCCLK branch -// DEFAULT_LF -// LFRCO -// LFXO -// ULFRCO -// Selection of the Clock source for SYSRTCCLK -// SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_SYSRTCCLK_SOURCE -#define SL_CLOCK_MANAGER_SYSRTCCLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#endif - -// Clock Source Selection for WDOG0CLK branch -// DEFAULT_LF -// LFRCO -// LFXO -// ULFRCO -// HCLKDIV1024 -// Selection of the Clock source for WDOG0CLK -// SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_WDOG0CLK_SOURCE -#define SL_CLOCK_MANAGER_WDOG0CLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#endif - -// Clock Source Selection for WDOG1CLK branch -// DEFAULT_LF -// LFRCO -// LFXO -// ULFRCO -// HCLKDIV1024 -// Selection of the Clock source for WDOG1CLK -// SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_WDOG1CLK_SOURCE -#define SL_CLOCK_MANAGER_WDOG1CLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#endif - -// Clock Source Selection for PCNT0CLK branch -// DISABLED -// EM23GRPACLK -// PCNTS0 -// Selection of the Clock source for PCNT0CLK -// CMU_PCNT0CLKCTRL_CLKSEL_EM23GRPACLK -#ifndef SL_CLOCK_MANAGER_PCNT0CLK_SOURCE -#define SL_CLOCK_MANAGER_PCNT0CLK_SOURCE CMU_PCNT0CLKCTRL_CLKSEL_EM23GRPACLK -#endif - -// - -// Mixed Frequency Clock Branch Settings -// Clock Source Selection for EUSART0CLK branch -// DISABLED -// EM01GRPCCLK -// HFRCOEM23 -// LFRCO -// LFXO -// Selection of the Clock source for EUSART0CLK -// CMU_EUSART0CLKCTRL_CLKSEL_EM01GRPCCLK -#ifndef SL_CLOCK_MANAGER_EUSART0CLK_SOURCE -#define SL_CLOCK_MANAGER_EUSART0CLK_SOURCE CMU_EUSART0CLKCTRL_CLKSEL_EM01GRPCCLK -#endif - -// Clock Source Selection for SYSTICKCLK branch -// <0=> HCLK -// <1=> EM23GRPACLK -// Selection of the Clock source for SYSTICKCLK -// 0 -#ifndef SL_CLOCK_MANAGER_SYSTICKCLK_SOURCE -#define SL_CLOCK_MANAGER_SYSTICKCLK_SOURCE 0 -#endif - -// Clock Source Selection for VDAC0CLK branch -// DISABLED -// EM01GRPACLK -// EM23GRPACLK -// FSRCO -// HFRCOEM23 -// Selection of the Clock source for VDAC0CLK -// CMU_VDAC0CLKCTRL_CLKSEL_EM01GRPACLK -#ifndef SL_CLOCK_MANAGER_VDAC0CLK_SOURCE -#define SL_CLOCK_MANAGER_VDAC0CLK_SOURCE CMU_VDAC0CLKCTRL_CLKSEL_EM01GRPACLK -#endif - -// Clock Source Selection for VDAC1CLK branch -// DISABLED -// EM01GRPACLK -// EM23GRPACLK -// FSRCO -// HFRCOEM23 -// Selection of the Clock source for VDAC1CLK -// CMU_VDAC1CLKCTRL_CLKSEL_EM01GRPACLK -#ifndef SL_CLOCK_MANAGER_VDAC1CLK_SOURCE -#define SL_CLOCK_MANAGER_VDAC1CLK_SOURCE CMU_VDAC1CLKCTRL_CLKSEL_EM01GRPACLK -#endif - -// -// - -#endif /* SL_CLOCK_MANAGER_TREE_CONFIG_H */ - -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_core_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_core_config.h deleted file mode 100644 index 27b173d2e..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_core_config.h +++ /dev/null @@ -1,44 +0,0 @@ -/***************************************************************************//** - * @file - * @brief sl_core Configuration - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_CORE_CONFIG_H -#define SL_CORE_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Core Abstraction Configuration - -// Enables measurement of interrupt masking time for debugging purposes. -// Default: 0 -#define SL_CORE_DEBUG_INTERRUPTS_MASKED_TIMING 0 -// - -// <<< end of configuration section >>> -#endif // SL_CORE_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_device_init_dcdc_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_device_init_dcdc_config.h deleted file mode 100644 index 4fb88397d..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_device_init_dcdc_config.h +++ /dev/null @@ -1,58 +0,0 @@ -/***************************************************************************//** - * @file - * @brief DEVICE_INIT_DCDC Config - ******************************************************************************* - * # License - * Copyright 2022 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_DEVICE_INIT_DCDC_CONFIG_H -#define SL_DEVICE_INIT_DCDC_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Enable DC/DC Converter -// -// Default: 1 -#define SL_DEVICE_INIT_DCDC_ENABLE 1 - -// Set DC/DC Converter in Bypass Mode -// -// Default: 0 -#define SL_DEVICE_INIT_DCDC_BYPASS 0 - -// Override for DCDC PFMX Mode Peak Current Setting -// -// Default: 1 -#define SL_DEVICE_INIT_DCDC_PFMX_IPKVAL_OVERRIDE 1 - -// DCDC PFMX Mode Peak Current Setting <0-15> -// -// Default: DCDC_PFMXCTRL_IPKVAL_DEFAULT -#define SL_DEVICE_INIT_DCDC_PFMX_IPKVAL 12 - -// <<< end of configuration section >>> - -#endif // SL_DEVICE_INIT_DCDC_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_gp_interface_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_gp_interface_config.h deleted file mode 100644 index fd5aa20ea..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_gp_interface_config.h +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * @file - * @brief OpenThread Green Power configuration file. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- - -// Rx Offset time -// The rx offset time for the bidirectional message. -// -#define GP_RX_OFFSET_IN_MICRO_SECONDS 21000 -// - -// TX Timeout -// Tx timeout after which the gp outgoing packet is invalid. -// -#define GP_TX_MAX_TIMEOUT_IN_MICRO_SECONDS 5000000 -// -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_hfxo_manager_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_hfxo_manager_config.h deleted file mode 100644 index d9ccd3c70..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_hfxo_manager_config.h +++ /dev/null @@ -1,56 +0,0 @@ -/***************************************************************************//** - * @file - * @brief HFXO Manager configuration file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -// <<< Use Configuration Wizard in Context Menu >>> - -#ifndef SL_HFXO_MANAGER_CONFIG_H -#define SL_HFXO_MANAGER_CONFIG_H - -// HFXO Manager Configuration - -// Enable custom IRQ handler for crystal HF oscillator. -// Enable if HFXO0_IRQHandler is needed from your application. -// The HFXO IRQ priority must not be changed as the HFXO Manager module needs it to be high priority -// and to stay enabled through atomic sections. -// The function sl_hfxo_manager_irq_handler() will have to be called from you custom handler if this is enabled. -// Default: 0 -#define SL_HFXO_MANAGER_CUSTOM_HFXO_IRQ_HANDLER 0 - -// Enable support for Sleepy Crystals. -// If Enabled and if HFXO fails to startup due to a sleepy crystal, HFXO Manager will retry the startup with more aggressive settings -// before falling back to the configured settings. -// Default: 0 -#define SL_HFXO_MANAGER_SLEEPY_CRYSTAL_SUPPORT 0 - -// - -#endif /* SL_HFXO_MANAGER_CONFIG_H */ - -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_i2cspm_sensor_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_i2cspm_sensor_config.h deleted file mode 100644 index 5be07c21e..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_i2cspm_sensor_config.h +++ /dev/null @@ -1,82 +0,0 @@ -/***************************************************************************//** - * @file - * @brief I2CSPM Config - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_I2CSPM_SENSOR_CONFIG_H -#define SL_I2CSPM_SENSOR_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu - -// I2CSPM settings - -// Reference clock frequency -// Frequency in Hz of the reference clock. -// Select 0 to use the frequency of the currently selected clock. -// Default: 0 -#define SL_I2CSPM_SENSOR_REFERENCE_CLOCK 0 - -// Speed mode -// <0=> Standard mode (100kbit/s) -// <1=> Fast mode (400kbit/s) -// <2=> Fast mode plus (1Mbit/s) -// Default: 0 -#define SL_I2CSPM_SENSOR_SPEED_MODE 0 -// end I2CSPM config - -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> -// SL_I2CSPM_SENSOR -// $[I2C_SL_I2CSPM_SENSOR] -#ifndef SL_I2CSPM_SENSOR_PERIPHERAL -#define SL_I2CSPM_SENSOR_PERIPHERAL I2C1 -#endif -#ifndef SL_I2CSPM_SENSOR_PERIPHERAL_NO -#define SL_I2CSPM_SENSOR_PERIPHERAL_NO 1 -#endif - -// I2C1 SCL on PC04 -#ifndef SL_I2CSPM_SENSOR_SCL_PORT -#define SL_I2CSPM_SENSOR_SCL_PORT SL_GPIO_PORT_C -#endif -#ifndef SL_I2CSPM_SENSOR_SCL_PIN -#define SL_I2CSPM_SENSOR_SCL_PIN 4 -#endif - -// I2C1 SDA on PC05 -#ifndef SL_I2CSPM_SENSOR_SDA_PORT -#define SL_I2CSPM_SENSOR_SDA_PORT SL_GPIO_PORT_C -#endif -#ifndef SL_I2CSPM_SENSOR_SDA_PIN -#define SL_I2CSPM_SENSOR_SDA_PIN 5 -#endif -// [I2C_SL_I2CSPM_SENSOR]$ -// <<< sl:end pin_tool >>> - -#endif // SL_I2CSPM_SENSOR_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_main_start_task_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_main_start_task_config.h deleted file mode 100644 index 7752c098f..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_main_start_task_config.h +++ /dev/null @@ -1,105 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Sleep Timer configuration file. - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_MAIN_START_TASK_CONFIG_H -#define SL_MAIN_START_TASK_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// sl_main start task settings - -// Size of the start task stack -// Default: 4096 -#define SL_MAIN_START_TASK_STACK_SIZE_BYTES 4096 - -// Enable start task priority change after initialization -// This is useful for applications that keep the start task during the lifetime of the application. -// Note that the priority change occurs at the end of 'sl_main_second_stage_init()' before 'app_init()' is called. -// Default: Disabled -#define SL_MAIN_ENABLE_START_TASK_PRIORITY_CHANGE 0 - -// Priority that the start task will take after initialization is done. -// Priority: low -// Priority: low + 1 -// Priority: low + 2 -// Priority: low + 3 -// Priority: low + 4 -// Priority: low + 5 -// Priority: low + 6 -// Priority: low + 7 -// Priority: below normal -// Priority: below normal + 1 -// Priority: below normal + 2 -// Priority: below normal + 3 -// Priority: below normal + 4 -// Priority: below normal + 5 -// Priority: below normal + 6 -// Priority: below normal + 7 -// Priority: normal -// Priority: normal + 1 -// Priority: normal + 2 -// Priority: normal + 3 -// Priority: normal + 4 -// Priority: normal + 5 -// Priority: normal + 6 -// Priority: normal + 7 -// Priority: above normal -// Priority: above normal + 1 -// Priority: above normal + 2 -// Priority: above normal + 3 -// Priority: above normal + 4 -// Priority: above normal + 5 -// Priority: above normal + 6 -// Priority: above normal + 7 -// Priority: high -// Priority: high + 1 -// Priority: high + 2 -// Priority: high + 3 -// Priority: high + 4 -// Priority: high + 5 -// Priority: high + 6 -// Priority: high + 7 -// Priority: realtime -// Priority: realtime + 1 -// Priority: realtime + 2 -// Priority: realtime + 3 -// Priority: realtime + 4 -// Priority: realtime + 5 -// Priority: realtime + 6 -// Priority: realtime + 7 -// Default: osPriorityNormal -#define SL_MAIN_START_TASK_PRIORITY osPriorityNormal - -// -// - -#endif /* SL_MAIN_START_TASK_CONFIG_H */ - -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_mbedtls_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_mbedtls_config.h deleted file mode 100644 index 7146ba648..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_mbedtls_config.h +++ /dev/null @@ -1,132 +0,0 @@ -#ifndef SL_MBEDTLS_CONFIG_H -#define SL_MBEDTLS_CONFIG_H - -// ----------------------------------------------------------------------------- -// User exposed config options - -// <<< Use Configuration Wizard in Context Menu >>> - -// TLS/DTLS configuration - -// Complete list of ciphersuites to use, in order of preference. -// Default: MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8 -// Complete list of ciphersuites to use, in order of preference. -// The value of this configuration should be updated for the application needs. -#define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8 - -// Maximum TLS/DTLS fragment length in bytes (input). -// Default: 768 -// The size configured here determines the size of the internal I/O -// buffer used in mbedTLS when receiving data. -#define SL_MBEDTLS_SSL_IN_CONTENT_LEN 768 - -// Maximum TLS/DTLS fragment length in bytes (output). -// Default: 768 -// The size configured here determines the size of the internal I/O -// buffer used in mbedTLS when sending data. -#define SL_MBEDTLS_SSL_OUT_CONTENT_LEN 768 - -// Enable support for RFC 6066 max_fragment_length extension in SSL. -// Default: 1 -// Enable support for RFC 6066 max_fragment_length extension in SSL. -#define SL_MBEDTLS_SSL_MAX_FRAGMENT_LENGTH 1 - -// Enable support for exporting key block and master secret. -// Default: 1 -// Enable support for exporting key block and master secret. -// This is required for certain users of TLS, e.g. EAP-TLS. -#define SL_MBEDTLS_SSL_EXPORT_KEYS 1 - -// Enable the PSK based ciphersuite modes in SSL / TLS. -// Default: 0 -// Enable the PSK based ciphersuite modes in SSL / TLS. -#define SL_MBEDTLS_KEY_EXCHANGE_PSK_ENABLED 1 - -// Enable the ECDHE-PSK based ciphersuite modes in SSL / TLS. -// Default: 0 -// Enable the ECDHE-PSK based ciphersuite modes in SSL / TLS. -#define SL_MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED 0 - -// Enable the ECDHE-ECDSA based ciphersuite modes in SSL / TLS. -// Default: 0 -// Enable the ECDHE-ECDSA based ciphersuite modes in SSL / TLS. -#define SL_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED 0 - -// Enable the ECDHE-RSA based ciphersuite modes in SSL / TLS. -// Default: 0 -// Enable the ECDHE-RSA based ciphersuite modes in SSL / TLS. -#define SL_MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED 0 - -// Enable the ECDH-ECDSA based ciphersuite modes in SSL / TLS. -// Default: 0 -// Enable the ECDH-ECDSA based ciphersuite modes in SSL / TLS. -#define SL_MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED 0 - -// Enable parsing of the compressed curves. -// Default: 0 -// Enable parsing of the compressed curves. -#define SL_MBEDTLS_ECP_ENABLE_COMPRESSED_CURVE_PARSING 0 - -// Assume all buffers passed to PSA functions are owned exclusively by the PSA function. -// Default: 1 -// This option is enabled assuming all buffers passed to any PSA function reside -// in memory that is accessible only to the PSA function during its execution. -// This improves performance by avoiding extra buffer copies, reducing memory -// usage and allocation overhead. However, it is NOT the most secure option and -// should only be enabled if all buffers passed to PSA functions are exclusively -// accessible to PSA and never shared with untrusted code. -// This option MUST be disabled whenever buffer arguments are in memory shared -// with an untrusted party, for example where arguments to PSA calls are passed -// across a trust boundary, e.g. if TrustZone is enabled, and the PSA Crypto core -// is placed in the Secure domain. -#define SL_MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS 1 - -// - -// RSA configuration - -// Disable use of the Chinese Remainder Theorem for RSA. -// Default: 0 -// Disable use of the Chinese Remainder Theorem for RSA private key -// computations. -#define SL_MBEDTLS_RSA_NO_CRT 0 - -// - -// Miscellaneous configuration - -// Enable Silicon Labs' Mbed TLS- and PSA Crypto drivers. -// Default: 1 -// Enable drivers for hardware acceleration (Mbed TLS and PSA Crypto) and -// secure key handling (PSA Crypto). -#define SL_MBEDTLS_DRIVERS_ENABLED 1 - -// - -// <<< end of configuration section >>> - -// ----------------------------------------------------------------------------- -// Sub-files - -#if defined(SLI_MBEDTLS_CONFIG_AUTOGEN_OVERRIDE_FILE) - #include SLI_MBEDTLS_CONFIG_AUTOGEN_OVERRIDE_FILE -#else - #include "sli_mbedtls_config_autogen.h" -#endif - -#include "sli_mbedtls_omnipresent.h" - -#if SL_MBEDTLS_DRIVERS_ENABLED - #include "sli_mbedtls_acceleration.h" -#endif - -#include "sl_mbedtls_device_config.h" - -// Include transformation logic to apply CMSIS-config configuration options to -// the correct Mbed TLS / PSA Crypto options. -#include "sli_mbedtls_config_transform_autogen.h" - -// Included for backward compatibility reasons. -#include "mbedtls/build_info.h" - -#endif // SL_MBEDTLS_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_mbedtls_device_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_mbedtls_device_config.h deleted file mode 100644 index 33c34c42e..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_mbedtls_device_config.h +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef SL_MBEDTLS_DEVICE_CONFIG_H -#define SL_MBEDTLS_DEVICE_CONFIG_H - -// ----------------------------------------------------------------------------- -// User exposed config options - -// <<< Use Configuration Wizard in Context Menu >>> - -// Secure Engine (SE) version configuration - -// Support SE firmware versions older than 1.2.2 <0-1> -// Enable software fallback for ECDH and ECC public key validation on xG21 -// devices running SE firmware versions lower than 1.2.2. -// -// Due to other stability concerns, it is strongly recommended to upgrade -// these devices to the latest firmware revision instead of turning on -// software fallback support. -// -// Not having fallback support will make ECDH operations, as well as PSA -// Crypto public key import, return an error code on affected devices. -// -// Default: 0 -#define SL_SE_SUPPORT_FW_PRIOR_TO_1_2_2 0 - -// Assume an SE firmware version newer than 1.2.2 <0-1> -// For enhanced performance: if it is guaranteed that all devices on which -// this library will run are updated to at least SE FW 1.2.2, then turning -// on this option will remove certain fallback checks, thereby reducing the -// amount of processing required for ECDH and public key verification -// operations. -// Default: 0 -#define SL_SE_ASSUME_FW_AT_LEAST_1_2_2 0 - -// Assume an SE firmware version that is unaffected by Ed25519 errata <0-1> -// For minimal code size and performance savings: if it is guaranteed that -// none of the devices running this library has SE FWs in the range -// [1.2.2, 1.2.8], then enabling this option will disable runtime version -// checks. -// Default: 0 -#define SL_SE_ASSUME_FW_UNAFFECTED_BY_ED25519_ERRATA 0 - -// - -// <<< end of configuration section >>> - -// ----------------------------------------------------------------------------- -// Additional SE version related logic (DO NOT MODIFY) - -// SL_SE_ASSUME_FW_AT_LEAST_1_2_10 is no longer in use, however, it is kept here -// for backwards compatibility. */ -#if defined(SL_SE_ASSUME_FW_AT_LEAST_1_2_10) - #undef SL_SE_ASSUME_FW_AT_LEAST_1_2_2 - #define SL_SE_ASSUME_FW_AT_LEAST_1_2_2 1 - #undef SL_SE_ASSUME_FW_UNAFFECTED_BY_ED25519_ERRATA - #define SL_SE_ASSUME_FW_UNAFFECTED_BY_ED25519_ERRATA 1 -#endif - -// SLI_SE_SUPPORT_FW_PRIOR_TO_1_2_2 is no longer in use, however, it is kept -// here for backwards compatibility. */ -#if defined(SLI_SE_SUPPORT_FW_PRIOR_TO_1_2_2) - #undef SL_SE_SUPPORT_FW_PRIOR_TO_1_2_2 - #define SL_SE_SUPPORT_FW_PRIOR_TO_1_2_2 1 -#endif - -// SLI_SE_ASSUME_FW_AT_LEAST_1_2_2 is no longer in use, however, it is kept -// here for backwards compatibility. */ -#if defined(SLI_SE_ASSUME_FW_AT_LEAST_1_2_2) - #undef SL_SE_ASSUME_FW_AT_LEAST_1_2_2 - #define SL_SE_ASSUME_FW_AT_LEAST_1_2_2 1 -#endif - -#endif // SL_MBEDTLS_DEVICE_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_memory_manager_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_memory_manager_config.h deleted file mode 100644 index 4a16c29fe..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_memory_manager_config.h +++ /dev/null @@ -1,61 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Memory Heap Allocator configuration file. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -// <<< Use Configuration Wizard in Context Menu >>> - -#ifndef SL_MEMORY_MANAGER_CONFIG_H -#define SL_MEMORY_MANAGER_CONFIG_H - -// Memory Manager Configuration - -// Minimum block allocation size -// <32-128:8> -// Minimum block allocation size to avoid creating a block too small while splitting up an allocated block. -// Size expressed in bytes and can only be a multiple of 8 bytes for the proper data alignment management done by the dynamic allocator malloc() function. -// Default: 32 -#define SL_MEMORY_MANAGER_BLOCK_ALLOCATION_MIN_SIZE (32) - -// Enables the statistics API. -// Setting this configuration to 0 will make all the statistics API return 0. -// Default: 1 -#define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 - -// - -// <<< end of configuration section >>> - -// Keep this configuration outside the configuration section until the feature is ready for release. -// Enables the heap fallback mechanism. -// Setting this configuration to 0 will disable the fallback mechanism on DTCM and PSRAM. -// If this configuration is disabled, the memory manager will not attempt to use alternative memory regions for allocations even if using the fallback parameters. -// Default: 1 -#define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 - -#endif /* SL_MEMORY_MANAGER_CONFIG_H */ diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_memory_manager_region_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_memory_manager_region_config.h deleted file mode 100644 index bd640b59b..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_memory_manager_region_config.h +++ /dev/null @@ -1,51 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Memory Heap and stack size configuration file. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -// <<< Use Configuration Wizard in Context Menu >>> - -#ifndef SL_MEMORY_MANAGER_REGION_CONFIG_H -#define SL_MEMORY_MANAGER_REGION_CONFIG_H - -#include "sl_component_catalog.h" - -// Memory configuration - -// Stack size for the application. -// Default: 1024 -// The stack size configured here will be used by the stack that the -// application uses when coming out of a reset. -#ifndef SL_STACK_SIZE -#define SL_STACK_SIZE 4608 -#endif -// - -// <<< end of configuration section >>> - -#endif /* SL_MEMORY_MANAGER_REGION_CONFIG_H */ diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_mx25_flash_shutdown_usart_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_mx25_flash_shutdown_usart_config.h deleted file mode 100644 index 9ac165d08..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_mx25_flash_shutdown_usart_config.h +++ /dev/null @@ -1,64 +0,0 @@ -/***************************************************************************//** - * @file - * @brief SL_MX25_FLASH_SHUTDOWN_USART Config - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_MX25_FLASH_SHUTDOWN_CONFIG_H -#define SL_MX25_FLASH_SHUTDOWN_CONFIG_H - -// <<< sl:start pin_tool >>> -// {usart signal=TX,RX,CLK} SL_MX25_FLASH_SHUTDOWN -// [USART_SL_MX25_FLASH_SHUTDOWN] -#define SL_MX25_FLASH_SHUTDOWN_PERIPHERAL USART0 -#define SL_MX25_FLASH_SHUTDOWN_PERIPHERAL_NO 0 - -// USART0 TX on PC03 -#define SL_MX25_FLASH_SHUTDOWN_TX_PORT SL_GPIO_PORT_C -#define SL_MX25_FLASH_SHUTDOWN_TX_PIN 3 - -// USART0 RX on PC02 -#define SL_MX25_FLASH_SHUTDOWN_RX_PORT SL_GPIO_PORT_C -#define SL_MX25_FLASH_SHUTDOWN_RX_PIN 2 - -// USART0 CLK on PC01 -#define SL_MX25_FLASH_SHUTDOWN_CLK_PORT SL_GPIO_PORT_C -#define SL_MX25_FLASH_SHUTDOWN_CLK_PIN 1 - -// [USART_SL_MX25_FLASH_SHUTDOWN] - -// SL_MX25_FLASH_SHUTDOWN_CS - -// $[GPIO_SL_MX25_FLASH_SHUTDOWN_CS] -#define SL_MX25_FLASH_SHUTDOWN_CS_PORT SL_GPIO_PORT_C -#define SL_MX25_FLASH_SHUTDOWN_CS_PIN 0 - -// [GPIO_SL_MX25_FLASH_SHUTDOWN_CS]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_MX25_FLASH_SHUTDOWN_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_openthread_features_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_openthread_features_config.h deleted file mode 100644 index a3697f8af..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_openthread_features_config.h +++ /dev/null @@ -1,473 +0,0 @@ -/******************************************************************************* - * @file - * @brief OpenThread stack configuration file. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_OPENTHREAD_FEATURES_CONFIG_H -#define _SL_OPENTHREAD_FEATURES_CONFIG_H -//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- -// -// Default OpenThread Stack Configuration - -// Thread Stack Protocol Version -// -// Thread 1.1 -// Thread 1.2 -// Thread 1.3 -// Thread 1.4 -// Current Default: OT_THREAD_VERSION_1_4 -#ifndef OPENTHREAD_CONFIG_THREAD_VERSION -#define OPENTHREAD_CONFIG_THREAD_VERSION OT_THREAD_VERSION_1_4 -#endif -// - -#if (OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2) -// The following features require at least Thread Stack Protocol Version 1.2 -// Backbone Router -#ifndef OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE -#define OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE 0 -#endif -// CSL Auto Synchronization using data polling -#ifndef OPENTHREAD_CONFIG_MAC_CSL_AUTO_SYNC_ENABLE -#define OPENTHREAD_CONFIG_MAC_CSL_AUTO_SYNC_ENABLE 1 -#endif -// CSL (Coordinated Sampled Listening) Debug -#ifndef OPENTHREAD_CONFIG_MAC_CSL_DEBUG_ENABLE -#define OPENTHREAD_CONFIG_MAC_CSL_DEBUG_ENABLE 0 -#endif -// CSL (Coordinated Sampled Listening) Receiver -#ifndef OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE -#define OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE 1 -#endif -// CSL Scheduling Uncertainty (±10 us units) <12..999:1> -// Left unchanged the value will be set to 175 for RCPs, 20 for FTDs, and 12 for MTDs -#ifndef SL_OPENTHREAD_CSL_TX_UNCERTAINTY -#if OPENTHREAD_RADIO - #define SL_OPENTHREAD_CSL_TX_UNCERTAINTY 175 -#elif OPENTHREAD_FTD - #define SL_OPENTHREAD_CSL_TX_UNCERTAINTY 20 -#else - #define SL_OPENTHREAD_CSL_TX_UNCERTAINTY 12 -#endif -#endif -// DUA (Domain Unicast Address) -#ifndef OPENTHREAD_CONFIG_DUA_ENABLE -#define OPENTHREAD_CONFIG_DUA_ENABLE 1 -#endif -// Link Metrics Initiator -#ifndef OPENTHREAD_CONFIG_MLE_LINK_METRICS_INITIATOR_ENABLE -#define OPENTHREAD_CONFIG_MLE_LINK_METRICS_INITIATOR_ENABLE 1 -#endif -// Link Metrics Subject -#ifndef OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE -#define OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE 1 -#endif -// Multicast Listener Registration -#ifndef OPENTHREAD_CONFIG_MLR_ENABLE -#define OPENTHREAD_CONFIG_MLR_ENABLE 1 -#endif -// -#endif // OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2 - -#if (OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_3) -// The following features require at least Thread Stack Protocol Version 1.3 -// DNS Client -#ifndef OPENTHREAD_CONFIG_DNS_CLIENT_ENABLE -#define OPENTHREAD_CONFIG_DNS_CLIENT_ENABLE 1 -#endif -// DNS-SD Server -#ifndef OPENTHREAD_CONFIG_DNSSD_SERVER_ENABLE -#define OPENTHREAD_CONFIG_DNSSD_SERVER_ENABLE 0 -#endif -// Service Registration Protocol (SRP) Client -#ifndef OPENTHREAD_CONFIG_SRP_CLIENT_ENABLE -#define OPENTHREAD_CONFIG_SRP_CLIENT_ENABLE 1 -#endif -// Service Registration Protocol (SRP) Server -#ifndef OPENTHREAD_CONFIG_SRP_SERVER_ENABLE -#define OPENTHREAD_CONFIG_SRP_SERVER_ENABLE 0 -#endif -// TCP API -#ifndef OPENTHREAD_CONFIG_TCP_ENABLE -#define OPENTHREAD_CONFIG_TCP_ENABLE 0 -#endif -// DNS Client over TCP -#ifndef OPENTHREAD_CONFIG_DNS_CLIENT_OVER_TCP_ENABLE -#define OPENTHREAD_CONFIG_DNS_CLIENT_OVER_TCP_ENABLE 0 -#endif -// -#endif // OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_3 - -// Border Agent -#ifndef OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE -#define OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE 0 -#endif -// -// Border Router -#ifndef OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE -#define OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE 0 -#endif -// -// Channel Manager -#ifndef OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE -#define OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE 0 -#endif -// -// Channel Monitor -#ifndef OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE -#define OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE 0 -#endif -// -// Commissioner -#ifndef OPENTHREAD_CONFIG_COMMISSIONER_ENABLE -#define OPENTHREAD_CONFIG_COMMISSIONER_ENABLE 0 -#endif -// Max Joiner Entries -// The maximum number of Joiner entries maintained by the Commissioner. -// 2 -#ifndef OPENTHREAD_CONFIG_COMMISSIONER_MAX_JOINER_ENTRIES -#define OPENTHREAD_CONFIG_COMMISSIONER_MAX_JOINER_ENTRIES 2 -#endif -// -// COAP API -#ifndef OPENTHREAD_CONFIG_COAP_API_ENABLE -#define OPENTHREAD_CONFIG_COAP_API_ENABLE 0 -#endif -// -// COAP Observe (RFC7641) API -#ifndef OPENTHREAD_CONFIG_COAP_OBSERVE_API_ENABLE -#define OPENTHREAD_CONFIG_COAP_OBSERVE_API_ENABLE 0 -#endif -// -// COAP Secure API -#ifndef OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE -#define OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE 0 -#endif -// -// COAP Blockwise Transfer -#ifndef OPENTHREAD_CONFIG_COAP_BLOCKWISE_TRANSFER_ENABLE -#define OPENTHREAD_CONFIG_COAP_BLOCKWISE_TRANSFER_ENABLE 0 -#endif -// -// DHCP6 Client -#ifndef OPENTHREAD_CONFIG_DHCP6_CLIENT_ENABLE -#define OPENTHREAD_CONFIG_DHCP6_CLIENT_ENABLE 0 -#endif -// -// DHCP6 Server -#ifndef OPENTHREAD_CONFIG_DHCP6_SERVER_ENABLE -#define OPENTHREAD_CONFIG_DHCP6_SERVER_ENABLE 0 -#endif -// -// ECDSA (Elliptic Curve Digital Signature Algorithm) (Required for Matter support) -#ifndef OPENTHREAD_CONFIG_ECDSA_ENABLE -#define OPENTHREAD_CONFIG_ECDSA_ENABLE 1 -#endif -// -// External Heap -#ifndef OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE -#define OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE 1 -#endif -// -// IPv6 Fragmentation -#ifndef OPENTHREAD_CONFIG_IP6_FRAGMENTATION_ENABLE -#define OPENTHREAD_CONFIG_IP6_FRAGMENTATION_ENABLE 0 -#endif -// -// IPv6 Limits -// Maximum IPv6 external unicast addresses -// Maximum number of IPv6 unicast addresses allowed to be externally added -// 4 -#ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS -#define OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS 4 -#endif -// Maximum IPv6 external multicast addresses -// Maximum number of IPv6 multicast addresses allowed to be externally added -// 4 -#ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS -#define OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS 4 -#endif -// Maximum IPv6 address registrations for MTD -// The maximum number of IPv6 address registrations for MTD. -// If left unchanged will default to the value of OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD -// 4 -#ifndef OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER -#define OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER (OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD) -#endif -// -// Jam Detection -#ifndef OPENTHREAD_CONFIG_JAM_DETECTION_ENABLE -#define OPENTHREAD_CONFIG_JAM_DETECTION_ENABLE 0 -#endif -// -// Joiner -#ifndef OPENTHREAD_CONFIG_JOINER_ENABLE -#define OPENTHREAD_CONFIG_JOINER_ENABLE 0 -#endif -// -// Link Raw Service -#ifndef OPENTHREAD_CONFIG_LINK_RAW_ENABLE -#define OPENTHREAD_CONFIG_LINK_RAW_ENABLE 0 -#endif -// -// MAC Filter -#ifndef OPENTHREAD_CONFIG_MAC_FILTER_ENABLE -#define OPENTHREAD_CONFIG_MAC_FILTER_ENABLE 0 -#endif -// -// MLE Children -// Maximum number of Thread children supported by the device -// Default is 10. Used by the Thread stack to configure the size of child table. -// 10 -#ifndef OPENTHREAD_CONFIG_MLE_MAX_CHILDREN -#define OPENTHREAD_CONFIG_MLE_MAX_CHILDREN 10 -#endif -// -// MLE Long Routes extension (experimental) -#ifndef OPENTHREAD_CONFIG_MLE_LONG_ROUTES_ENABLE -#define OPENTHREAD_CONFIG_MLE_LONG_ROUTES_ENABLE 0 -#endif -// -// MultiPAN RCP -#ifndef OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE -#define OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE 0 -#endif -// Broadcast IID for spinel frames -// Define broadcast IID for spinel frames dedicated to all hosts in multipan configuration -// 0 -#ifndef OPENTHREAD_SPINEL_CONFIG_BROADCAST_IID -#define OPENTHREAD_SPINEL_CONFIG_BROADCAST_IID 0 -#endif -#if OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE -// Maximum number of Zigbee children for multiprotocol (DMP) builds -// Ensures correct table sizing for Zigbee when DMP/multipan is enabled. -// 6 -#ifndef SL_ZIGBEE_MAX_END_DEVICE_CHILDREN -#define SL_ZIGBEE_MAX_END_DEVICE_CHILDREN 6 -#endif -#endif -// -// Multiple OpenThread Instances -#ifndef OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE -#define OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE 0 -#endif -// Multiple Static Instance Support -#ifndef OPENTHREAD_CONFIG_MULTIPLE_STATIC_INSTANCE_ENABLE -#define OPENTHREAD_CONFIG_MULTIPLE_STATIC_INSTANCE_ENABLE 0 -#endif -// Number of OpenThread Instances -// Default is 2. Number of OpenThread Instances For Static Buffer Allocation. -// 2 -#ifndef OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM -#define OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM 2 -#endif -// -// -// Define maximum total source match table entries for both OT and Zigbee. -// In multi-instance builds (SoC or RCP/host), table must support all OT instances + Zigbee. -// For single instance (default), table sized to just OT children. -// This value is used to size all source match tables in both OT and Zigbee code. -// Note: this is purposedly not being setup with CMSIS annotations. -#ifndef RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE -#if SL_ZIGBEE_MAX_END_DEVICE_CHILDREN -// Multipan / DMP case: OT + Zigbee -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - ((OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * (OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM - 1)) \ - + SL_ZIGBEE_MAX_END_DEVICE_CHILDREN) -#else -// Multi-instance OT-only case -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - (OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM) -#endif -#else -// Single-instance OT (SoC / NCP / non-multipan RCP) -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES OPENTHREAD_CONFIG_MLE_MAX_CHILDREN -#endif -#endif -// Spinel Match Table -// Maximum number of spinel source match table entries -// Ensure that this value is the total of the number of openthread children times the number of openthread instances plus the number of Zigbee children. -#ifndef OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES -#define OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#endif -// -// OTNS (OpenThread Network Simulator) -#ifndef OPENTHREAD_CONFIG_OTNS_ENABLE -#define OPENTHREAD_CONFIG_OTNS_ENABLE 0 -#endif -// -// Ping Sender Module -#ifndef OPENTHREAD_CONFIG_PING_SENDER_ENABLE -#define OPENTHREAD_CONFIG_PING_SENDER_ENABLE 1 -#endif -// -// Power Calibration Module (RCP only configuration) -#ifndef OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE -#define OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE 0 -#endif -// Maximum raw power calibration length -// Max raw power calibration length -// 4 -#ifndef SL_OPENTHREAD_RAW_POWER_CALIBRATION_LENGTH -#define SL_OPENTHREAD_RAW_POWER_CALIBRATION_LENGTH 4 -#endif -// Maximum FEM config setting length -// Max FEM config setting length -// 4 -#ifndef SL_OPENTHREAD_FEM_SETTING_LENGTH -#define SL_OPENTHREAD_FEM_SETTING_LENGTH 4 -#endif -// -// Platform UDP -#ifndef OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE -#define OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE 0 -#endif -// -// Reference Device for Thread Test Harness -#ifndef OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE -#define OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE 0 -#endif -// -// Service Entries in Thread Network Data -#ifndef OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE -#define OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE 0 -#endif -// -// RAM (volatile-only storage) -#ifndef OPENTHREAD_SETTINGS_RAM -#define OPENTHREAD_SETTINGS_RAM 0 -#endif -// -// SLAAC Addresses -#ifndef OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE -#define OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE 1 -#endif -// -// SNTP Client -#ifndef OPENTHREAD_CONFIG_SNTP_CLIENT_ENABLE -#define OPENTHREAD_CONFIG_SNTP_CLIENT_ENABLE 0 -#endif -// -// TMF Network Diagnostic client API -#ifndef OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE -#define OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE 1 -#endif -// -// Time Synchronization Service -#ifndef OPENTHREAD_CONFIG_TIME_SYNC_ENABLE -#define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 0 -#endif -// -// Uptime of OpenThread instance -#ifndef OPENTHREAD_CONFIG_UPTIME_ENABLE -#define OPENTHREAD_CONFIG_UPTIME_ENABLE 1 -#endif -// -// UDP Forward -#ifndef OPENTHREAD_CONFIG_UDP_FORWARD_ENABLE -#define OPENTHREAD_CONFIG_UDP_FORWARD_ENABLE 0 -#endif -// -// Enable Mac beacon payload parsing support -#ifndef OPENTHREAD_CONFIG_MAC_BEACON_PAYLOAD_PARSING_ENABLE -#define OPENTHREAD_CONFIG_MAC_BEACON_PAYLOAD_PARSING_ENABLE 1 -#endif -// -// Radio Driver RX buffers -// Maximum number of RX buffers -// The maximum number of RX buffers to use in the radio driver. -// 16 -#ifndef SL_OPENTHREAD_RADIO_RX_BUFFER_COUNT -#define SL_OPENTHREAD_RADIO_RX_BUFFER_COUNT 16 -#endif -// -// -// Logging -// LOG_OUTPUT -// NONE -// APP -// PLATFORM_DEFINED -// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP -// OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT -#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#endif - -// DYNAMIC_LOG_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE -#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 -#endif - -// Enable Logging -#define OPENTHREAD_FULL_LOGS_ENABLE 0 -#if OPENTHREAD_FULL_LOGS_ENABLE - -// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. -// LOG_LEVEL -// NONE -// CRIT -// WARN -// NOTE -// INFO -// DEBG -// Default: OT_LOG_LEVEL_DEBG -// OT_LOG_LEVEL_DEBG -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL -#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG -#endif -// CLI -#ifndef OPENTHREAD_CONFIG_LOG_CLI -#define OPENTHREAD_CONFIG_LOG_CLI 1 -#endif -// PKT_DUMP -#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP -#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 -#endif -// PLATFORM -#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM -#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 -#endif -// PREPEND_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL -#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 -#endif - -#endif // OPENTHREAD_FULL_LOGS_ENABLE - -// Log crash dump after initialization -#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE -#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 -#endif - -// -// -// - -// <<< end of configuration section >>> -#endif // _SL_OPENTHREAD_FEATURES_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_openthread_radio_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_openthread_radio_config.h deleted file mode 100644 index 478a72430..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_openthread_radio_config.h +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * @file - * @brief OpenThread radio configuration file. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_OPENTHREAD_RADIO_CONFIG_H -#define _SL_OPENTHREAD_RADIO_CONFIG_H -//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- -// -// Default EFR32 Radio Configuration - -// Recieve Sensitivity [dBm] -#define SL_OPENTHREAD_RECEIVE_SENSITIVITY -100 // dBm -// RSSI Average Time [us] -#define SL_OPENTHREAD_RSSI_AVERAGING_TIME 16 // us -// RSSI Average Timeout [us] -#define SL_OPENTHREAD_RSSI_AVERAGING_TIMEOUT 300 // us -// -// <<< end of configuration section >>> -#endif // _SL_OPENTHREAD_RADIO_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_openthread_rtos_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_openthread_rtos_config.h deleted file mode 100644 index 6dc710fcc..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_openthread_rtos_config.h +++ /dev/null @@ -1,109 +0,0 @@ -/******************************************************************************* - * @file - * @brief OpenThread RTOS configuration file. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread stack task priority -// Default: 24 (CMSIS-RTOS2 osPriorityNormal) -// Defines OpenThread stack task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_STACK_TASK_PRIORITY (24) - -// -// Priority Configuration for OpenThread App Task -// OpenThread task priority -// Default: 23 (CMSIS-RTOS2 osPriorityBelowNormal7) -// Defines OpenThread App task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_APP_TASK_PRIORITY (23) - -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread serial task prority -// Default: 16 (CMSIS-RTOS2 osPriorityBelowNormal) -// Defines OpenThread serial task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_SERIAL_TASK_PRIORITY (16) - -// OpenThread stack task stack size in bytes <1000-20000> -// Default: 4608 -// Defines the stack size of the OpenThread RTOS stack task. The value is in bytes and -// and will be word aligned when it is applied at the task creation. -#ifndef SL_OPENTHREAD_STACK_TASK_MEM_SIZE -#if defined(_SILICON_LABS_32B_SERIES_3) -#define SL_OPENTHREAD_STACK_TASK_MEM_SIZE (6144) -#else -#define SL_OPENTHREAD_STACK_TASK_MEM_SIZE (4608) -#endif -#endif - -// OpenThread app task stack size in bytes <1000-20000> -// Default: 4608 -// Defines the stack size of the OpenThread RTOS app task. The value is in bytes and -// and will be word aligned when it is applied at the task creation. -#define SL_OPENTHREAD_APP_TASK_MEM_SIZE (4608) - -// OpenThread serial task stack size in bytes <1000-20000> -// Default: 3072 -// Defines the stack size of the OpenThread RTOS serial task. The value is in bytes and -// and will be word aligned when it is applied at the task creation. -#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3072) - -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread serial task prority -// Default: 16 (CMSIS-RTOS2 osPriorityBelowNormal) -// Defines OpenThread serial task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_SERIAL_TASK_PRIORITY (16) - -// -// App Task -// Enable default App task -// Default: On (for non-RCP apps) -#if OPENTHREAD_RADIO -#define SL_OPENTHREAD_ENABLE_APP_TASK 0 -#else -#define SL_OPENTHREAD_ENABLE_APP_TASK 0 -#endif - -// -// Serial task -// Enable Serial task -// Default: On (for non-RCP apps) -#if OPENTHREAD_RADIO -#define SL_OPENTHREAD_ENABLE_SERIAL_TASK 0 -#else -#define SL_OPENTHREAD_ENABLE_SERIAL_TASK 0 -#endif - -// -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_power_manager_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_power_manager_config.h deleted file mode 100644 index 86b9fef27..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_power_manager_config.h +++ /dev/null @@ -1,100 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Power Manager configuration file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -// <<< Use Configuration Wizard in Context Menu >>> - -#ifndef SL_POWER_MANAGER_CONFIG_H -#define SL_POWER_MANAGER_CONFIG_H - -// Power Manager Configuration - -// Enable custom IRQ handler for external HF oscillator. -// Enable if CMU_IRQHandler/HFXO0_IRQHandler is needed from your application. -// The function sl_power_manager_irq_handler() will have to be called from your custom handler if this is enabled. -// Default: 0 -#ifndef SL_POWER_MANAGER_CUSTOM_HF_OSCILLATOR_IRQ_HANDLER -#define SL_POWER_MANAGER_CUSTOM_HF_OSCILLATOR_IRQ_HANDLER 0 -#endif - -// Enable fast wakeup (disable voltage scaling in EM2/3 mode) -// Enable or disable voltage scaling in EM2/3 modes (when available). This decreases wakeup time by about 30 us. -// Deprecated. It is replaced by the function sl_power_manager_em23_voltage_scaling_enable_fast_wakeup() -// Default: 0 -#ifndef SL_POWER_MANAGER_CONFIG_VOLTAGE_SCALING_FAST_WAKEUP -#define SL_POWER_MANAGER_CONFIG_VOLTAGE_SCALING_FAST_WAKEUP 0 -#endif - -// Enable voltage scaling in EM0 and EM1 mode. -// Enable or disable voltage scaling in EM0/1 modes. With this config enabled, the voltage -// scaling will be configured at the lowest possible level based on the system clock. -// Default: 0 -#ifndef SL_POWER_MANAGER_ENABLE_EM01_VOLTAGE_SCALING -#define SL_POWER_MANAGER_ENABLE_EM01_VOLTAGE_SCALING 0 -#endif - -// Enable debugging feature -// Enable or disable debugging features (trace the different modules that have requirements). -// Default: 0 -#ifndef SL_POWER_MANAGER_DEBUG -#define SL_POWER_MANAGER_DEBUG 0 -#endif - -// Maximum numbers of requirements that can be logged -// Default: 10 -#ifndef SL_POWER_MANAGER_DEBUG_POOL_SIZE -#define SL_POWER_MANAGER_DEBUG_POOL_SIZE 10 -#endif -// - -// Pin retention mode -// -// No retention -// Retention through EM4 -// Retention through EM4 and wakeup -// power_manager_pin_retention_disable -#ifndef SL_POWER_MANAGER_INIT_EMU_EM4_PIN_RETENTION_MODE -#define SL_POWER_MANAGER_INIT_EMU_EM4_PIN_RETENTION_MODE EMU_EM4CTRL_EM4IORETMODE_DISABLE -#endif - -// Enable EM2 debugging feature -// Enable or disable debugging features. -// Force PD0B/PD0D to stay on during EM2 entry. This allows the debugger to remain connected in EM2 and EM3. -// Enabling debug connectivity results in an increased power consumption in EM2/EM3. -// Default: 1 -#ifndef SL_POWER_MANAGER_INIT_EMU_EM2_DEBUG_ENABLE -#define SL_POWER_MANAGER_INIT_EMU_EM2_DEBUG_ENABLE 1 -#endif -// - -// - -#endif /* SL_POWER_MANAGER_CONFIG_H */ - -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_rail_util_pa_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_rail_util_pa_config.h deleted file mode 100644 index b72b54eb0..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_rail_util_pa_config.h +++ /dev/null @@ -1,83 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Power Amplifier configuration file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_RAIL_UTIL_PA_CONFIG_H -#define SL_RAIL_UTIL_PA_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// PA Configuration -// Initial PA Power (deci-dBm, 100 = 10.0 dBm) -// Default: 100 -#define SL_RAIL_UTIL_PA_POWER_DECI_DBM 100 - -// PA Ramp Time (microseconds) -// <0-65535:1> -// Default: 10 -#define SL_RAIL_UTIL_PA_RAMP_TIME_US 10 - -// Milli-volts on PA supply pin (PA_VDD) -// <0-65535:1> -// Default: 3300 -#define SL_RAIL_UTIL_PA_VOLTAGE_MV 1800 - -// 2.4 GHz PA Selection -// Highest Possible -// High Power (chip-specific) -// Low Power -// Disable -// Default: RAIL_TX_POWER_MODE_2P4GIG_HIGHEST -#define SL_RAIL_UTIL_PA_SELECTION_2P4GHZ RAIL_TX_POWER_MODE_2P4GIG_HIGHEST - -// Sub-GHz PA Selection -// Disable -// Default: RAIL_TX_POWER_MODE_NONE -#define SL_RAIL_UTIL_PA_SELECTION_SUBGHZ RAIL_TX_POWER_MODE_NONE -// - -// PA Curve Configuration -// Header file containing custom PA curves -// Default: "pa_curves_efr32.h" -#define SL_RAIL_UTIL_PA_CURVE_HEADER "pa_curves_efr32.h" - -// Header file containing PA curve types -// Default: "pa_curve_types_efr32.h" -#define SL_RAIL_UTIL_PA_CURVE_TYPES "pa_curve_types_efr32.h" -// - -// PA Calibration Configuration -// Enable PA Calibration -// Default: 1 -#define SL_RAIL_UTIL_PA_CALIBRATION_ENABLE 1 -// - -// <<< end of configuration section >>> - -#endif // SL_RAIL_UTIL_PA_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_rail_util_pa_tables_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_rail_util_pa_tables_config.h deleted file mode 100644 index bd05ea57d..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_rail_util_pa_tables_config.h +++ /dev/null @@ -1,49 +0,0 @@ -/***************************************************************************//** - * @file - * @brief PA Tables configuration file. - ******************************************************************************* - * # License - * Copyright 2025 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_RAIL_UTIL_PA_TABLES_CONFIG_H -#define SL_RAIL_UTIL_PA_TABLES_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// PA Table Configuration -// PA Table Selection -// <"sl_rail_util_pa_dbm_powersetting_mapping_table_10dbm.h"=> 10dBm PA powersetting mapping table -// <"sl_rail_util_pa_dbm_powersetting_mapping_table_0dbm.h"=> 0dBm PA powersetting mapping table -// <"sl_rail_util_pa_dbm_powersetting_mapping_table_automode_0_10dbm.h"=> 0dBm-10dBm automode PA powersetting mapping table -// Default: "sl_rail_util_pa_dbm_powersetting_mapping_table_automode_0_10dbm.h" -#define SL_RAIL_UTIL_PA_TABLE_HEADER "sl_rail_util_pa_dbm_powersetting_mapping_table_automode_0_10dbm.h" -// - -// <<< end of configuration section >>> - -#include SL_RAIL_UTIL_PA_TABLE_HEADER - -#endif // SL_RAIL_UTIL_PA_TABLES_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_rail_util_power_manager_init_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_rail_util_power_manager_init_config.h deleted file mode 100644 index cbc69f24d..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_rail_util_power_manager_init_config.h +++ /dev/null @@ -1,44 +0,0 @@ -/***************************************************************************//** - * @file - * @brief RAIL power manager configuration file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H -#define SL_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// RAIL power manager configuration - -// Enable RAIL power manager initialization -// Default: 1 -#define SL_RAIL_UTIL_RAIL_POWER_MANAGER_INIT 1 - -// -// <<< end of configuration section >>> -#endif // SL_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_rail_util_pti_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_rail_util_pti_config.h deleted file mode 100644 index aaaa66c37..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_rail_util_pti_config.h +++ /dev/null @@ -1,71 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Packet Trace Information configuration file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_RAIL_UTIL_PTI_CONFIG_H -#define SL_RAIL_UTIL_PTI_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> -// PTI Configuration - -// PTI mode -// UART -// UART onewire -// SPI -// Disabled -// Default: SL_RAIL_PTI_MODE_UART -#define SL_RAIL_UTIL_PTI_MODE SL_RAIL_PTI_MODE_UART - -// PTI Baud Rate (Hertz) -// <147800-20000000:1> -// Default: 1600000 -#define SL_RAIL_UTIL_PTI_BAUD_RATE_HZ 1600000 - -// -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> -// SL_RAIL_UTIL_PTI -// $[PTI_SL_RAIL_UTIL_PTI] -#define SL_RAIL_UTIL_PTI_PERIPHERAL PTI - -// PTI DOUT on PC06 -#define SL_RAIL_UTIL_PTI_DOUT_PORT SL_GPIO_PORT_C -#define SL_RAIL_UTIL_PTI_DOUT_PIN 6 - -// PTI DFRAME on PC07 -#define SL_RAIL_UTIL_PTI_DFRAME_PORT SL_GPIO_PORT_C -#define SL_RAIL_UTIL_PTI_DFRAME_PIN 7 - - -// [PTI_SL_RAIL_UTIL_PTI]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_RAIL_UTIL_PTI_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_rail_util_rssi_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_rail_util_rssi_config.h deleted file mode 100644 index 128d705f5..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_rail_util_rssi_config.h +++ /dev/null @@ -1,48 +0,0 @@ -/***************************************************************************//** - * @file - * @brief RSSI configuration header file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_RAIL_UTIL_RSSI_CONFIG_H -#define SL_RAIL_UTIL_RSSI_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// RSSI Offset Configuration - -// Software RSSI offset value -// Default: 0 -#define SL_RAIL_UTIL_RSSI_OFFSET 0 - -// Define to store in and provide RSSI offset from NVM3 -// Default: 0 -#define SL_RAIL_UTIL_RSSI_SUPPORTS_NVM_DATA 0 - -// -// <<< end of configuration section >>> -#endif // SL_RAIL_UTIL_RSSI_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_rail_util_sequencer_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_rail_util_sequencer_config.h deleted file mode 100644 index 640ef0c0d..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_rail_util_sequencer_config.h +++ /dev/null @@ -1,46 +0,0 @@ -/***************************************************************************//** - * @file - * @brief - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_RAIL_UTIL_SEQUENCER_H -#define SL_RAIL_UTIL_SEQUENCER_H - -#ifdef __cplusplus -extern "C" { -#endif - -#define SL_RAIL_UTIL_SEQUENCER_RUNTIME_IMAGE_SELECTION 0 - -#define SL_RAIL_UTIL_SEQUENCER_IMAGE RAIL_SEQ_IMAGE_PA_10_DBM - -#ifdef __cplusplus -} -#endif - -#endif // SL_RAIL_UTIL_SEQUENCER_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_simple_button_btn0_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_simple_button_btn0_config.h deleted file mode 100644 index 0e6b0d977..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_simple_button_btn0_config.h +++ /dev/null @@ -1,61 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Button Driver User Config - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_BUTTON_BTN0_CONFIG_H -#define SL_SIMPLE_BUTTON_BTN0_CONFIG_H - -#include "sl_gpio.h" -#include "sl_simple_button.h" - -// <<< Use Configuration Wizard in Context Menu >>> - -// -// Interrupt -// Poll and Debounce -// Poll -// Default: SL_SIMPLE_BUTTON_MODE_INTERRUPT -#define SL_SIMPLE_BUTTON_BTN0_MODE SL_SIMPLE_BUTTON_MODE_INTERRUPT -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_SIMPLE_BUTTON_BTN0 -// $[GPIO_SL_SIMPLE_BUTTON_BTN0] -#ifndef SL_SIMPLE_BUTTON_BTN0_PORT -#define SL_SIMPLE_BUTTON_BTN0_PORT SL_GPIO_PORT_B -#endif -#ifndef SL_SIMPLE_BUTTON_BTN0_PIN -#define SL_SIMPLE_BUTTON_BTN0_PIN 2 -#endif -// [GPIO_SL_SIMPLE_BUTTON_BTN0]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_SIMPLE_BUTTON_BTN0_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_simple_button_btn1_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_simple_button_btn1_config.h deleted file mode 100644 index 1df1ce0a1..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_simple_button_btn1_config.h +++ /dev/null @@ -1,61 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Button Driver User Config - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_BUTTON_BTN1_CONFIG_H -#define SL_SIMPLE_BUTTON_BTN1_CONFIG_H - -#include "sl_gpio.h" -#include "sl_simple_button.h" - -// <<< Use Configuration Wizard in Context Menu >>> - -// -// Interrupt -// Poll and Debounce -// Poll -// Default: SL_SIMPLE_BUTTON_MODE_INTERRUPT -#define SL_SIMPLE_BUTTON_BTN1_MODE SL_SIMPLE_BUTTON_MODE_INTERRUPT -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_SIMPLE_BUTTON_BTN1 -// $[GPIO_SL_SIMPLE_BUTTON_BTN1] -#ifndef SL_SIMPLE_BUTTON_BTN1_PORT -#define SL_SIMPLE_BUTTON_BTN1_PORT SL_GPIO_PORT_B -#endif -#ifndef SL_SIMPLE_BUTTON_BTN1_PIN -#define SL_SIMPLE_BUTTON_BTN1_PIN 3 -#endif -// [GPIO_SL_SIMPLE_BUTTON_BTN1]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_SIMPLE_BUTTON_BTN1_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_simple_button_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_simple_button_config.h deleted file mode 100644 index 531f4f208..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_simple_button_config.h +++ /dev/null @@ -1,72 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Button Driver Configuration - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_BUTTON_CONFIG_H -#define SL_SIMPLE_BUTTON_CONFIG_H - -#include "sl_gpio.h" -// <<< Use Configuration Wizard in Context Menu >>> - -// Simple Button Driver Configuration - -// Number of bits <1-15> -// Default: 5 -// Defines the number of calls to sl_simple_button_poll_step wherein the button -// state must remain the same before the button state is considered debounced -#define SL_SIMPLE_BUTTON_DEBOUNCE_BITS 5U - -// -// GPIO Input -// GPIO Input Pull -// GPIO Input Pull Filter -// Default: gpioModeInput -#define SL_SIMPLE_BUTTON_GPIO_MODE SL_GPIO_MODE_INPUT - -// -// SL_SIMPLE_BUTTON_GPIO_MODE == SL_GPIO_MODE_INPUT, Filter if DOUT is set -// SL_SIMPLE_BUTTON_GPIO_MODE == SL_GPIO_MODE_INPUT_PULL, DOUT determines pull direction -#define SL_SIMPLE_BUTTON_GPIO_DOUT 0U - -// -// 0 Active Low -// 1 Active High -// Default: 0 -#define SL_SIMPLE_BUTTON_POLARITY 0U - -// Allow the app to manage Buttons and LEDs on the same pin -// 0 Error if Buttons and LEDs are on the same pin -// 1 Do not error if Buttons and LEDs are on the same pin -// Default: 0 -#define SL_SIMPLE_BUTTON_ALLOW_LED_CONFLICT 0U - -// - -// <<< end of configuration section >>> -#endif // SL_SIMPLE_BUTTON_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_simple_led_led0_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_simple_led_led0_config.h deleted file mode 100644 index 16f13b6e0..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_simple_led_led0_config.h +++ /dev/null @@ -1,57 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Led Driver Configuration - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_LED_LED0_CONFIG_H -#define SL_SIMPLE_LED_LED0_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Simple LED configuration -// -// Active low -// Active high -// Default: SL_SIMPLE_LED_POLARITY_ACTIVE_HIGH -#define SL_SIMPLE_LED_LED0_POLARITY SL_SIMPLE_LED_POLARITY_ACTIVE_LOW -// end led configuration - -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_SIMPLE_LED_LED0 -// $[GPIO_SL_SIMPLE_LED_LED0] -#define SL_SIMPLE_LED_LED0_PORT SL_GPIO_PORT_D -#define SL_SIMPLE_LED_LED0_PIN 2 - -// [GPIO_SL_SIMPLE_LED_LED0]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_SIMPLE_LED_LED0_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_simple_led_led1_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_simple_led_led1_config.h deleted file mode 100644 index ee3c06193..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_simple_led_led1_config.h +++ /dev/null @@ -1,57 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Led Driver Configuration - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_LED_LED1_CONFIG_H -#define SL_SIMPLE_LED_LED1_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Simple LED configuration -// -// Active low -// Active high -// Default: SL_SIMPLE_LED_POLARITY_ACTIVE_HIGH -#define SL_SIMPLE_LED_LED1_POLARITY SL_SIMPLE_LED_POLARITY_ACTIVE_LOW -// end led configuration - -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_SIMPLE_LED_LED1 -// $[GPIO_SL_SIMPLE_LED_LED1] -#define SL_SIMPLE_LED_LED1_PORT SL_GPIO_PORT_A -#define SL_SIMPLE_LED_LED1_PIN 4 - -// [GPIO_SL_SIMPLE_LED_LED1]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_SIMPLE_LED_LED1_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_simple_rgb_pwm_led_rgb_led0_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_simple_rgb_pwm_led_rgb_led0_config.h deleted file mode 100644 index 66b5d4db7..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_simple_rgb_pwm_led_rgb_led0_config.h +++ /dev/null @@ -1,118 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple RGB PWM Led Driver Configuration - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_RGB_PWM_LED_RGB_LED0_CONFIG_H -#define SL_SIMPLE_RGB_PWM_LED_RGB_LED0_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Simple RGB PWM LED Configuration -// PWM frequency [Hz] -// Sets the frequency of the PWM signal -// 0 = Don't care -// Default: 10000 -#define SL_SIMPLE_RGB_PWM_LED_RGB_LED0_FREQUENCY 10000 - -// PWM resolution <2-65536> -// Specifies the PWM (dimming) resolution. I.e. if you want a -// dimming resolution that takes the input values from 0 to 99, -// set this value to 100 -// Default: 256 -#define SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RESOLUTION 256 - -// Red LED Polarity -// Active low -// Active high -// Default: SL_SIMPLE_RGB_PWM_LED_POLARITY_ACTIVE_LOW -#define SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RED_POLARITY SL_SIMPLE_RGB_PWM_LED_POLARITY_ACTIVE_LOW - -// Green LED Polarity -// Active low -// Active high -// Default: SL_SIMPLE_RGB_PWM_LED_POLARITY_ACTIVE_LOW -#define SL_SIMPLE_RGB_PWM_LED_RGB_LED0_GREEN_POLARITY SL_SIMPLE_RGB_PWM_LED_POLARITY_ACTIVE_LOW - -// Blue LED Polarity -// Active low -// Active high -// Default: SL_SIMPLE_RGB_PWM_LED_POLARITY_ACTIVE_LOW -#define SL_SIMPLE_RGB_PWM_LED_RGB_LED0_BLUE_POLARITY SL_SIMPLE_RGB_PWM_LED_POLARITY_ACTIVE_LOW -// end led configuration - -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_SIMPLE_RGB_PWM_LED_RGB_LED0 -// $[TIMER_SL_SIMPLE_RGB_PWM_LED_RGB_LED0] -#ifndef SL_SIMPLE_RGB_PWM_LED_RGB_LED0_PERIPHERAL -#define SL_SIMPLE_RGB_PWM_LED_RGB_LED0_PERIPHERAL TIMER1 -#endif -#ifndef SL_SIMPLE_RGB_PWM_LED_RGB_LED0_PERIPHERAL_NO -#define SL_SIMPLE_RGB_PWM_LED_RGB_LED0_PERIPHERAL_NO 1 -#endif - -#ifndef SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RED_CHANNEL -#define SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RED_CHANNEL 0 -#endif -// TIMER1 CC0 on PD02 -#ifndef SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RED_PORT -#define SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RED_PORT SL_GPIO_PORT_D -#endif -#ifndef SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RED_PIN -#define SL_SIMPLE_RGB_PWM_LED_RGB_LED0_RED_PIN 2 -#endif - -#ifndef SL_SIMPLE_RGB_PWM_LED_RGB_LED0_GREEN_CHANNEL -#define SL_SIMPLE_RGB_PWM_LED_RGB_LED0_GREEN_CHANNEL 1 -#endif -// TIMER1 CC1 on PA04 -#ifndef SL_SIMPLE_RGB_PWM_LED_RGB_LED0_GREEN_PORT -#define SL_SIMPLE_RGB_PWM_LED_RGB_LED0_GREEN_PORT SL_GPIO_PORT_A -#endif -#ifndef SL_SIMPLE_RGB_PWM_LED_RGB_LED0_GREEN_PIN -#define SL_SIMPLE_RGB_PWM_LED_RGB_LED0_GREEN_PIN 4 -#endif - -#ifndef SL_SIMPLE_RGB_PWM_LED_RGB_LED0_BLUE_CHANNEL -#define SL_SIMPLE_RGB_PWM_LED_RGB_LED0_BLUE_CHANNEL 2 -#endif -// TIMER1 CC2 on PB00 -#ifndef SL_SIMPLE_RGB_PWM_LED_RGB_LED0_BLUE_PORT -#define SL_SIMPLE_RGB_PWM_LED_RGB_LED0_BLUE_PORT SL_GPIO_PORT_B -#endif -#ifndef SL_SIMPLE_RGB_PWM_LED_RGB_LED0_BLUE_PIN -#define SL_SIMPLE_RGB_PWM_LED_RGB_LED0_BLUE_PIN 0 -#endif -// [TIMER_SL_SIMPLE_RGB_PWM_LED_RGB_LED0]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_SIMPLE_RGB_PWM_LED_RGB_LED0_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_sleeptimer_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_sleeptimer_config.h deleted file mode 100644 index 8344ef5f1..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_sleeptimer_config.h +++ /dev/null @@ -1,82 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Sleep Timer configuration file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -// <<< Use Configuration Wizard in Context Menu >>> - -#ifndef SL_SLEEPTIMER_CONFIG_H -#define SL_SLEEPTIMER_CONFIG_H - -#define SL_SLEEPTIMER_PERIPHERAL_DEFAULT 0 -#define SL_SLEEPTIMER_PERIPHERAL_RTCC 1 -#define SL_SLEEPTIMER_PERIPHERAL_PRORTC 2 -#define SL_SLEEPTIMER_PERIPHERAL_RTC 3 -#define SL_SLEEPTIMER_PERIPHERAL_SYSRTC 4 -#define SL_SLEEPTIMER_PERIPHERAL_BURTC 5 -#define SL_SLEEPTIMER_PERIPHERAL_WTIMER 6 -#define SL_SLEEPTIMER_PERIPHERAL_TIMER 7 - -// Timer Peripheral Used by Sleeptimer -// Default (auto select) -// RTCC -// Radio internal RTC (PRORTC) -// RTC -// SYSRTC -// Back-Up RTC (BURTC) -// WTIMER -// TIMER -// Selection of the Timer Peripheral Used by the Sleeptimer -#define SL_SLEEPTIMER_PERIPHERAL SL_SLEEPTIMER_PERIPHERAL_DEFAULT - -// TIMER/WTIMER Instance Used by Sleeptimer (not applicable for other peripherals) -// Make sure TIMER instance size is 32bits. Check datasheet for 32bits TIMERs. -// Default: 0 -#define SL_SLEEPTIMER_TIMER_INSTANCE 0 - -// Enable wallclock functionality -// Enable or disable wallclock functionalities (get_time, get_date, etc). -// Default: 0 -#define SL_SLEEPTIMER_WALLCLOCK_CONFIG 0 - -// Timer frequency divider (not applicable for WTIMER/TIMER) -// WTIMER/TIMER peripherals are always prescaled to 1024. -// Default: 1 -#define SL_SLEEPTIMER_FREQ_DIVIDER 1 - -// If Radio internal RTC (PRORTC) HAL is used, determines if it owns the IRQ handler. Enable, if no wireless stack is used. -// Default: 0 -#define SL_SLEEPTIMER_PRORTC_HAL_OWNS_IRQ_HANDLER 0 - -// Enable DEBUGRUN functionality on hardware RTC. -// Default: 0 -#define SL_SLEEPTIMER_DEBUGRUN 0 - -#endif /* SLEEPTIMER_CONFIG_H */ - -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_uartdrv_eusart_vcom_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/sl_uartdrv_eusart_vcom_config.h deleted file mode 100644 index 6a2befbf3..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_uartdrv_eusart_vcom_config.h +++ /dev/null @@ -1,120 +0,0 @@ -/***************************************************************************//** - * @file - * @brief UARTDRV_EUSART Config - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_UARTDRV_EUSART_VCOM_CONFIG_H -#define SL_UARTDRV_EUSART_VCOM_CONFIG_H - -#include "em_eusart.h" -// <<< Use Configuration Wizard in Context Menu >>> - -// EUSART settings -// Baud rate -// Default: 115200 -#if defined(VERBOSE_MODE) && (VERBOSE_MODE ==1) -#define SL_UARTDRV_EUSART_VCOM_BAUDRATE 921600 -#else -#define SL_UARTDRV_EUSART_VCOM_BAUDRATE 115200 -#endif - -// Low frequency mode -// True -// False -#define SL_UARTDRV_EUSART_VCOM_LF_MODE false - -// Parity mode to use -// No Parity -// Even parity -// Odd parity -// Default: eusartNoParity -#define SL_UARTDRV_EUSART_VCOM_PARITY eusartNoParity - -// Number of stop bits to use. -// 0.5 stop bits -// 1 stop bits -// 1.5 stop bits -// 2 stop bits -// Default: eusartStopbits1 -#define SL_UARTDRV_EUSART_VCOM_STOP_BITS eusartStopbits1 - -// Flow control method -// None -// Software XON/XOFF -// nRTS/nCTS hardware handshake -// UART peripheral controls nRTS/nCTS -// Default: uartdrvFlowControlHwUart -#define SL_UARTDRV_EUSART_VCOM_FLOW_CONTROL_TYPE uartdrvFlowControlNone - -// Oversampling selection -// 16x oversampling -// 8x oversampling -// 6x oversampling -// 4x oversampling -// Oversampling disabled -// Default: eusartOVS16 -#define SL_UARTDRV_EUSART_VCOM_OVERSAMPLING eusartOVS16 - -// Majority vote disable for 16x, 8x and 6x oversampling modes -// False -// True -// Default: eusartMajorityVoteEnable -#define SL_UARTDRV_EUSART_VCOM_MVDIS eusartMajorityVoteEnable - -// Size of the receive operation queue -// Default: 6 -#define SL_UARTDRV_EUSART_VCOM_RX_BUFFER_SIZE 6 - -// Size of the transmit operation queue -// Default: 6 -#define SL_UARTDRV_EUSART_VCOM_TX_BUFFER_SIZE 6 -// -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> -// SL_UARTDRV_EUSART_VCOM -// $[EUSART_SL_UARTDRV_EUSART_VCOM] -#define SL_UARTDRV_EUSART_VCOM_PERIPHERAL EUSART0 -#define SL_UARTDRV_EUSART_VCOM_PERIPHERAL_NO 0 - -// EUSART0 TX on PA05 -#define SL_UARTDRV_EUSART_VCOM_TX_PORT SL_GPIO_PORT_A -#define SL_UARTDRV_EUSART_VCOM_TX_PIN 5 - -// EUSART0 RX on PA06 -#define SL_UARTDRV_EUSART_VCOM_RX_PORT SL_GPIO_PORT_A -#define SL_UARTDRV_EUSART_VCOM_RX_PIN 6 - -// EUSART0 CTS on PB02 -#define SL_UARTDRV_EUSART_VCOM_CTS_PORT SL_GPIO_PORT_B -#define SL_UARTDRV_EUSART_VCOM_CTS_PIN 2 - - -// [EUSART_SL_UARTDRV_EUSART_VCOM]$ -// <<< sl:end pin_tool >>> -#endif // SL_UARTDRV_EUSART_VCOM_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/uartdrv_config.h b/board-support/efr32/efr32mg24/BRD2601B/config/uartdrv_config.h deleted file mode 100644 index f41b347e1..000000000 --- a/board-support/efr32/efr32mg24/BRD2601B/config/uartdrv_config.h +++ /dev/null @@ -1,123 +0,0 @@ -/***************************************************************************//** - * @file - * @brief UARTDRV configuration file. - ******************************************************************************* - * # License - * Copyright 2018 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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 __SILICON_LABS_UARTDRV_CONFIG_H__ -#define __SILICON_LABS_UARTDRV_CONFIG_H__ - -/***************************************************************************//** - * @addtogroup uartdrv - * @{ - ******************************************************************************/ -/// Size of the receive operation queue. -/// @details -/// The maximum number of receive operations that can be queued up for one -/// driver instance before @ref UARTDRV_Receive() returns -/// @ref ECODE_EMDRV_UARTDRV_QUEUE_FULL. -/// @note -/// This macro is not used by the UARTDRV itself, but is intended to be used -/// with the @ref DEFINE_BUF_QUEUE macro by the user of the driver to allocate -/// instances of the @ref UARTDRV_Buffer_FifoQueue_t struct. -#if !defined(EMDRV_UARTDRV_MAX_CONCURRENT_RX_BUFS) -#define EMDRV_UARTDRV_MAX_CONCURRENT_RX_BUFS 6 -#endif - -/// Size of the transmit operation queue. -/// @details -/// The maximum number of transmit operations that can be queued up for one -/// driver instance before @ref UARTDRV_Transmit() returns -/// @ref ECODE_EMDRV_UARTDRV_QUEUE_FULL. -/// @note -/// This macro is not used by the UARTDRV itself, but is intended to be used -/// with the @ref DEFINE_BUF_QUEUE macro by the user of the driver to allocate -/// instances of the @ref UARTDRV_Buffer_FifoQueue_t struct. -#if !defined(EMDRV_UARTDRV_MAX_CONCURRENT_TX_BUFS) -#define EMDRV_UARTDRV_MAX_CONCURRENT_TX_BUFS 6 -#endif - -// <<< Use Configuration Wizard in Context Menu >>> -// UARTDRV Settings - -/// Set to 1 to include flow control support -#if !defined(EMDRV_UARTDRV_FLOW_CONTROL_ENABLE) -// Flow control support -// <1=> Enable -// <0=> Disable -// Default: 1 -#define EMDRV_UARTDRV_FLOW_CONTROL_ENABLE 0 -#endif - -/// Maximum number of driver instances. -#if !defined(EMDRV_UARTDRV_MAX_DRIVER_INSTANCES) -// Maximum number of driver instances -// This maximum only applies when UARTDRV_FLOW_CONTROL_ENABLE = 1 -// Default: 4 -#define EMDRV_UARTDRV_MAX_DRIVER_INSTANCES 4 -#endif - -/// UART software flow control code: request peer to start TX -#if !defined(UARTDRV_FC_SW_XON) -// UART software flow control code: request peer to start TX -// Default: 0x11 -#define UARTDRV_FC_SW_XON 0x11 -#endif - -/// UART software flow control code: request peer to stop TX -#if !defined(UARTDRV_FC_SW_XOFF) -// UART software flow control code: request peer to stop TX -// Default: 0x13 -#define UARTDRV_FC_SW_XOFF 0x13 -#endif - -/// UART enable reception when sleeping. -#if !defined(UARTDRV_RESTRICT_ENERGY_MODE_TO_ALLOW_RECEPTION) -// Enable reception when sleeping -// Enable reception when sleeping will use the power manager and add EM1 -// requirement during receive operations that use DMA. -// <1=> Enable -// <0=> Disable -// Default: 1 -#define UARTDRV_RESTRICT_ENERGY_MODE_TO_ALLOW_RECEPTION 1 -#endif - -/// Set to 1 to add user-specified call back parameter. -#if !defined(UARTDRV_USER_SPECIFIED_CALLBACK_ENABLE) -// Add user-specified callback parameter. -// <1=> Enable -// <0=> Disable -// Default: 0 -#define UARTDRV_USER_SPECIFIED_CALLBACK_ENABLE 0 -#endif - -// - -// <<< end of configuration section >>> - -/** @} (end addtogroup uartdrv) */ - -#endif /* __SILICON_LABS_UARTDRV_CONFIG_H__ */ diff --git a/board-support/efr32/efr32mg24/BRD2703A/autogen/gatt_db.h b/board-support/efr32/efr32mg24/BRD2703A/autogen/gatt_db.h index c179e6b28..b3a2e67f9 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/autogen/gatt_db.h +++ b/board-support/efr32/efr32mg24/BRD2703A/autogen/gatt_db.h @@ -5,10 +5,6 @@ #ifndef __GATT_DB_H #define __GATT_DB_H -#if __cplusplus -extern "C" { -#endif - #include "sli_bt_gattdb_def.h" extern const sli_bt_gattdb_t gattdb; @@ -31,8 +27,5 @@ extern const sli_bt_gattdb_t gattdb; #define gattdb_CHIPoBLEChar_Tx_len 247 #define gattdb_CHIPoBLEChar_C3_len 512 -#if __cplusplus -} -#endif #endif // __GATT_DB_H diff --git a/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_bluetooth.c b/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_bluetooth.c index 0a5f1a969..0cf47b680 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_bluetooth.c +++ b/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_bluetooth.c @@ -76,13 +76,13 @@ void sl_bt_step(void) // Check the length of the next event, if any, and verify that the application // can process it. To prevent data loss, the event will be kept in the stack's // queue if the application cannot process it at the moment. - size_t event_len = sli_bgapi_device_peek_event_len(&sli_bt_bgapi_device); + size_t event_len = sli_bgapi_device_peek_event_len(sli_bt_bgapi_device); if ((event_len == 0) || (!sl_bt_can_process_event(event_len))) { return; } // Pop the event and process it if successful - sl_status_t status = sli_bgapi_device_pop_event(&sli_bt_bgapi_device, + sl_status_t status = sli_bgapi_device_pop_event(sli_bt_bgapi_device, sizeof(evt), &evt); diff --git a/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_component_catalog.h b/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_component_catalog.h index 9a6a129b0..90020d62c 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_component_catalog.h +++ b/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_component_catalog.h @@ -4,7 +4,9 @@ // APIs present in project #define SL_CATALOG_BGAPI_PROTOCOL_PRESENT #define SL_CATALOG_BGAPI_PROTOCOL_RTOS_ADAPTATION_PRESENT +#define SL_CATALOG_BLUETOOTH_COMMON_PRESENT #define SL_CATALOG_BLUETOOTH_CONFIGURATION_PRESENT +#define SL_CATALOG_BLUETOOTH_CRYPTO_LIB_PSA_PRESENT #define SL_CATALOG_BLUETOOTH_CTE_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_CS_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_FEATURE_ADVERTISER_PRESENT @@ -26,7 +28,9 @@ #define SL_CATALOG_CPP_SUPPORT_PRESENT #define SL_CATALOG_DEVICE_INIT_PRESENT #define SL_CATALOG_DEVICE_INIT_DCDC_PRESENT +#define SL_CATALOG_DMA_MANAGER_PRESENT #define SL_CATALOG_EMLIB_CORE_PRESENT +#define SL_CATALOG_EMLIB_GPIO_PRESENT #define SL_CATALOG_EMLIB_RMU_PRESENT #define SL_CATALOG_FREERTOS_KERNEL_PRESENT #define SL_CATALOG_KERNEL_PRESENT @@ -50,7 +54,7 @@ #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_SEGGER_RTT_PRESENT #define SL_CATALOG_BTN0_PRESENT @@ -65,10 +69,23 @@ #define SL_CATALOG_SIMPLE_LED_LED1_PRESENT #define SL_CATALOG_SL_CORE_PRESENT #define SL_CATALOG_SL_MAIN_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_COMPATIBLE_PA_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_PA_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_SEQUENCER_PRESENT +#define SL_CATALOG_RAIL_UTIL_SEQUENCER_PRESENT #define SL_CATALOG_SLEEPTIMER_PRESENT #define SL_CATALOG_SLI_PROTOCOL_CRYPTO_PRESENT #if defined(CONFIG_ENABLE_UART) #define SL_CATALOG_UARTDRV_EUSART_PRESENT -#endif +#define SL_CATALOG_OPENTHREAD_UART_PRESENT +#endif // CONFIG_ENABLE_UART #endif // SL_COMPONENT_CATALOG_H diff --git a/board-support/efr32/efr32mg24/BRD2601B/main.c b/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_dma_manager_instances.c similarity index 70% rename from board-support/efr32/efr32mg24/BRD2601B/main.c rename to board-support/efr32/efr32mg24/BRD2703A/autogen/sl_dma_manager_instances.c index db35d2d3d..f4339b2ed 100644 --- a/board-support/efr32/efr32mg24/BRD2601B/main.c +++ b/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_dma_manager_instances.c @@ -1,6 +1,6 @@ /***************************************************************************//** - * @file main.c - * @brief main() function. + * @file + * @brief DMA Manager Instances Initialization. ******************************************************************************* * # License * Copyright 2025 Silicon Laboratories Inc. www.silabs.com @@ -27,17 +27,25 @@ * 3. This notice may not be removed or altered from any source distribution. * ******************************************************************************/ -#include "sl_main_init.h" -#include "sl_main_kernel.h" -int main(void) +#include "sl_dma_manager_instances.h" +#include "sl_dma_manager.h" +#include "sl_device_peripheral.h" + + + +sl_dma_handle_t sl_dma_handle_ldma0; + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + ******************************************************************************/ +void sl_dma_manager_instances_init(void) { - // Initialize Silicon Labs device, system, service(s) and protocol stack(s). - sl_main_second_stage_init(); - app_init(); + // Initialize DMA Manager instance: LDMA0 + sl_dma_manager_init(&sl_dma_handle_ldma0, SL_PERIPHERAL_DMA_LDMA0); - while (sl_main_start_task_should_continue()) { - app_process_action(); - } } + + diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_ot_custom_cli.c b/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_dma_manager_instances.h similarity index 56% rename from board-support/efr32/efr32mg24/BRD4186A/autogen/sl_ot_custom_cli.c rename to board-support/efr32/efr32mg24/BRD2703A/autogen/sl_dma_manager_instances.h index ca55d6463..1580ad2b2 100644 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_ot_custom_cli.c +++ b/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_dma_manager_instances.h @@ -1,9 +1,9 @@ -/******************************************************************************* +/***************************************************************************//** * @file - * @brief Custom CLI support for OpenThread + * @brief DMA Manager Instances API. ******************************************************************************* * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com ******************************************************************************* * * SPDX-License-Identifier: Zlib @@ -28,37 +28,44 @@ * ******************************************************************************/ -#include -#include -#include -#include "sl_ot_custom_cli.h" +#ifndef SL_DMA_MANAGER_INSTANCES_H +#define SL_DMA_MANAGER_INSTANCES_H -/******************************************************************************* - * Example syntax (.slcc or .slcp) for populating this file: +#include "sl_dma_manager.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/***************************************************************************//** + * @addtogroup dma_manager DMA Manager + * @{ + ******************************************************************************/ + + + +extern sl_dma_handle_t sl_dma_handle_ldma0; + + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. * - * template_contribution: - * - name: sl_ot_cli_command # Register a command - * value: - * name: status # Name of command - * handler: status_command # Function to be called. Must be defined + * @details This function initializes all DMA Manager instances that have been + * configured through the component system. Each instance corresponds + * to a DMA peripheral (e.g., LDMA0, LDMA1). * + * @note This function is typically called automatically during system + * initialization when the dma_manager_init component is included + * in the project. ******************************************************************************/ -extern otError bleCommand(void *aContext, uint8_t aArgsLength, char *aArgs[]); +void sl_dma_manager_instances_init(void); -otCliCommand sl_ot_custom_commands[] = { -#ifdef SL_OPENTHREAD_BLE_CLI_ENABLE - {"ble", bleCommand}, -#endif +/** @} (end addtogroup dma_manager) */ -}; +#ifdef __cplusplus +} +#endif -// This is needed because `sizeof` is calculated at compile time and can't be calculated outside of this source file. -const uint8_t sl_ot_custom_commands_count = OT_ARRAY_LENGTH(sl_ot_custom_commands); +#endif // SL_DMA_MANAGER_INSTANCES_H -void sl_ot_custom_cli_init(void) -{ - if (sl_ot_custom_commands_count > 0) - { - IgnoreError(otCliSetUserCommands(sl_ot_custom_commands, sl_ot_custom_commands_count, NULL)); - } -} diff --git a/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_event_handler.c b/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_event_handler.c index 5c330bc93..c58e9569a 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_event_handler.c +++ b/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_event_handler.c @@ -5,7 +5,6 @@ #include "sl_hfxo_manager.h" #include "sl_rail_util_compatible_pa.h" #if !(defined(SLI_SI91X_ENABLE_BLE) && SLI_SI91X_ENABLE_BLE) -#include "sl_bluetooth.h" #include "sl_rail_util_power_manager_init.h" #endif // !SLI_SI91X_ENABLE_BLE #include "sl_rail_util_power_manager_init.h" @@ -14,6 +13,7 @@ #include "btl_interface.h" #include "sl_board_control.h" #include "platform-efr32.h" +#include "sl_dma_manager_instances.h" #include "sl_bt_rtos_adaptation.h" #include "sl_bluetooth.h" #include "sl_debug_swo.h" @@ -67,6 +67,7 @@ void sl_platform_init(void) sl_hfxo_manager_init_hardware(); sl_board_init(); bootloader_init(); + sl_dma_manager_instances_init(); nvm3_initDefault(); } diff --git a/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_simple_led_instances.h b/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_simple_led_instances.h index 928fbe942..08c8291ae 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_simple_led_instances.h +++ b/board-support/efr32/efr32mg24/BRD2703A/autogen/sl_simple_led_instances.h @@ -31,10 +31,6 @@ #ifndef SL_SIMPLE_LED_INSTANCES_H #define SL_SIMPLE_LED_INSTANCES_H -#ifdef __cplusplus -extern "C" { -#endif - #include "sl_simple_led.h" extern const sl_led_t sl_led_led0; @@ -47,8 +43,4 @@ extern const sl_led_t *sl_simple_led_array[]; void sl_simple_led_init_instances(void); -#ifdef __cplusplus -} -#endif - #endif // SL_SIMPLE_LED_INIT_H diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/app_properties_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/app_properties_config.h index 6a6b97666..34418403f 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/app_properties_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/app_properties_config.h @@ -63,3 +63,4 @@ // #endif // APP_PROPERTIES_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/btconf/gatt_configuration.btconf b/board-support/efr32/efr32mg24/BRD2703A/config/btconf/gatt_configuration.btconf deleted file mode 100644 index 4d1efd972..000000000 --- a/board-support/efr32/efr32mg24/BRD2703A/config/btconf/gatt_configuration.btconf +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - Abstract: The generic_access service contains generic information about the device. All available Characteristics are readonly. - - - - - Empty Example - - - - - - - - - Abstract: The external appearance of this device. The values are composed of a category (10-bits) and sub-categories (6-bits). - 0000 - - - - - - - - - Abstract: The Device Information Service exposes manufacturer and/or vendor information about a device. Summary: This service exposes manufacturer information about a device. The Device Information Service is instantiated as a Primary Service. Only one instance of the Device Information Service is exposed on a device. - - - - Abstract: The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device. - Silicon Labs - - - - - - - - Abstract: The value of this characteristic is a UTF-8 string representing the model number assigned by the device vendor. - Blue Gecko - - - - - - - - Abstract: The SYSTEM ID characteristic consists of a structure with two fields. The first field are the LSOs and the second field contains the MSOs. This is a 64-bit structure which consists of a 40-bit manufacturer-defined identifier concatenated with a 24 bit unique Organizationally Unique Identifier (OUI). The OUI is issued by the IEEE Registration Authority (http://standards.ieee.org/regauth/index.html) and is required to be used in accordance with IEEE Standard 802-2001.6 while the least significant 40 bits are manufacturer defined. If System ID generated based on a Bluetooth Device Address, it is required to be done as follows. System ID and the Bluetooth Device Address have a very similar structure: a Bluetooth Device Address is 48 bits in length and consists of a 24 bit Company Assigned Identifier (manufacturer defined identifier) concatenated with a 24 bit Company Identifier (OUI). In order to encapsulate a Bluetooth Device Address as System ID, the Company Identifier is concatenated with 0xFFFE followed by the Company Assigned Identifier of the Bluetooth Address. For more guidelines related to EUI-64, refer to http://standards.ieee.org/develop/regauth/tut/eui64.pdf. Examples: If the system ID is based of a Bluetooth Device Address with a Company Identifier (OUI) is 0x123456 and the Company Assigned Identifier is 0x9ABCDE, then the System Identifier is required to be 0x123456FFFE9ABCDE. - 000102030405 - - - - - - - - - Custom service - - - - Custom characteristic - 00 - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/btl_interface_cfg.h b/board-support/efr32/efr32mg24/BRD2703A/config/btl_interface_cfg.h new file mode 100644 index 000000000..fc17ccfff --- /dev/null +++ b/board-support/efr32/efr32mg24/BRD2703A/config/btl_interface_cfg.h @@ -0,0 +1,64 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_H +#define BTL_INTERFACE_CFG_H + +#if !defined(BOOTLOADER_APPLOADER) + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_1) +#include "btl_interface_cfg_s2c1.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_2) +#include "btl_interface_cfg_s2c2.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_3) +#include "btl_interface_cfg_s2c3.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_4) +#include "btl_interface_cfg_s2c4.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_5) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_6) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_8) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_9) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_13) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_11) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif +#endif// !BOOTLOADER_APPLOADER + +#endif // BTL_INTERFACE_CFG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/btl_interface_cfg_s2c4.h b/board-support/efr32/efr32mg24/BRD2703A/config/btl_interface_cfg_s2c4.h new file mode 100644 index 000000000..a93bdec95 --- /dev/null +++ b/board-support/efr32/efr32mg24/BRD2703A/config/btl_interface_cfg_s2c4.h @@ -0,0 +1,322 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_S2C4_H +#define BTL_INTERFACE_CFG_S2C4_H + +// <<< Use Configuration Wizard in Context Menu >>> +// Bootloader Interface Trust Zone Security State Configuration + +// Disable multi tiered fallback logic +// The fault handling logic as well as the USART auto-detection logic will be disabled. +// The re-configuration of SMU will be handled by querying the running bootloader +// for the peripheral list. Querying the peripheral list is supported from the bootloader +// version 2.0.0. Check for the BOOTLOADER_CAPABILITY_PERIPHERAL_LIST capability to +// see if the running bootloader supports querying the peripheral list. +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 0 + +// Disable peripheral access fault handling +// The fault handling triggered by an erroneous access of peripherals will be disabled. +// +// This should be disabled iff all the peripherals that are in use by the bootloader +// have been properly configured by the "Manually override security state of peripherals" option. +#define BOOTLOADER_DISABLE_NVM3_FAULT_HANDLING 0 + +// Manually override the security state of peripherals in use by the bootloader +// Default: 0. +// Manually override the security state of peripherals. Choose the peripherals touched +// by the customized code to have a valid secure access state before interacting with the bootloader +// In practice, this means that the chosen peripherals will be available at the secure address, +// which is accessible by the bootloader. Once the application is entered back the secure access state +// is changed back to the original state. +// +// The USART auto-detection logic that detects which, if any, USART is in use by the bootloader +// will be disabled. Make sure to choose the correct USART used by the bootloader. +#define BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE 0 +// EMU +// Update secure access state of EMU before calling into bootloader +#define BOOTLOADER_PPUSATD0_EMU 0 + +// CMU +// Update secure access state of CMU before calling into bootloader +#define BOOTLOADER_PPUSATD0_CMU 0 + +// HFRCO0 +// Update secure access state of HFRCO0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_HFRCO0 0 + +// FSRCO +// Update secure access state of FSRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_FSRCO 0 + +// DPLL0 +// Update secure access state of DPLL0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_DPLL0 0 + +// LFXO +// Update secure access state of LFXO before calling into bootloader +#define BOOTLOADER_PPUSATD0_LFXO 0 + +// LFRCO +// Update secure access state of LFRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_LFRCO 0 + +// ULFRCO +// Update secure access state of ULFRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_ULFRCO 0 + +// MSC +// Update secure access state of MSC before calling into bootloader +#define BOOTLOADER_PPUSATD0_MSC 0 + +// ICACHE0 +// Update secure access state of ICACHE0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_ICACHE0 0 + +// PRS +// Update secure access state of PRS before calling into bootloader +#define BOOTLOADER_PPUSATD0_PRS 0 + +// GPIO +// Update secure access state of GPIO before calling into bootloader +#define BOOTLOADER_PPUSATD0_GPIO 0 + +// LDMA +// Update secure access state of LDMA before calling into bootloader +#define BOOTLOADER_PPUSATD0_LDMA 0 + +// LDMAXBAR +// Update secure access state of LDMAXBAR before calling into bootloader +#define BOOTLOADER_PPUSATD0_LDMAXBAR 0 + +// TIMER0 +// Update secure access state of TIMER0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER0 0 + +// TIMER1 +// Update secure access state of TIMER1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER1 0 + +// TIMER2 +// Update secure access state of TIMER2 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER2 0 + +// TIMER3 +// Update secure access state of TIMER3 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER3 0 + +// TIMER4 +// Update secure access state of TIMER4 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER4 0 + +// USART0 +// Update secure access state of USART0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_USART0 0 + +// BURTC +// Update secure access state of BURTC before calling into bootloader +#define BOOTLOADER_PPUSATD0_BURTC 0 + +// I2C1 +// Update secure access state of I2C1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_I2C1 0 + +// CHIPTESTCTRL +// Update secure access state of CHIPTESTCTRL before calling into bootloader +#define BOOTLOADER_PPUSATD0_CHIPTESTCTRL 0 + +// SYSCFGCFGNS +// Update secure access state of SYSCFGCFGNS before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSCFGCFGNS 0 + +// SYSCFG +// Update secure access state of SYSCFG before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSCFG 0 + +// BURAM +// Update secure access state of BURAM before calling into bootloader +#define BOOTLOADER_PPUSATD0_BURAM 0 + +// GPCRC +// Update secure access state of GPCRC before calling into bootloader +#define BOOTLOADER_PPUSATD0_GPCRC 0 + +// DCDC +// Update secure access state of DCDC before calling into bootloader +#define BOOTLOADER_PPUSATD0_DCDC 0 + +// HOSTMAILBOX +// Update secure access state of HOSTMAILBOX before calling into bootloader +#define BOOTLOADER_PPUSATD0_HOSTMAILBOX 0 + +// EUSART1 +// Update secure access state of EUSART1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_EUSART1 0 + +// SYSRTC +// Update secure access state of SYSRTC before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSRTC 0 + +// KEYSCAN +// Update secure access state of KEYSCAN before calling into bootloader +#define BOOTLOADER_PPUSATD1_KEYSCAN 0 + +// DMEM +// Update secure access state of DMEM before calling into bootloader +#define BOOTLOADER_PPUSATD1_DMEM 0 + +// RADIOAES +// Update secure access state of RADIOAES before calling into bootloader +#define BOOTLOADER_PPUSATD1_RADIOAES 0 + +// SMU +// Update secure access state of SMU before calling into bootloader +#define BOOTLOADER_PPUSATD1_SMU 0 + +// SMUCFGNS +// Update secure access state of SMUCFGNS before calling into bootloader +#define BOOTLOADER_PPUSATD1_SMUCFGNS 0 + +// LETIMER0 +// Update secure access state of LETIMER0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_LETIMER0 0 + +// IADC0 +// Update secure access state of IADC0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_IADC0 0 + +// ACMP0 +// Update secure access state of ACMP0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_ACMP0 0 + +// ACMP1 +// Update secure access state of ACMP1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_ACMP1 0 + +// AMUXCP0 +// Update secure access state of AMUXCP0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_AMUXCP0 0 + +// VDAC0 +// Update secure access state of VDAC0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_VDAC0 0 + +// VDAC1 +// Update secure access state of VDAC1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_VDAC1 0 + +// PCNT +// Update secure access state of PCNT before calling into bootloader +#define BOOTLOADER_PPUSATD1_PCNT 0 + +// HFRCO1 +// Update secure access state of HFRCO1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_HFRCO1 0 + +// HFXO0 +// Update secure access state of HFXO0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_HFXO0 0 + +// I2C0 +// Update secure access state of I2C0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_I2C0 0 + +// WDOG0 +// Update secure access state of WDOG0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_WDOG0 0 + +// WDOG1 +// Update secure access state of WDOG1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_WDOG1 0 + +// EUSART0 +// Update secure access state of EUSART0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_EUSART0 0 + +// SEMAILBOX +// Update secure access state of SEMAILBOX before calling into bootloader +#define BOOTLOADER_PPUSATD1_SEMAILBOX 0 + +// MVP +// Update secure access state of MVP before calling into bootloader +#define BOOTLOADER_PPUSATD1_MVP 0 + +// AHBRADIO +// Update secure access state of AHBRADIO before calling into bootloader +#define BOOTLOADER_PPUSATD1_AHBRADIO 0 +// + +// +// <<< end of configuration section >>> + +#if BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE == 1 +#define BOOTLOADER_PPUSATD0_MASK ((BOOTLOADER_PPUSATD0_EMU << _SMU_PPUSATD0_EMU_SHIFT) \ + | (BOOTLOADER_PPUSATD0_CMU << _SMU_PPUSATD0_CMU_SHIFT) \ + | (BOOTLOADER_PPUSATD0_HFRCO0 << _SMU_PPUSATD0_HFRCO0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_FSRCO << _SMU_PPUSATD0_FSRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_DPLL0 << _SMU_PPUSATD0_DPLL0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LFXO << _SMU_PPUSATD0_LFXO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LFRCO << _SMU_PPUSATD0_LFRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_ULFRCO << _SMU_PPUSATD0_ULFRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_MSC << _SMU_PPUSATD0_MSC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_ICACHE0 << _SMU_PPUSATD0_ICACHE0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_PRS << _SMU_PPUSATD0_PRS_SHIFT) \ + | (BOOTLOADER_PPUSATD0_GPIO << _SMU_PPUSATD0_GPIO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LDMA << _SMU_PPUSATD0_LDMA_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LDMAXBAR << _SMU_PPUSATD0_LDMAXBAR_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER0 << _SMU_PPUSATD0_TIMER0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER1 << _SMU_PPUSATD0_TIMER1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER2 << _SMU_PPUSATD0_TIMER2_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER3 << _SMU_PPUSATD0_TIMER3_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER4 << _SMU_PPUSATD0_TIMER4_SHIFT) \ + | (BOOTLOADER_PPUSATD0_USART0 << _SMU_PPUSATD0_USART0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_BURTC << _SMU_PPUSATD0_BURTC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_I2C1 << _SMU_PPUSATD0_I2C1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_CHIPTESTCTRL << _SMU_PPUSATD0_CHIPTESTCTRL_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSCFGCFGNS << _SMU_PPUSATD0_SYSCFGCFGNS_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSCFG << _SMU_PPUSATD0_SYSCFG_SHIFT) \ + | (BOOTLOADER_PPUSATD0_BURAM << _SMU_PPUSATD0_BURAM_SHIFT) \ + | (BOOTLOADER_PPUSATD0_GPCRC << _SMU_PPUSATD0_GPCRC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_DCDC << _SMU_PPUSATD0_DCDC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_HOSTMAILBOX << _SMU_PPUSATD0_HOSTMAILBOX_SHIFT) \ + | (BOOTLOADER_PPUSATD0_EUSART1 << _SMU_PPUSATD0_EUSART1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSRTC << _SMU_PPUSATD0_SYSRTC_SHIFT)) +#define BOOTLOADER_PPUSATD1_MASK ((BOOTLOADER_PPUSATD1_KEYSCAN << _SMU_PPUSATD1_KEYSCAN_SHIFT) \ + | (BOOTLOADER_PPUSATD1_DMEM << _SMU_PPUSATD1_DMEM_SHIFT) \ + | (BOOTLOADER_PPUSATD1_RADIOAES << _SMU_PPUSATD1_RADIOAES_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SMU << _SMU_PPUSATD1_SMU_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SMUCFGNS << _SMU_PPUSATD1_SMUCFGNS_SHIFT) \ + | (BOOTLOADER_PPUSATD1_LETIMER0 << _SMU_PPUSATD1_LETIMER0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_IADC0 << _SMU_PPUSATD1_IADC0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_ACMP0 << _SMU_PPUSATD1_ACMP0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_ACMP1 << _SMU_PPUSATD1_ACMP1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_AMUXCP0 << _SMU_PPUSATD1_AMUXCP0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_VDAC0 << _SMU_PPUSATD1_VDAC0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_VDAC1 << _SMU_PPUSATD1_VDAC1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_PCNT << _SMU_PPUSATD1_PCNT_SHIFT) \ + | (BOOTLOADER_PPUSATD1_HFRCO1 << _SMU_PPUSATD1_HFRCO1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_HFXO0 << _SMU_PPUSATD1_HFXO0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_I2C0 << _SMU_PPUSATD1_I2C0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_WDOG0 << _SMU_PPUSATD1_WDOG0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_WDOG1 << _SMU_PPUSATD1_WDOG1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_EUSART0 << _SMU_PPUSATD1_EUSART0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SEMAILBOX << _SMU_PPUSATD1_SEMAILBOX_SHIFT) \ + | (BOOTLOADER_PPUSATD1_MVP << _SMU_PPUSATD1_MVP_SHIFT) \ + | (BOOTLOADER_PPUSATD1_AHBRADIO << _SMU_PPUSATD1_AHBRADIO_SHIFT)) +#endif // BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE + +#endif // BTL_INTERFACE_CFG_S2C4_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/buffer_pool_allocator_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/buffer_pool_allocator_config.h index 2c3fd2e67..9a96fedf3 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/buffer_pool_allocator_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/buffer_pool_allocator_config.h @@ -27,3 +27,4 @@ // <<< end of configuration section >>> #endif // __BUFFER_POOL_ALLOCATOR_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/circular_queue_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/circular_queue_config.h index 81a7173d6..fe1ba75d3 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/circular_queue_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/circular_queue_config.h @@ -21,3 +21,4 @@ // <<< end of configuration section >>> #endif // __CIRCULAR_QUEUE_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/dmadrv_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/dmadrv_config.h index ed105e4f3..dd58324d7 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/dmadrv_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/dmadrv_config.h @@ -24,3 +24,4 @@ // <<< end of configuration section >>> #endif // DMADRV_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/nvm3_default_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/nvm3_default_config.h index 2bf415f94..95cdbb7f5 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/nvm3_default_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/nvm3_default_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif // NVM3_DEFAULT_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_802154_radio_priority_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_802154_radio_priority_config.h index 77334ba2c..cc09e8ca9 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_802154_radio_priority_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_802154_radio_priority_config.h @@ -55,3 +55,4 @@ // <<< end of configuration section >>> #endif //__SL_802154_RADIO_PRIORITY_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_bgapi_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_bgapi_config.h index 1ae43b6b5..522d1c904 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_bgapi_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_bgapi_config.h @@ -41,3 +41,4 @@ // <<< end of configuration section >>> #endif // SL_BGAPI_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_bluetooth_advertiser_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_bluetooth_advertiser_config.h index 00163cd9a..7cac58bfe 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_bluetooth_advertiser_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_bluetooth_advertiser_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_bluetooth_connection_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_bluetooth_common_config.h similarity index 60% rename from board-support/efr32/efr32mg24/BRD4187A/config/sl_bluetooth_connection_config.h rename to board-support/efr32/efr32mg24/BRD2703A/config/sl_bluetooth_common_config.h index 73a382509..55c3749d5 100644 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_bluetooth_connection_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_bluetooth_common_config.h @@ -1,9 +1,9 @@ /***************************************************************************//** - * @file - * @brief Bluetooth Connection configuration + * @file sl_bluetooth_common_config.h + * @brief Bluetooth Common configuration ******************************************************************************* * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com ******************************************************************************* * * SPDX-License-Identifier: Zlib @@ -28,21 +28,26 @@ * ******************************************************************************/ -#ifndef SL_BT_CONNECTION_CONFIG_H -#define SL_BT_CONNECTION_CONFIG_H +#ifndef SL_BLUETOOTH_COMMON_CONFIG_H +#define SL_BLUETOOTH_COMMON_CONFIG_H // <<< Use Configuration Wizard in Context Menu >>> -// Max number of connections reserved for user <0-32> -// Default: 4 -// Define the number of connections the application needs. -#define SL_BT_CONFIG_MAX_CONNECTIONS (4) - -// Preferred maximum TX payload octets <27-251> -// Default: 251 -// Define the preferred maximum TX payload octets that will be used on connections. -// This value is set to the controller as the default suggested data length when -// Bluetooth stack is started. -#define SL_BT_CONFIG_CONNECTION_DATA_LENGTH (251) -// <<< end of configuration section >>> +// Bluetooth Common Configuration + +// Buffer memory size for Bluetooth +// Default: 3150 +// Define the buffer memory size for buffering data over Bluetooth connections, advertising +// and scanning. The default value is an estimation for achieving adequate throughput +// and supporting multiple simultaneous connections. Consider increasing this value for +// higher data throughput over connections, advertising or scanning long advertisement data. +#ifndef SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE +#define SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE (3150) #endif + +// Bluetooth Common Configuration + +// <<< end of configuration section >>> + +#endif // SL_BLUETOOTH_COMMON_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_bluetooth_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_bluetooth_config.h index 93bfbbcc4..cfaaef06d 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_bluetooth_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_bluetooth_config.h @@ -66,6 +66,9 @@ // advertising and scanning. The default value is an estimation for achieving adequate throughput // and supporting multiple simultaneous connections. Consider increasing this value for // higher data throughput over connections, advertising or scanning long advertisement data. +// NOTE: SL_BT_CONFIG_BUFFER_SIZE is deprecated in Simplicity SDK Suite v2026.6.0 and marked +// for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONFIG_BUFFER_SIZE is replaced by +// SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #define SL_BT_CONFIG_BUFFER_SIZE (3150) // Enable using a custom Bluetooth address stored in NVM3 @@ -124,11 +127,23 @@ // A negative value indicates some power loss in the path. For example, // with radiated TX power set to +10 dBm and this configuration to -10 // (i.e., 1 dBm loss), the transmitter output power will be set to +11 dBm. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_TX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_TX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_TX (0) // RF RX path gain in 0.1dBm unit // Default: 0 // RX RF path gain is used to compensate the RSSI reports from the Bluetooth Stack. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_RX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_RX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_RX (0) // End RF Path @@ -161,8 +176,6 @@ #include "sl_bt_stack_config.h" #include "sl_bgapi_config.h" // For SL_BGAPI_MAX_PAYLOAD_SIZE -// NOTE: Struct sl_btctrl_ll_priorities is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// The Link Layer scheduler priority configuration is initialized via the Bluetooth Low Energy Controller component. #define SL_BT_CONFIG_DEFAULT \ { \ .config_flags = SL_BT_CONFIG_FLAGS, \ @@ -179,3 +192,4 @@ } #endif // SL_BLUETOOTH_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_bluetooth_connection_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_bluetooth_connection_config.h index 73a382509..08bc34759 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_bluetooth_connection_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_bluetooth_connection_config.h @@ -46,3 +46,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_bt_rtos_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_bt_rtos_config.h index b80c07967..fec091919 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_bt_rtos_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_bt_rtos_config.h @@ -42,3 +42,4 @@ #endif #endif // SL_BT_RTOS_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_bt_rtos_config_s2.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_bt_rtos_config_s2.h index eb4fe3ea2..bc4c37420 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_bt_rtos_config_s2.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_bt_rtos_config_s2.h @@ -82,3 +82,4 @@ // <<< end of configuration section >>> #endif // SL_BT_RTOS_CONFIG_S2_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_btctrl_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_btctrl_config.h index 403df1ffe..8dfdb6281 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_btctrl_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_btctrl_config.h @@ -7,7 +7,10 @@ // Bluetooth Controller Buffer Memory // Default: SL_BT_CONTROLLER_BUFFER_MEMORY -// Define the Amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// Define the amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// NOTE: SL_BT_CONTROLLER_BUFFER_MEMORY is deprecated in Simplicity SDK Suite v2026.6.0 and +// marked for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONTROLLER_BUFFER_MEMORY is +// replaced by SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #ifndef SL_BT_CONTROLLER_BUFFER_MEMORY #define SL_BT_CONTROLLER_BUFFER_MEMORY (8192) #endif @@ -64,7 +67,7 @@ #define SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE (0) #endif -// Minimum radiated TX power level in 0.1dBm unit +// Minimum radiated TX power level in 0.1dBm units // Default: 0 // Define the minimum radiated TX power level. // If the configured power level is lower than what the radio supports, the minimum supported level will be used. @@ -83,7 +86,7 @@ #define SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE (0) #endif -// Maximum radiated TX power level in 0.1dBm unit +// Maximum radiated TX power level in 0.1dBm units // Default: 0 // Define the maximum radiated TX power level. // If the configured power level is higher than what the radio supports, the maximum supported level will be used. @@ -97,6 +100,28 @@ // End TX Power Levels +// RF Path + +// TX RF path gain in 0.1dB units +// Default: 0 +// The Bluetooth controller takes TX RF path gain into account when adjusting transmitter +// output power. Power radiated from the antenna then matches the application request. +// A negative value indicates some power loss in the path. For example, +// with radiated TX power set to +10 dBm and this configuration to -10 +// (i.e., 1 dB loss), the transmitter output power will be set to +11 dBm. +#ifndef SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB (0) +#endif + +// RX RF path gain in 0.1dB units +// Default: 0 +// RX RF path gain is used to compensate the RSSI reports received by the Bluetooth controller. +#ifndef SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB (0) +#endif + +// End RF Path + // Bluetooth Controller Configuration for LE Connection // Total transmitted packets threshold for all connections to send the Number Of Completed Packets HCI event to the host <1-255> // Default: 4 @@ -136,16 +161,6 @@ #define SL_BT_CONTROLLER_USE_LEGACY_VENDOR_SPECIFIC_EVENT_CODE (0) #endif -// Adaptive Frequency Hopping operation mode -// Active AFH -// Passive AFH -// Choose between active AFH and passive AFH -// Default: Active AFH -// SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY -#ifndef SL_BT_CONTROLLER_ADAPTIVITY_MODE -#define SL_BT_CONTROLLER_ADAPTIVITY_MODE (SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY) -#endif - // Advertising Configuration // Include TX Power in the extended header of primary extended advertising packets // This is default setting to all advertising sets unless it is specifically overridden by VS_SiliconLabs_Set_Advertising_Config_Bits. @@ -172,3 +187,4 @@ // <<< end of configuration section >>> #endif // SL_BTCTRL_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_btctrl_scheduler_priority_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_btctrl_scheduler_priority_config.h index 0eec28095..fd0e66f83 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_btctrl_scheduler_priority_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_btctrl_scheduler_priority_config.h @@ -146,7 +146,7 @@ // Rail Mapping Window Min // <0-255:1> -// Default: 16 +// Default: 32 // Define the minimum value of RAIL mapping window. // This parameter specifies how task priorities are passed to radio // coexistence and multiprotocol schedulers. @@ -157,17 +157,17 @@ // If coexistence or multiprotocol configuration is not used, then these // parameters have no effect. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 16 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 32 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN // Rail Mapping Window Range // <0-255:1> -// Default: 32 +// Default: 16 // Define the maximum value of the RAIL mapping window. // See SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN for a description of // this parameter. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 32 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 16 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX // PAwR Tx - Min @@ -220,9 +220,9 @@ .conn_max = SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX, \ .init_min = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN, \ .init_max = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX, \ - .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN, \ - .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX \ - - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN), \ + .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX, \ + .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN \ + - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX), \ 0, \ .adv_step = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP, \ .scan_step = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP, \ @@ -233,3 +233,4 @@ } #endif // SL_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_clock_manager_oscillator_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_clock_manager_oscillator_config.h index 98bc35d8f..4ff39587d 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_clock_manager_oscillator_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_clock_manager_oscillator_config.h @@ -374,3 +374,4 @@ // <<< sl:end pin_tool >>> #endif /* SL_CLOCK_MANAGER_OSCILLATOR_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_clock_manager_tree_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_clock_manager_tree_config.h index 1f6f2a089..1a05181af 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_clock_manager_tree_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_clock_manager_tree_config.h @@ -307,3 +307,4 @@ #endif /* SL_CLOCK_MANAGER_TREE_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_core_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_core_config.h index 27b173d2e..16d372fcf 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_core_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_core_config.h @@ -42,3 +42,4 @@ // <<< end of configuration section >>> #endif // SL_CORE_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_device_init_dcdc_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_device_init_dcdc_config.h index 4fb88397d..a14fce6d9 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_device_init_dcdc_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_device_init_dcdc_config.h @@ -56,3 +56,4 @@ // <<< end of configuration section >>> #endif // SL_DEVICE_INIT_DCDC_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_gp_interface_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_gp_interface_config.h index fd5aa20ea..0624696f3 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_gp_interface_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_gp_interface_config.h @@ -42,3 +42,4 @@ #define GP_TX_MAX_TIMEOUT_IN_MICRO_SECONDS 5000000 // // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_hfxo_manager_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_hfxo_manager_config.h index d9ccd3c70..87afc3778 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_hfxo_manager_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_hfxo_manager_config.h @@ -54,3 +54,4 @@ #endif /* SL_HFXO_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_main_start_task_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_main_start_task_config.h index 7752c098f..7cc81a4da 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_main_start_task_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_main_start_task_config.h @@ -103,3 +103,4 @@ #endif /* SL_MAIN_START_TASK_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_memory_manager_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_memory_manager_config.h index 4a16c29fe..02af7ec0c 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_memory_manager_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_memory_manager_config.h @@ -47,6 +47,12 @@ // Default: 1 #define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 +// Enables the double free protection for the pool. +// Setting this configuration to 0 will disable the double free protection for the memory pool. saving ~100 bytes of code. +// This setting has no effect on the memory pools power aware version. +// Default: 1 +#define SL_MEMORY_MANAGER_POOL_DOUBLE_FREE_PROTECTION_ENABLE 1 + // // <<< end of configuration section >>> @@ -58,4 +64,13 @@ // Default: 1 #define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 +// Enables retention statistics (retained size, retained high watermark, bank counts). +// Requires bank-retention hardware on the target; SL_CATALOG_BANK_RETENTION_CONTROL_* is defined only for devices that implement it (not every part or kit). +// Software configuration alone cannot add bank retention where the silicon has no such feature. +// Independent of heap statistics (SL_MEMORY_MANAGER_STATISTICS_API_ENABLE). +// When disabled, retention getters return (size_t)-1 or SL_STATUS_NOT_AVAILABLE. +// Default: 0. +#define SL_MEMORY_MANAGER_STATISTICS_RETENTION_ENABLE 0 + #endif /* SL_MEMORY_MANAGER_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_memory_manager_region_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_memory_manager_region_config.h index bd640b59b..a0a4007e7 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_memory_manager_region_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_memory_manager_region_config.h @@ -49,3 +49,4 @@ // <<< end of configuration section >>> #endif /* SL_MEMORY_MANAGER_REGION_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_openthread_features_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_openthread_features_config.h index a3697f8af..054fb51b4 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_openthread_features_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_openthread_features_config.h @@ -200,24 +200,31 @@ #endif // // IPv6 Limits -// Maximum IPv6 external unicast addresses +// Runtime IPv6 external address pools +// Enable runtime configuration of external unicast and multicast address pools via otIp6Init(). +#ifndef OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +#define OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE 0 +#endif +#if OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +// CLI support for runtime IPv6 external address pools +// Enable `ifconfig init` CLI command for testing otIp6Init() pool configuration. +#ifndef OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE +#define OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE 1 +#endif +// +#else +// Maximum IPv6 external unicast addresses (ignored in runtime mode) // Maximum number of IPv6 unicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS 4 #endif -// Maximum IPv6 external multicast addresses +// Maximum IPv6 external multicast addresses (ignored in runtime mode) // Maximum number of IPv6 multicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS 4 #endif -// Maximum IPv6 address registrations for MTD -// The maximum number of IPv6 address registrations for MTD. -// If left unchanged will default to the value of OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD -// 4 -#ifndef OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER -#define OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER (OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD) #endif // // Jam Detection @@ -286,37 +293,13 @@ #ifndef OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM #define OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM 2 #endif +// Instance-aware platform logging API +#ifndef OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE +#define OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE 0 +#endif +// // // -// Define maximum total source match table entries for both OT and Zigbee. -// In multi-instance builds (SoC or RCP/host), table must support all OT instances + Zigbee. -// For single instance (default), table sized to just OT children. -// This value is used to size all source match tables in both OT and Zigbee code. -// Note: this is purposedly not being setup with CMSIS annotations. -#ifndef RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE -#if SL_ZIGBEE_MAX_END_DEVICE_CHILDREN -// Multipan / DMP case: OT + Zigbee -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - ((OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * (OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM - 1)) \ - + SL_ZIGBEE_MAX_END_DEVICE_CHILDREN) -#else -// Multi-instance OT-only case -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - (OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM) -#endif -#else -// Single-instance OT (SoC / NCP / non-multipan RCP) -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES OPENTHREAD_CONFIG_MLE_MAX_CHILDREN -#endif -#endif -// Spinel Match Table -// Maximum number of spinel source match table entries -// Ensure that this value is the total of the number of openthread children times the number of openthread instances plus the number of Zigbee children. -#ifndef OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES -#define OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#endif -// // OTNS (OpenThread Network Simulator) #ifndef OPENTHREAD_CONFIG_OTNS_ENABLE #define OPENTHREAD_CONFIG_OTNS_ENABLE 0 @@ -379,6 +362,40 @@ #define OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE 1 #endif // +// Vendor Name string +// Vendor Name string +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +#if OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE +// Default: "RD:Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "RD:Silicon Labs" +#else +// Default: "Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "Silicon Labs" +#endif +#endif // OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +// Vendor Model string +// Vendor Model string +// Default: "OpenThread" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL "OpenThread" +#endif +// Vendor SW Version string +// Vendor SW Version string +// Default: "3.1.0.0" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION "3.1.0.0" +#endif +// Vendor App URL string +// Vendor App URL string +// Default: "www.silabs.com" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL "www.silabs.com" +#endif +// Run-time configuration of Vendor Info +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE 1 +#endif +// // Time Synchronization Service #ifndef OPENTHREAD_CONFIG_TIME_SYNC_ENABLE #define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 0 @@ -399,6 +416,11 @@ #define OPENTHREAD_CONFIG_MAC_BEACON_PAYLOAD_PARSING_ENABLE 1 #endif // +// Log crash dump after initialization +#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE +#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 +#endif +// // Radio Driver RX buffers // Maximum number of RX buffers // The maximum number of RX buffers to use in the radio driver. @@ -408,66 +430,7 @@ #endif // // -// Logging -// LOG_OUTPUT -// NONE -// APP -// PLATFORM_DEFINED -// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP -// OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT -#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#endif - -// DYNAMIC_LOG_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE -#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 -#endif - -// Enable Logging -#define OPENTHREAD_FULL_LOGS_ENABLE 0 -#if OPENTHREAD_FULL_LOGS_ENABLE - -// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. -// LOG_LEVEL -// NONE -// CRIT -// WARN -// NOTE -// INFO -// DEBG -// Default: OT_LOG_LEVEL_DEBG -// OT_LOG_LEVEL_DEBG -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL -#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG -#endif -// CLI -#ifndef OPENTHREAD_CONFIG_LOG_CLI -#define OPENTHREAD_CONFIG_LOG_CLI 1 -#endif -// PKT_DUMP -#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP -#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 -#endif -// PLATFORM -#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM -#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 -#endif -// PREPEND_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL -#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 -#endif - -#endif // OPENTHREAD_FULL_LOGS_ENABLE - -// Log crash dump after initialization -#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE -#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 -#endif - -// -// -// // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_FEATURES_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_openthread_log_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_openthread_log_config.h new file mode 100644 index 000000000..420892125 --- /dev/null +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_openthread_log_config.h @@ -0,0 +1,89 @@ +/******************************************************************************* + * @file + * @brief OpenThread log configuration file. + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_OPENTHREAD_LOG_CONFIG_H +#define _SL_OPENTHREAD_LOG_CONFIG_H + +//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- +// Logging +// LOG_OUTPUT +// NONE +// APP +// PLATFORM_DEFINED +// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP +// OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT +#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#endif + +// DYNAMIC_LOG_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE +#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 +#endif + +// Enable Logging +#define OPENTHREAD_FULL_LOGS_ENABLE 0 +#if OPENTHREAD_FULL_LOGS_ENABLE +// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. +// LOG_LEVEL +// NONE +// CRIT +// WARN +// NOTE +// INFO +// DEBG +// Default: OT_LOG_LEVEL_DEBG +// OT_LOG_LEVEL_DEBG +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL +#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG +#endif +// CLI +#ifndef OPENTHREAD_CONFIG_LOG_CLI +#define OPENTHREAD_CONFIG_LOG_CLI 1 +#endif +// PKT_DUMP +#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP +#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 +#endif +// PLATFORM +#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM +#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 +#endif +// PREPEND_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL +#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 +#endif +// +#endif // OPENTHREAD_FULL_LOGS_ENABLE +// +// +// <<< end of configuration section >>> +#endif // _SL_OPENTHREAD_LOG_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_openthread_radio_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_openthread_radio_config.h index 478a72430..1735c91c6 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_openthread_radio_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_openthread_radio_config.h @@ -40,6 +40,11 @@ #define SL_OPENTHREAD_RSSI_AVERAGING_TIME 16 // us // RSSI Average Timeout [us] #define SL_OPENTHREAD_RSSI_AVERAGING_TIMEOUT 300 // us +// Debug Counters Support +#ifndef RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT +#define RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT 0 // Set to 1 to enable debug counters in radio.c +#endif // // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_RADIO_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_openthread_rtos_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_openthread_rtos_config.h index 6dc710fcc..16a2b1709 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_openthread_rtos_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_openthread_rtos_config.h @@ -72,18 +72,10 @@ #define SL_OPENTHREAD_APP_TASK_MEM_SIZE (4608) // OpenThread serial task stack size in bytes <1000-20000> -// Default: 3072 +// Default: 3840 // Defines the stack size of the OpenThread RTOS serial task. The value is in bytes and // and will be word aligned when it is applied at the task creation. -#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3072) - -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread serial task prority -// Default: 16 (CMSIS-RTOS2 osPriorityBelowNormal) -// Defines OpenThread serial task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_SERIAL_TASK_PRIORITY (16) +#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3840) // // App Task @@ -107,3 +99,4 @@ // // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_power_manager_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_power_manager_config.h index 86b9fef27..1c71950d9 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_power_manager_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_power_manager_config.h @@ -98,3 +98,4 @@ #endif /* SL_POWER_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_pa_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_pa_config.h index 6aea4c59d..e4d846db2 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_pa_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_pa_config.h @@ -81,3 +81,4 @@ // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_PA_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_pa_tables_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_pa_tables_config.h index bd05ea57d..9a895fd24 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_pa_tables_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_pa_tables_config.h @@ -47,3 +47,4 @@ #include SL_RAIL_UTIL_PA_TABLE_HEADER #endif // SL_RAIL_UTIL_PA_TABLES_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_power_manager_init_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_power_manager_init_config.h index cbc69f24d..bcc7596c5 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_power_manager_init_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_power_manager_init_config.h @@ -42,3 +42,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_rssi_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_rssi_config.h index 128d705f5..d706e8785 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_rssi_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_rssi_config.h @@ -46,3 +46,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_RSSI_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_sequencer_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_sequencer_config.h index 640ef0c0d..02977b219 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_sequencer_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_rail_util_sequencer_config.h @@ -44,3 +44,4 @@ extern "C" { #endif #endif // SL_RAIL_UTIL_SEQUENCER_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_simple_button_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_simple_button_config.h index 531f4f208..4cd53a96b 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_simple_button_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_simple_button_config.h @@ -70,3 +70,4 @@ // <<< end of configuration section >>> #endif // SL_SIMPLE_BUTTON_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/sl_sleeptimer_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/sl_sleeptimer_config.h index 8344ef5f1..c638bfeed 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/sl_sleeptimer_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/sl_sleeptimer_config.h @@ -52,6 +52,7 @@ // WTIMER // TIMER // Selection of the Timer Peripheral Used by the Sleeptimer +// If BURTC is needed as an EM4 wake-up source, it must not be used by Sleeptimer. #define SL_SLEEPTIMER_PERIPHERAL SL_SLEEPTIMER_PERIPHERAL_DEFAULT // TIMER/WTIMER Instance Used by Sleeptimer (not applicable for other peripherals) @@ -80,3 +81,4 @@ #endif /* SLEEPTIMER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD2703A/config/uartdrv_config.h b/board-support/efr32/efr32mg24/BRD2703A/config/uartdrv_config.h index f41b347e1..b0fc7f703 100644 --- a/board-support/efr32/efr32mg24/BRD2703A/config/uartdrv_config.h +++ b/board-support/efr32/efr32mg24/BRD2703A/config/uartdrv_config.h @@ -121,3 +121,4 @@ /** @} (end addtogroup uartdrv) */ #endif /* __SILICON_LABS_UARTDRV_CONFIG_H__ */ + diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/RTE_Components.h b/board-support/efr32/efr32mg24/BRD4186A/autogen/RTE_Components.h deleted file mode 100644 index 6531f566c..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/RTE_Components.h +++ /dev/null @@ -1,34 +0,0 @@ -// 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 */ - diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/gatt_db.c b/board-support/efr32/efr32mg24/BRD4186A/autogen/gatt_db.c deleted file mode 100644 index bac66e37b..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/gatt_db.c +++ /dev/null @@ -1,149 +0,0 @@ -/******************************************************************** - * Autogenerated file, do not edit. - *******************************************************************/ - -#include -#include "sli_bt_gattdb_def.h" - -#define GATT_HEADER(F) F -#define GATT_DATA(F) F -GATT_DATA(const uint16_t gattdb_uuidtable_16_map[]) = -{ - 0x2800, - 0x2801, - 0x2803, - 0x2a00, - 0x2a01, - 0x2a29, - 0x2a24, - 0x2a23, - 0x2a05, - 0x2b2a, - 0x2b29, - 0x2902, -}; - -GATT_DATA(const uint8_t gattdb_uuidtable_128_map[]) = -{ - 0x11, 0x9d, 0x9f, 0x42, 0x9c, 0x4f, 0x9f, 0x95, 0x59, 0x45, 0x3d, 0x26, 0xf5, 0x2e, 0xee, 0x18, - 0x12, 0x9d, 0x9f, 0x42, 0x9c, 0x4f, 0x9f, 0x95, 0x59, 0x45, 0x3d, 0x26, 0xf5, 0x2e, 0xee, 0x18, - 0x04, 0x8f, 0x21, 0x83, 0x8a, 0x74, 0x7d, 0xb8, 0xf2, 0x45, 0x72, 0x87, 0x38, 0x02, 0x63, 0x64, -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_27) = { - .properties = 0x2e, - .max_len = 512, - .len = 1, - .data = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, } -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_24) = { - .properties = 0x2e, - .max_len = 247, - .len = 1, - .data = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, } -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_22) = { - .properties = 0x0a, - .max_len = 247, - .len = 1, - .data = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, } -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_20) = { - .len = 2, - .data = { 0xf6, 0xff, } -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_19) = { - .len = 6, - .data = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, } -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_17) = { - .len = 10, - .data = { 0x42, 0x6c, 0x75, 0x65, 0x20, 0x47, 0x65, 0x63, 0x6b, 0x6f, } -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_15) = { - .len = 12, - .data = { 0x53, 0x69, 0x6c, 0x69, 0x63, 0x6f, 0x6e, 0x20, 0x4c, 0x61, 0x62, 0x73, } -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_13) = { - .len = 2, - .data = { 0x0a, 0x18, } -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_12) = { - .len = 2, - .data = { 0x00, 0x00, } -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_10) = { - .properties = 0x0a, - .max_len = 13, - .data = { 0x45, 0x6d, 0x70, 0x74, 0x79, 0x20, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, }, -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_8) = { - .len = 2, - .data = { 0x00, 0x18, } -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_7) = { - .properties = 0x0a, - .max_len = 1, - .data = { 0x00, }, -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_5) = { - .properties = 0x02, - .max_len = 16, - .data = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }, -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_2) = { - .properties = 0x20, - .max_len = 4, - .data = { 0x00, 0x00, 0x00, 0x00, }, -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_0) = { - .len = 2, - .data = { 0x01, 0x18, } -}; - -GATT_DATA(const sli_bt_gattdb_attribute_t gattdb_attributes_map[]) = { - { .handle = 0x01, .uuid = 0x0000, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_0 }, - { .handle = 0x02, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x20, .char_uuid = 0x0008 } }, - { .handle = 0x03, .uuid = 0x0008, .permissions = 0x800, .caps = 0xffff, .state = 0x00, .datatype = 0x01, .dynamicdata = &gattdb_attribute_field_2 }, - { .handle = 0x04, .uuid = 0x000b, .permissions = 0x803, .caps = 0xffff, .state = 0x00, .datatype = 0x03, .configdata = { .flags = 0x02, .clientconfig_index = 0x00 } }, - { .handle = 0x05, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x02, .char_uuid = 0x0009 } }, - { .handle = 0x06, .uuid = 0x0009, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x01, .dynamicdata = &gattdb_attribute_field_5 }, - { .handle = 0x07, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x0a, .char_uuid = 0x000a } }, - { .handle = 0x08, .uuid = 0x000a, .permissions = 0x803, .caps = 0xffff, .state = 0x00, .datatype = 0x01, .dynamicdata = &gattdb_attribute_field_7 }, - { .handle = 0x09, .uuid = 0x0000, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_8 }, - { .handle = 0x0a, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x0a, .char_uuid = 0x0003 } }, - { .handle = 0x0b, .uuid = 0x0003, .permissions = 0x803, .caps = 0xffff, .state = 0x00, .datatype = 0x01, .dynamicdata = &gattdb_attribute_field_10 }, - { .handle = 0x0c, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x02, .char_uuid = 0x0004 } }, - { .handle = 0x0d, .uuid = 0x0004, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_12 }, - { .handle = 0x0e, .uuid = 0x0000, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_13 }, - { .handle = 0x0f, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x02, .char_uuid = 0x0005 } }, - { .handle = 0x10, .uuid = 0x0005, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_15 }, - { .handle = 0x11, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x02, .char_uuid = 0x0006 } }, - { .handle = 0x12, .uuid = 0x0006, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_17 }, - { .handle = 0x13, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x02, .char_uuid = 0x0007 } }, - { .handle = 0x14, .uuid = 0x0007, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_19 }, - { .handle = 0x15, .uuid = 0x0000, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_20 }, - { .handle = 0x16, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x0a, .char_uuid = 0x8000 } }, - { .handle = 0x17, .uuid = 0x8000, .permissions = 0x803, .caps = 0xffff, .state = 0x00, .datatype = 0x02, .dynamicdata = &gattdb_attribute_field_22 }, - { .handle = 0x18, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x2e, .char_uuid = 0x8001 } }, - { .handle = 0x19, .uuid = 0x8001, .permissions = 0x807, .caps = 0xffff, .state = 0x00, .datatype = 0x02, .dynamicdata = &gattdb_attribute_field_24 }, - { .handle = 0x1a, .uuid = 0x000b, .permissions = 0x803, .caps = 0xffff, .state = 0x00, .datatype = 0x03, .configdata = { .flags = 0x02, .clientconfig_index = 0x01 } }, - { .handle = 0x1b, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x2e, .char_uuid = 0x8002 } }, - { .handle = 0x1c, .uuid = 0x8002, .permissions = 0x807, .caps = 0xffff, .state = 0x00, .datatype = 0x02, .dynamicdata = &gattdb_attribute_field_27 }, - { .handle = 0x1d, .uuid = 0x000b, .permissions = 0x803, .caps = 0xffff, .state = 0x00, .datatype = 0x03, .configdata = { .flags = 0x02, .clientconfig_index = 0x02 } }, -}; - -GATT_HEADER(const sli_bt_gattdb_t gattdb) = { - .attributes = gattdb_attributes_map, - .attribute_table_size = 29, - .attribute_num = 29, - .uuid16 = gattdb_uuidtable_16_map, - .uuid16_table_size = 12, - .uuid16_num = 12, - .uuid128 = gattdb_uuidtable_128_map, - .uuid128_table_size = 3, - .uuid128_num = 3, - .num_ccfg = 3, - .caps_mask = 0xffff, - .enabled_caps = 0xffff, -}; -const sli_bt_gattdb_t *static_gattdb = &gattdb; diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/gatt_db.h b/board-support/efr32/efr32mg24/BRD4186A/autogen/gatt_db.h deleted file mode 100644 index c179e6b28..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/gatt_db.h +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************** - * Autogenerated file, do not edit. - *******************************************************************/ - -#ifndef __GATT_DB_H -#define __GATT_DB_H - -#if __cplusplus -extern "C" { -#endif - -#include "sli_bt_gattdb_def.h" - -extern const sli_bt_gattdb_t gattdb; - -#define gattdb_generic_attribute 1 -#define gattdb_service_changed_char 3 -#define gattdb_database_hash 6 -#define gattdb_client_support_features 8 -#define gattdb_device_name 11 -#define gattdb_CHIPoBLEChar_Rx 23 -#define gattdb_CHIPoBLEChar_Tx 25 -#define gattdb_CHIPoBLEChar_C3 28 - -#define gattdb_generic_attribute_len 2 -#define gattdb_service_changed_char_len 4 -#define gattdb_database_hash_len 16 -#define gattdb_client_support_features_len 1 -#define gattdb_device_name_len 13 -#define gattdb_CHIPoBLEChar_Rx_len 247 -#define gattdb_CHIPoBLEChar_Tx_len 247 -#define gattdb_CHIPoBLEChar_C3_len 512 - -#if __cplusplus -} -#endif - -#endif // __GATT_DB_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_application_type.h b/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_application_type.h deleted file mode 100644 index 4118ef4b9..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_application_type.h +++ /dev/null @@ -1,41 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Autogenerated configuration file for application properties - ******************************************************************************* - * # License - * Copyright 2021 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_APPLICATION_TYPE_H -#define SL_APPLICATION_TYPE_H - -#include "api/application_properties.h" - -// Bitfield representing type of application -#define APPLICATION_TYPE APPLICATION_TYPE_BLUETOOTH_APP | APPLICATION_TYPE_THREAD - - -#endif // SL_APPLICATION_TYPE_H - diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_bluetooth.c b/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_bluetooth.c deleted file mode 100644 index 0a5f1a969..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_bluetooth.c +++ /dev/null @@ -1,94 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth initialization and event processing - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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 -#include "sl_bluetooth.h" -#include "sli_bt_api.h" -#include "sli_bgapi.h" -#include "sl_assert.h" -#include "sl_bt_stack_init.h" -#include "sl_component_catalog.h" - -void sl_bt_init(void) -{ - // Stack initialization could fail, e.g., due to out of memory. - // The failure could not be returned to user as the system initialization - // does not return an error code. Use the EFM_ASSERT to catch the failure, - // which requires either DEBUG_EFM or DEBUG_EFM_USER is defined. - sl_status_t err = sl_bt_stack_init(); - EFM_ASSERT(err == SL_STATUS_OK); -} - -SL_WEAK void sl_bt_on_event(sl_bt_msg_t* evt) -{ - (void)(evt); -} - -void sl_bt_process_event(sl_bt_msg_t *evt) -{ - sl_bt_on_event(evt); -} - -#if !defined(SL_CATALOG_KERNEL_PRESENT) -// When running in an RTOS, the stack events are processed in a dedicated -// event processing task, and these functions are not used at all. - -SL_WEAK bool sl_bt_can_process_event(uint32_t len) -{ - (void)(len); - return true; -} - -void sl_bt_step(void) -{ - sl_bt_msg_t evt; - - // Run the Bluetooth host stack processing step - sl_bt_run(); - - // Check the length of the next event, if any, and verify that the application - // can process it. To prevent data loss, the event will be kept in the stack's - // queue if the application cannot process it at the moment. - size_t event_len = sli_bgapi_device_peek_event_len(&sli_bt_bgapi_device); - if ((event_len == 0) || (!sl_bt_can_process_event(event_len))) { - return; - } - - // Pop the event and process it if successful - sl_status_t status = sli_bgapi_device_pop_event(&sli_bt_bgapi_device, - sizeof(evt), - &evt); - - if (status != SL_STATUS_OK) { - return; - } - sl_bt_process_event(&evt); -} -#endif // !defined(SL_CATALOG_KERNEL_PRESENT) diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_bluetooth.h b/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_bluetooth.h deleted file mode 100644 index 2b284460f..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_bluetooth.h +++ /dev/null @@ -1,73 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth initialization and event processing - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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 BLUETOOTH_H -#define BLUETOOTH_H - -#include -#include "sl_power_manager.h" -#include "sl_bluetooth_config.h" -#include "sl_bt_stack_init.h" -#include "sl_bt_api.h" -#define SL_BT_COMPONENT_ADVERTISERS 0 - -#define SL_BT_COMPONENT_CONNECTIONS 0 - -// Initialize Bluetooth core functionality -void sl_bt_init(void); - -// Polls bluetooth stack for an event and processes it -void sl_bt_step(void); - -/** - * Tell if the application can process a new Bluetooth event in its current - * state, for example, based on resource availability status. - * If true is returned by this function, sl_bt_process_event will be called - * for event processing. Otherwise, the event will be kept in stack's event - * queue until the application can process it. - * - * @note Default implementation of this function returns true. - * Application can override it for own business logic. - * - * @param len Data length of the event - * @return ture if event can be processed; false otherwise - */ -bool sl_bt_can_process_event(uint32_t len); - -// Processes a single bluetooth event -void sl_bt_process_event(sl_bt_msg_t *evt); - -void sl_bt_on_event(sl_bt_msg_t* evt); - -// Power Manager related functions -bool sli_bt_is_ok_to_sleep(void); -sl_power_manager_on_isr_exit_t sli_bt_sleep_on_isr_exit(void); - -#endif // BLUETOOTH_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_board_default_init.c b/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_board_default_init.c deleted file mode 100644 index bd43db368..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_board_default_init.c +++ /dev/null @@ -1,36 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Board Default Init - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_board_control.h" - -void sl_board_default_init(void) -{ - sl_board_disable_vcom(); - -} diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_component_catalog.h b/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_component_catalog.h deleted file mode 100644 index fb05f93bb..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_component_catalog.h +++ /dev/null @@ -1,81 +0,0 @@ -#ifndef SL_COMPONENT_CATALOG_H -#define SL_COMPONENT_CATALOG_H - -// APIs present in project -#define SL_CATALOG_BGAPI_PROTOCOL_PRESENT -#define SL_CATALOG_BGAPI_PROTOCOL_RTOS_ADAPTATION_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_CONNECTION_ROLE_PERIPHERAL_PRESENT -#ifdef SL_BLE_SIDE_CHANNEL_ENABLED -#define SL_CATALOG_BLUETOOTH_FEATURE_DYNAMIC_GATTDB_PRESENT -#endif // SL_BLE_SIDE_CHANNEL_ENABLED -#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_CPP_SUPPORT_PRESENT -#define SL_CATALOG_DEVICE_INIT_PRESENT -#define SL_CATALOG_DEVICE_INIT_DCDC_PRESENT -#define SL_CATALOG_EMLIB_CORE_PRESENT -#define SL_CATALOG_EMLIB_RMU_PRESENT -#define SL_CATALOG_FREERTOS_KERNEL_PRESENT -#define SL_CATALOG_KERNEL_PRESENT -#define SL_CATALOG_GATT_CONFIGURATION_PRESENT -#define SL_CATALOG_GPIO_PRESENT -#define SL_CATALOG_GPIOINTERRUPT_PRESENT -#define SL_CATALOG_HAL_SYSTEM_PRESENT -#define SL_CATALOG_HFXO_MANAGER_PRESENT -#define SL_CATALOG_INTERRUPT_MANAGER_PRESENT -#define SL_CATALOG_IOSTREAM_PRESENT -#ifdef DISPLAY_ENABLED -#define SL_CATALOG_MEMLCD_USART_PRESENT -#define SL_CATALOG_DMD_MEMLCD_PRESENT -#endif -#define SL_CATALOG_MEMORY_MANAGER_PRESENT -#define SL_CATALOG_MEMORY_PROFILER_API_PRESENT -#define SL_CATALOG_MPU_PRESENT -#ifdef CONFIG_USE_EXTERNAL_FLASH -#define SL_CATALOG_MX25_FLASH_SHUTDOWN_USART_PRESENT -#endif // CONFIG_USE_EXTERNAL_FLASH -#define SL_CATALOG_NVM3_DEFAULT_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_POWER_MANAGER_DEEPSLEEP_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_SECURITY_MANAGER_PRESENT -#define SL_CATALOG_SEGGER_RTT_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_SL_CORE_PRESENT -#define SL_CATALOG_SL_MAIN_PRESENT -#define SL_CATALOG_SLEEPTIMER_PRESENT -#define SL_CATALOG_SLI_PROTOCOL_CRYPTO_PRESENT -#if defined(CONFIG_ENABLE_UART) -#define SL_CATALOG_UARTDRV_EUSART_PRESENT -#endif - -#endif // SL_COMPONENT_CATALOG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_event_handler.c b/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_event_handler.c deleted file mode 100644 index 357a278f8..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_event_handler.c +++ /dev/null @@ -1,148 +0,0 @@ -#include "sl_event_handler.h" - -#include "sl_board_init.h" -#include "sl_clock_manager.h" -#include "sl_hfxo_manager.h" -#include "sl_rail_util_compatible_pa.h" -#if !(defined(SLI_SI91X_ENABLE_BLE) && SLI_SI91X_ENABLE_BLE) -#include "sl_bluetooth.h" -#include "sl_rail_util_power_manager_init.h" -#endif // !SLI_SI91X_ENABLE_BLE -#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 "platform-efr32.h" -#include "sl_bt_rtos_adaptation.h" -#include "sl_bluetooth.h" -#include "sl_debug_swo.h" -#include "sl_gpio.h" -#include "gpiointerrupt.h" -#if defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR -#include "sl_i2cspm_instances.h" -#endif // defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR -#include "sl_iostream_rtt.h" -#include "sl_mbedtls.h" -#include "sl_ot_rtos_adaptation.h" -#include "sl_simple_button_instances.h" - -#if (defined(SL_MATTER_RGB_LED_ENABLED) && SL_MATTER_RGB_LED_ENABLED == 1) -#include "sl_simple_rgb_pwm_led_instances.h" -#else -#include "sl_simple_led_instances.h" -#endif //(SL_MATTER_RGB_LED_ENABLED) && SL_MATTER_RGB_LED_ENABLED == 1) -#if defined(CONFIG_ENABLE_UART) -#include "sl_uartdrv_instances.h" -#endif // CONFIG_ENABLE_UART -#include "psa/crypto.h" -#include "sl_se_manager.h" -#include "sli_protocol_crypto.h" -#include "sli_crypto.h" -#include "sl_iostream_init_instances.h" -#include "cmsis_os2.h" -#include "nvm3_default.h" - -#include "sl_iostream_handles.h" - -void sli_driver_permanent_allocation(void) -{ -} - -void sli_service_permanent_allocation(void) -{ -} - -void sli_stack_permanent_allocation(void) -{ - sli_bt_stack_permanent_allocation(); - sl_ot_rtos_perm_allocation(); -} - -void sli_internal_permanent_allocation(void) -{ -} - -void sl_platform_init(void) -{ - sl_board_preinit(); - sl_clock_manager_runtime_init(); - sl_hfxo_manager_init_hardware(); - sl_board_init(); - bootloader_init(); - nvm3_initDefault(); -} - -void sli_internal_init_early(void) -{ -} - -void sl_kernel_start(void) -{ - sli_bt_rtos_adaptation_kernel_start(); - osKernelStart(); -} - -void sl_driver_init(void) -{ - sl_gpio_init(); - GPIOINT_Init(); -#if defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR - sl_i2cspm_init_instances(); -#endif // defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR - sl_simple_button_init_instances(); -#if (defined(SL_MATTER_RGB_LED_ENABLED) && SL_MATTER_RGB_LED_ENABLED == 1) - sl_simple_rgb_pwm_led_init_instances(); -#else - sl_simple_led_init_instances(); -#endif //(SL_MATTER_RGB_LED_ENABLED) && SL_MATTER_RGB_LED_ENABLED == 1) - #if defined(CONFIG_ENABLE_UART) - sl_uartdrv_init_instances(); -#endif // CONFIG_ENABLE_UART -} - -void sl_service_init(void) -{ - sl_board_configure_vcom(); - sl_hfxo_manager_init(); - sl_mbedtls_init(); - psa_crypto_init(); - sl_se_init(); - sli_protocol_crypto_init(); - sli_crypto_init(); - sli_aes_seed_mask(); - sl_iostream_init_instances_stage_1(); - sl_iostream_init_instances_stage_2(); -} - -void sl_stack_init(void) -{ -#if !SLI_SI91X_ENABLE_BLE - sl_rail_util_pa_init(); - sl_rail_util_power_manager_init(); - sl_rail_util_pti_init(); - sl_rail_util_rssi_init(); - sli_bt_stack_functional_init(); -#endif // !SLI_SI91X_ENABLE_BLE -#ifdef SL_OT_ENABLE - sl_ot_sys_init(); -#endif // SL_OT_ENABLE -} - -void sl_internal_app_init(void) -{ -#ifdef SL_OT_ENABLE - sl_ot_rtos_stack_init(); - sl_ot_rtos_app_init(); -#endif // SL_OT_ENABLE -} - -void sl_iostream_init_instances_stage_1(void) -{ - sl_iostream_rtt_init(); -} - -void sl_iostream_init_instances_stage_2(void) -{ - sl_iostream_set_console_instance(); -} diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_event_handler.h b/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_event_handler.h deleted file mode 100644 index 1d0468d03..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_event_handler.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef SL_EVENT_HANDLER_H -#define SL_EVENT_HANDLER_H - -void sli_driver_permanent_allocation(void); -void sli_service_permanent_allocation(void); -void sli_stack_permanent_allocation(void); -void sli_internal_permanent_allocation(void); -void sl_platform_init(void); -void sli_internal_init_early(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); - -#endif // SL_EVENT_HANDLER_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_i2cspm_init.c b/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_i2cspm_init.c deleted file mode 100644 index 247e557d7..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_i2cspm_init.c +++ /dev/null @@ -1,64 +0,0 @@ -/***************************************************************************//** - * @file - * @brief I2C simple poll-based master mode driver instance initialilization - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_i2cspm.h" -#include "sl_clock_manager.h" -// Include instance config -#include "sl_i2cspm_sensor_config.h" - -sl_i2cspm_t *sl_i2cspm_sensor = SL_I2CSPM_SENSOR_PERIPHERAL; - -#if SL_I2CSPM_SENSOR_SPEED_MODE == 0 -#define SL_I2CSPM_SENSOR_HLR i2cClockHLRStandard -#define SL_I2CSPM_SENSOR_MAX_FREQ I2C_FREQ_STANDARD_MAX -#elif SL_I2CSPM_SENSOR_SPEED_MODE == 1 -#define SL_I2CSPM_SENSOR_HLR i2cClockHLRAsymetric -#define SL_I2CSPM_SENSOR_MAX_FREQ I2C_FREQ_FAST_MAX -#elif SL_I2CSPM_SENSOR_SPEED_MODE == 2 -#define SL_I2CSPM_SENSOR_HLR i2cClockHLRFast -#define SL_I2CSPM_SENSOR_MAX_FREQ I2C_FREQ_FASTPLUS_MAX -#endif - -I2CSPM_Init_TypeDef init_sensor = { - .port = SL_I2CSPM_SENSOR_PERIPHERAL, - .sclPort = SL_I2CSPM_SENSOR_SCL_PORT, - .sclPin = SL_I2CSPM_SENSOR_SCL_PIN, - .sdaPort = SL_I2CSPM_SENSOR_SDA_PORT, - .sdaPin = SL_I2CSPM_SENSOR_SDA_PIN, - .i2cRefFreq = 0, - .i2cMaxFreq = SL_I2CSPM_SENSOR_MAX_FREQ, - .i2cClhr = SL_I2CSPM_SENSOR_HLR -}; - -void sl_i2cspm_init_instances(void) -{ - sl_clock_manager_enable_bus_clock(SL_BUS_CLOCK_GPIO); - I2CSPM_Init(&init_sensor); -} diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_iostream_handles.c b/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_iostream_handles.c deleted file mode 100644 index dc69e48a7..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_iostream_handles.c +++ /dev/null @@ -1,63 +0,0 @@ -#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]); -sl_iostream_t *sl_iostream_recommended_console_stream = NULL; - - -/***************************************************************************//** - * Get iostream instance handle for a given name - * - * @return Instance handle if it exist, NULL otherwise. - ******************************************************************************/ -sl_iostream_t *sl_iostream_get_handle(const 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; -} - -/***************************************************************************//** - * Set iostream recommended instance for a console - ******************************************************************************/ -void sl_iostream_set_console_instance(void) -{ - sl_iostream_type_t console = SL_IOSTREAM_TYPE_UNDEFINED; - - for (uint32_t i = 0; i < sl_iostream_instances_count; i++) { - switch (sl_iostream_instances_info[i]->type) { - case SL_IOSTREAM_TYPE_UART: - case SL_IOSTREAM_TYPE_RTT: - if (console != SL_IOSTREAM_TYPE_UART) { - console = sl_iostream_instances_info[i]->type; - sl_iostream_recommended_console_stream = sl_iostream_instances_info[i]->handle; - } - break; - - case SL_IOSTREAM_TYPE_VUART: - if (console != SL_IOSTREAM_TYPE_UART && console != SL_IOSTREAM_TYPE_RTT) { - console = sl_iostream_instances_info[i]->type; - sl_iostream_recommended_console_stream = sl_iostream_instances_info[i]->handle; - } - break; - - case SL_IOSTREAM_TYPE_LOOPBACK: - // Ignore loopback interface - break; - - default: - break; - } - } -} diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_iostream_handles.h b/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_iostream_handles.h deleted file mode 100644 index fcaee849d..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_iostream_handles.h +++ /dev/null @@ -1,24 +0,0 @@ -#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; - -extern sl_iostream_t *sl_iostream_recommended_console_stream; - -sl_iostream_t *sl_iostream_get_handle(const char *name); - -void sl_iostream_set_console_instance(void); - -#ifdef __cplusplus -} -#endif - -#endif // SL_IOSTREAM_HANDLES_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_iostream_init_instances.h b/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_iostream_init_instances.h deleted file mode 100644 index 1e9df285f..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_iostream_init_instances.h +++ /dev/null @@ -1,17 +0,0 @@ -#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_stage_1(void); -void sl_iostream_init_instances_stage_2(void); - -#ifdef __cplusplus -} -#endif - -#endif // SL_IOSTREAM_INIT_INSTANCES_H \ No newline at end of file diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_ot_init.c b/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_ot_init.c deleted file mode 100644 index 78eb35993..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_ot_init.c +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * @file - * @brief OpenThread initialization. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_ot_init.h" - -void sl_ot_init(void) -{ - sl_ot_create_instance(); - sl_ot_sleep_init(); - sl_ot_cli_init(); - sl_ot_custom_cli_init(); -} \ No newline at end of file diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_ot_init.h b/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_ot_init.h deleted file mode 100644 index 4afeb49d9..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_ot_init.h +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * @file - * @brief This generated header includes declaration of all functions required - * during initialization that must be defined by the OpenThread application. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_OT_INIT_H -#define SL_OT_INIT_H - -void sl_ot_init(void); -extern void sl_ot_create_instance(void); -extern void sl_ot_sleep_init(void); -extern void sl_ot_cli_init(void); -extern void sl_ot_custom_cli_init(void); - -#endif // SL_OT_INIT_H \ No newline at end of file diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_simple_button_instances.c b/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_simple_button_instances.c deleted file mode 100644 index 3991bd5e5..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_simple_button_instances.c +++ /dev/null @@ -1,86 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Button Driver Instances - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_simple_button.h" -#include "sl_simple_button_btn0_config.h" -#include "sl_simple_button_btn1_config.h" - -sl_simple_button_context_t simple_btn0_context = { - .state = 0, - .history = 0, - .port = SL_SIMPLE_BUTTON_BTN0_PORT, - .pin = SL_SIMPLE_BUTTON_BTN0_PIN, - .mode = SL_SIMPLE_BUTTON_BTN0_MODE, -}; - -const sl_button_t sl_button_btn0 = { - .context = &simple_btn0_context, - .init = sl_simple_button_init, - .get_state = sl_simple_button_get_state, - .poll = sl_simple_button_poll_step, - .enable = sl_simple_button_enable, - .disable = sl_simple_button_disable, -}; -sl_simple_button_context_t simple_btn1_context = { - .state = 0, - .history = 0, - .port = SL_SIMPLE_BUTTON_BTN1_PORT, - .pin = SL_SIMPLE_BUTTON_BTN1_PIN, - .mode = SL_SIMPLE_BUTTON_BTN1_MODE, -}; - -const sl_button_t sl_button_btn1 = { - .context = &simple_btn1_context, - .init = sl_simple_button_init, - .get_state = sl_simple_button_get_state, - .poll = sl_simple_button_poll_step, - .enable = sl_simple_button_enable, - .disable = sl_simple_button_disable, -}; - -// the table of buttons and button count are generated as a -// convenience for the application -const sl_button_t *sl_simple_button_array[] = { - &sl_button_btn0, - &sl_button_btn1 -}; -const uint8_t simple_button_count = 2; - -void sl_simple_button_init_instances(void) -{ - sl_button_init(&sl_button_btn0); - sl_button_init(&sl_button_btn1); -} - -void sl_simple_button_poll_instances(void) -{ - sl_button_poll_step(&sl_button_btn0); - sl_button_poll_step(&sl_button_btn1); -} diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_simple_button_instances.h b/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_simple_button_instances.h deleted file mode 100644 index 1a5ddb293..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_simple_button_instances.h +++ /dev/null @@ -1,47 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Button Driver Instances - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_BUTTON_INSTANCES_H -#define SL_SIMPLE_BUTTON_INSTANCES_H - -#include "sl_simple_button.h" - -extern const sl_button_t sl_button_btn0; -extern const sl_button_t sl_button_btn1; - -extern const sl_button_t *sl_simple_button_array[]; - -#define SL_SIMPLE_BUTTON_COUNT 2 -#define SL_SIMPLE_BUTTON_INSTANCE(n) (sl_simple_button_array[n]) - -void sl_simple_button_init_instances(void); -void sl_simple_button_poll_instances(void); - -#endif // SL_SIMPLE_BUTTON_INSTANCES_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_simple_led_instances.c b/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_simple_led_instances.c deleted file mode 100644 index 9958e20be..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_simple_led_instances.c +++ /dev/null @@ -1,75 +0,0 @@ -/***************************************************************************//** - * @file - * @brief LED Driver Instances - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_simple_led.h" -#include "sl_gpio.h" - -#include "sl_simple_led_led0_config.h" -#include "sl_simple_led_led1_config.h" - -sl_simple_led_context_t simple_led0_context = { - .port = SL_SIMPLE_LED_LED0_PORT, - .pin = SL_SIMPLE_LED_LED0_PIN, - .polarity = SL_SIMPLE_LED_LED0_POLARITY, -}; - -const sl_led_t sl_led_led0 = { - .context = &simple_led0_context, - .init = sl_simple_led_init, - .turn_on = sl_simple_led_turn_on, - .turn_off = sl_simple_led_turn_off, - .toggle = sl_simple_led_toggle, - .get_state = sl_simple_led_get_state, -}; -sl_simple_led_context_t simple_led1_context = { - .port = SL_SIMPLE_LED_LED1_PORT, - .pin = SL_SIMPLE_LED_LED1_PIN, - .polarity = SL_SIMPLE_LED_LED1_POLARITY, -}; - -const sl_led_t sl_led_led1 = { - .context = &simple_led1_context, - .init = sl_simple_led_init, - .turn_on = sl_simple_led_turn_on, - .turn_off = sl_simple_led_turn_off, - .toggle = sl_simple_led_toggle, - .get_state = sl_simple_led_get_state, -}; - -const sl_led_t *sl_simple_led_array[] = { - &sl_led_led0, - &sl_led_led1 -}; - -void sl_simple_led_init_instances(void) -{ - sl_led_init(&sl_led_led0); - sl_led_init(&sl_led_led1); -} diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_simple_led_instances.h b/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_simple_led_instances.h deleted file mode 100644 index 928fbe942..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_simple_led_instances.h +++ /dev/null @@ -1,54 +0,0 @@ -/***************************************************************************//** - * @file - * @brief LED Driver Instances - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_LED_INSTANCES_H -#define SL_SIMPLE_LED_INSTANCES_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include "sl_simple_led.h" - -extern const sl_led_t sl_led_led0; -extern const sl_led_t sl_led_led1; - -extern const sl_led_t *sl_simple_led_array[]; - -#define SL_SIMPLE_LED_COUNT 2 -#define SL_SIMPLE_LED_INSTANCE(n) (sl_simple_led_array[n]) - -void sl_simple_led_init_instances(void); - -#ifdef __cplusplus -} -#endif - -#endif // SL_SIMPLE_LED_INIT_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_uartdrv_init.c b/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_uartdrv_init.c deleted file mode 100644 index adab0fb5b..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_uartdrv_init.c +++ /dev/null @@ -1,74 +0,0 @@ -#include "uartdrv.h" -#include "sl_uartdrv_instances.h" -#include - -#include "sl_uartdrv_eusart_vcom_config.h" - -UARTDRV_HandleData_t sl_uartdrv_eusart_vcom_handle_data; -UARTDRV_Handle_t sl_uartdrv_eusart_vcom_handle = &sl_uartdrv_eusart_vcom_handle_data; - - -static UARTDRV_Handle_t sli_uartdrv_default_handle = NULL; - -/* If CTS and RTS not defined, define a default value to avoid errors */ -#ifndef SL_UARTDRV_EUSART_VCOM_CTS_PORT -#define SL_UARTDRV_EUSART_VCOM_CTS_PORT SL_GPIO_PORT_A -#define SL_UARTDRV_EUSART_VCOM_CTS_PIN 0 -#endif - -#ifndef SL_UARTDRV_EUSART_VCOM_RTS_PORT -#define SL_UARTDRV_EUSART_VCOM_RTS_PORT SL_GPIO_PORT_A -#define SL_UARTDRV_EUSART_VCOM_RTS_PIN 0 -#endif - - -/* Define RX and TX buffer queues */ -DEFINE_BUF_QUEUE(SL_UARTDRV_EUSART_VCOM_RX_BUFFER_SIZE, sl_uartdrv_eusart_vcom_rx_buffer); -DEFINE_BUF_QUEUE(SL_UARTDRV_EUSART_VCOM_TX_BUFFER_SIZE, sl_uartdrv_eusart_vcom_tx_buffer); - - -/* Create uartdrv initialization structs */ -UARTDRV_InitEuart_t sl_uartdrv_eusart_init_vcom = { - .port = SL_UARTDRV_EUSART_VCOM_PERIPHERAL, - .useLowFrequencyMode = SL_UARTDRV_EUSART_VCOM_LF_MODE, - .baudRate = SL_UARTDRV_EUSART_VCOM_BAUDRATE, - .txPort = SL_UARTDRV_EUSART_VCOM_TX_PORT, - .rxPort = SL_UARTDRV_EUSART_VCOM_RX_PORT, - .txPin = SL_UARTDRV_EUSART_VCOM_TX_PIN, - .rxPin = SL_UARTDRV_EUSART_VCOM_RX_PIN, - .uartNum = SL_UARTDRV_EUSART_VCOM_PERIPHERAL_NO, - .stopBits = SL_UARTDRV_EUSART_VCOM_STOP_BITS, - .parity = SL_UARTDRV_EUSART_VCOM_PARITY, - .oversampling = SL_UARTDRV_EUSART_VCOM_OVERSAMPLING, - .mvdis = SL_UARTDRV_EUSART_VCOM_MVDIS, - .fcType = SL_UARTDRV_EUSART_VCOM_FLOW_CONTROL_TYPE, - .ctsPort = SL_UARTDRV_EUSART_VCOM_CTS_PORT, - .ctsPin = SL_UARTDRV_EUSART_VCOM_CTS_PIN, - .rtsPort = SL_UARTDRV_EUSART_VCOM_RTS_PORT, - .rtsPin = SL_UARTDRV_EUSART_VCOM_RTS_PIN, - .rxQueue = (UARTDRV_Buffer_FifoQueue_t *)&sl_uartdrv_eusart_vcom_rx_buffer, - .txQueue = (UARTDRV_Buffer_FifoQueue_t *)&sl_uartdrv_eusart_vcom_tx_buffer, -}; - - -void sl_uartdrv_init_instances(void){ - UARTDRV_InitEuart(sl_uartdrv_eusart_vcom_handle, &sl_uartdrv_eusart_init_vcom); - sl_uartdrv_set_default(sl_uartdrv_eusart_vcom_handle); -} - -sl_status_t sl_uartdrv_set_default(UARTDRV_Handle_t handle) -{ - sl_status_t status = SL_STATUS_INVALID_HANDLE; - - if (handle != NULL) { - sli_uartdrv_default_handle = handle; - status = SL_STATUS_OK; - } - - return status; -} - -UARTDRV_Handle_t sl_uartdrv_get_default(void) -{ - return sli_uartdrv_default_handle; -} diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_uartdrv_instances.h b/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_uartdrv_instances.h deleted file mode 100644 index 83202285e..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_uartdrv_instances.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef SL_UARTDRV_INSTANCES_H -#define SL_UARTDRV_INSTANCES_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include "sl_status.h" -#include "uartdrv.h" - - -extern UARTDRV_Handle_t sl_uartdrv_eusart_vcom_handle; - -void sl_uartdrv_init_instances(void); - -/***************************************************************************//** - * Set the handle as the default UARTDRV handle. - * - * @param[in] handle UARTDRV handle to set as default. - * - * @return Status result - ******************************************************************************/ -sl_status_t sl_uartdrv_set_default(UARTDRV_Handle_t handle); - -/***************************************************************************//** - * Get the default UARTDRV handle configured. - * - * @return UARTDRV handle - ******************************************************************************/ -UARTDRV_Handle_t sl_uartdrv_get_default(void); - -#ifdef __cplusplus -} -#endif - -#endif // SL_UARTDRV_INSTANCES_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sli_mbedtls_config_autogen.h b/board-support/efr32/efr32mg24/BRD4186A/autogen/sli_mbedtls_config_autogen.h deleted file mode 100644 index 70ce043e0..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sli_mbedtls_config_autogen.h +++ /dev/null @@ -1,52 +0,0 @@ -// This is an autogenerated config file, any changes to this file will be overwritten - -#ifndef SLI_MBEDTLS_CONFIG_AUTOGEN_H -#define SLI_MBEDTLS_CONFIG_AUTOGEN_H - -// Added definition check because of DIC specific configs -#ifndef MBEDTLS_MPI_MAX_SIZE -#define MBEDTLS_MPI_MAX_SIZE 32 -#endif - -#define MBEDTLS_AES_C -#define MBEDTLS_ASN1_PARSE_C -#define MBEDTLS_ASN1_WRITE_C -#define MBEDTLS_BASE64_C -#define MBEDTLS_CIPHER_C -#define MBEDTLS_CMAC_C -#define MBEDTLS_BIGNUM_C -#define MBEDTLS_OID_C -#define MBEDTLS_PEM_PARSE_C -#define MBEDTLS_PEM_WRITE_C -#define MBEDTLS_PK_C -#define MBEDTLS_PK_PARSE_C -#define MBEDTLS_PK_WRITE_C -#define MBEDTLS_PLATFORM_C -#define MBEDTLS_PLATFORM_MEMORY -#define MBEDTLS_THREADING_C -#define MBEDTLS_THREADING_ALT -#define MBEDTLS_X509_USE_C -#define MBEDTLS_X509_CREATE_C -#define MBEDTLS_X509_CRT_PARSE_C -// Do not need this feature -// #define MBEDTLS_X509_CRT_WRITE_C -#define MBEDTLS_X509_CRL_PARSE_C -#define MBEDTLS_X509_CSR_PARSE_C -#define MBEDTLS_X509_CSR_WRITE_C -#define MBEDTLS_USE_PSA_CRYPTO -#define MBEDTLS_PSA_CRYPTO_C -#define MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS -#define MBEDTLS_PSA_CRYPTO_CONFIG -#define MBEDTLS_ECP_C -#define MBEDTLS_ECP_DP_SECP256R1_ENABLED -#define MBEDTLS_ECDSA_C -#define MBEDTLS_MD_C -#define MBEDTLS_PSA_CRYPTO_DRIVERS -#define MBEDTLS_PSA_CRYPTO_STORAGE_C - - - - - - -#endif // SLI_MBEDTLS_CONFIG_AUTOGEN_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sli_mbedtls_config_transform_autogen.h b/board-support/efr32/efr32mg24/BRD4186A/autogen/sli_mbedtls_config_transform_autogen.h deleted file mode 100644 index ccf963ce1..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sli_mbedtls_config_transform_autogen.h +++ /dev/null @@ -1,75 +0,0 @@ -// This is an autogenerated config file, any changes to this file will be overwritten - -#ifndef SLI_MBEDTLS_CONFIG_TRANSFORM_AUTOGEN_H -#define SLI_MBEDTLS_CONFIG_TRANSFORM_AUTOGEN_H - -// Convert CMSIS Markup config defines to mbedTLS specific config defines - -#if SL_MBEDTLS_RSA_NO_CRT - #define MBEDTLS_RSA_NO_CRT -#endif - -// Allow undefining the specified cipher suites -#if defined(SLI_MBEDTLS_AUTODETECT_CIPHERSUITES) - #undef MBEDTLS_SSL_CIPHERSUITES -#endif - -#if SL_MBEDTLS_SSL_MAX_FRAGMENT_LENGTH - #define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH -#endif -#if SL_MBEDTLS_SSL_EXPORT_KEYS - #define MBEDTLS_SSL_EXPORT_KEYS -#endif -#if SL_MBEDTLS_KEY_EXCHANGE_PSK_ENABLED - #define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED -#endif -#if SL_MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED - #define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED -#endif -#if SL_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED - #define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED -#endif -#if SL_MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED - #define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED -#endif -#if SL_MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED - #define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED -#endif -#if SL_MBEDTLS_ECP_ENABLE_COMPRESSED_CURVE_PARSING - #define MBEDTLS_ECP_ENABLE_COMPRESSED_CURVE_PARSING -#endif -#if SL_MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS - #define MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS -#endif - -#if !defined(MBEDTLS_SSL_IN_CONTENT_LEN) - #define MBEDTLS_SSL_IN_CONTENT_LEN SL_MBEDTLS_SSL_IN_CONTENT_LEN -#endif - -#if !defined(MBEDTLS_SSL_OUT_CONTENT_LEN) - #define MBEDTLS_SSL_OUT_CONTENT_LEN SL_MBEDTLS_SSL_OUT_CONTENT_LEN -#endif - - -#define SLI_SSL_IN_CONTENT_LEN_REQUIREMENT 900 - -// If the SDK requires a certain SSL buffer size, configure Mbed TLS -// to size the buffer to the highest of the user/default or SDK setting. -#if MBEDTLS_SSL_IN_CONTENT_LEN < SLI_SSL_IN_CONTENT_LEN_REQUIREMENT - #undef MBEDTLS_SSL_IN_CONTENT_LEN - #define MBEDTLS_SSL_IN_CONTENT_LEN SLI_SSL_IN_CONTENT_LEN_REQUIREMENT -#endif - - - -#define SLI_SSL_OUT_CONTENT_LEN_REQUIREMENT 900 - -// If the SDK requires a certain SSL buffer size, configure Mbed TLS -// to size the buffer to the highest of the user/default or SDK setting. -#if MBEDTLS_SSL_OUT_CONTENT_LEN < SLI_SSL_OUT_CONTENT_LEN_REQUIREMENT - #undef MBEDTLS_SSL_OUT_CONTENT_LEN - #define MBEDTLS_SSL_OUT_CONTENT_LEN SLI_SSL_OUT_CONTENT_LEN_REQUIREMENT -#endif - - -#endif // SLI_MBEDTLS_CONFIG_TRANSFORM_AUTOGEN_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sli_psa_builtin_config_autogen.h b/board-support/efr32/efr32mg24/BRD4186A/autogen/sli_psa_builtin_config_autogen.h deleted file mode 100644 index c8b70fad1..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sli_psa_builtin_config_autogen.h +++ /dev/null @@ -1,13 +0,0 @@ -// This is an autogenerated config file, any changes to this file will be overwritten - -#ifndef SLI_PSA_BUILTIN_CONFIG_AUTOGEN_H -#define SLI_PSA_BUILTIN_CONFIG_AUTOGEN_H - -// Do not need this feature - SLC imposed -// #define MBEDTLS_PSA_BUILTIN_KEY_TYPE_AES 1 -// #define MBEDTLS_PSA_BUILTIN_ALG_ECB_NO_PADDING 1 -// #define MBEDTLS_PSA_BUILTIN_ALG_CMAC 1 -// #define MBEDTLS_PSA_BUILTIN_ALG_PBKDF2_AES_CMAC_PRF_128 1 - - -#endif // SLI_PSA_BUILTIN_CONFIG_AUTOGEN_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sli_psa_config_autogen.h b/board-support/efr32/efr32mg24/BRD4186A/autogen/sli_psa_config_autogen.h deleted file mode 100644 index f90dd6e9a..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sli_psa_config_autogen.h +++ /dev/null @@ -1,37 +0,0 @@ -// This is an autogenerated config file, any changes to this file will be overwritten - -#ifndef SLI_PSA_CONFIG_AUTOGEN_H -#define SLI_PSA_CONFIG_AUTOGEN_H - -#define PSA_WANT_KEY_TYPE_AES 1 -#define PSA_WANT_ALG_CCM 1 -#define PSA_WANT_ALG_ECB_NO_PADDING 1 -#define PSA_WANT_ALG_CMAC 1 -#define PSA_WANT_ALG_SHA_256 1 -#define PSA_WANT_ALG_ECDSA 1 -#define PSA_WANT_ALG_ECDH 1 -#define PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY 1 -#define PSA_WANT_ECC_SECP_R1_256 1 -#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC 1 -#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT 1 -#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT 1 -#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE 1 -#define PSA_WANT_ALG_HKDF 1 -#define PSA_WANT_ALG_HMAC 1 -#define PSA_WANT_KEY_TYPE_HMAC 1 -#define PSA_WANT_ALG_PBKDF2_AES_CMAC_PRF_128 1 -#define PSA_WANT_ALG_TLS12_PRF 1 -#define PSA_WANT_ALG_TLS12_PSK_TO_MS 1 -#define MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG - -#if defined(KSU_MAX_KEY_SLOTS) -#include "sli_ksu_keyslots_config.h" -#define MBEDTLS_PSA_KEY_SLOT_COUNT (22 + 15 + 1 + SL_PSA_KEY_USER_SLOT_COUNT + SLI_KSU_MAX_KEY_SLOTS - SLI_KSU_KEY_SLOT_USER_START + 1) -#else -#define MBEDTLS_PSA_KEY_SLOT_COUNT (22 + 15 + 1 + SL_PSA_KEY_USER_SLOT_COUNT + 1) -#endif -#ifndef SL_PSA_ITS_MAX_FILES -#define SL_PSA_ITS_MAX_FILES (1 + SL_PSA_ITS_USER_MAX_FILES) -#endif - -#endif // SLI_PSA_CONFIG_AUTOGEN_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/app_properties_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/app_properties_config.h deleted file mode 100644 index 6a6b97666..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/app_properties_config.h +++ /dev/null @@ -1,65 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Application Properties Header File - ******************************************************************************* - * # License - * Copyright 2021 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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 APP_PROPERTIES_CONFIG_H -#define APP_PROPERTIES_CONFIG_H - -#include "sl_application_type.h" - -// <<< Use Configuration Wizard in Context Menu >>> - -// App Properties settings - -// Type of signature this application is signed with -// Default: APPLICATION_SIGNATURE_NONE(0) -#define SL_APPLICATION_SIGNATURE 0 - -// Location of the signature -// Default: 0xFFFFFFFF -#define SL_APPLICATION_SIGNATURE_LOCATION 0xFFFFFFFF - -// Bitfield representing type of application -#define SL_APPLICATION_TYPE APPLICATION_TYPE - -// Version number for this application -// <0-4294967295:1> -// Default: 1 [0-4294967295] -#define SL_APPLICATION_VERSION 1 - -// Capabilities of this application -// Default: 0 -#define SL_APPLICATION_CAPABILITIES 0 - -//Product ID of the device for which the application is built -#define SL_APPLICATION_PRODUCT_ID { 0 } - -// - -#endif // APP_PROPERTIES_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/btconf/gatt_configuration.btconf b/board-support/efr32/efr32mg24/BRD4186A/config/btconf/gatt_configuration.btconf deleted file mode 100644 index 4d1efd972..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/btconf/gatt_configuration.btconf +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - Abstract: The generic_access service contains generic information about the device. All available Characteristics are readonly. - - - - - Empty Example - - - - - - - - - Abstract: The external appearance of this device. The values are composed of a category (10-bits) and sub-categories (6-bits). - 0000 - - - - - - - - - Abstract: The Device Information Service exposes manufacturer and/or vendor information about a device. Summary: This service exposes manufacturer information about a device. The Device Information Service is instantiated as a Primary Service. Only one instance of the Device Information Service is exposed on a device. - - - - Abstract: The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device. - Silicon Labs - - - - - - - - Abstract: The value of this characteristic is a UTF-8 string representing the model number assigned by the device vendor. - Blue Gecko - - - - - - - - Abstract: The SYSTEM ID characteristic consists of a structure with two fields. The first field are the LSOs and the second field contains the MSOs. This is a 64-bit structure which consists of a 40-bit manufacturer-defined identifier concatenated with a 24 bit unique Organizationally Unique Identifier (OUI). The OUI is issued by the IEEE Registration Authority (http://standards.ieee.org/regauth/index.html) and is required to be used in accordance with IEEE Standard 802-2001.6 while the least significant 40 bits are manufacturer defined. If System ID generated based on a Bluetooth Device Address, it is required to be done as follows. System ID and the Bluetooth Device Address have a very similar structure: a Bluetooth Device Address is 48 bits in length and consists of a 24 bit Company Assigned Identifier (manufacturer defined identifier) concatenated with a 24 bit Company Identifier (OUI). In order to encapsulate a Bluetooth Device Address as System ID, the Company Identifier is concatenated with 0xFFFE followed by the Company Assigned Identifier of the Bluetooth Address. For more guidelines related to EUI-64, refer to http://standards.ieee.org/develop/regauth/tut/eui64.pdf. Examples: If the system ID is based of a Bluetooth Device Address with a Company Identifier (OUI) is 0x123456 and the Company Assigned Identifier is 0x9ABCDE, then the System Identifier is required to be 0x123456FFFE9ABCDE. - 000102030405 - - - - - - - - - Custom service - - - - Custom characteristic - 00 - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/buffer_pool_allocator_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/buffer_pool_allocator_config.h deleted file mode 100644 index 2c3fd2e67..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/buffer_pool_allocator_config.h +++ /dev/null @@ -1,29 +0,0 @@ -/***************************************************************************//** - * @file buffer_pool_allocator_config.h - * @brief Configuration file for buffer pool allocator. - * @copyright Copyright 2015 Silicon Laboratories, Inc. www.silabs.com - ******************************************************************************/ - -#ifndef __BUFFER_POOL_ALLOCATOR_CONFIG_H__ -#define __BUFFER_POOL_ALLOCATOR_CONFIG_H__ - -// <<< Use Configuration Wizard in Context Menu >>> -// Memory Manager Configuration - -// Number Buffer Pools -// <0-256:1> -// Default: 5 -#define BUFFER_POOL_ALLOCATOR_POOL_SIZE 5 - -// Length of Each Buffer Pool -// <0-1024:1> -// Default: 256 -#define BUFFER_POOL_ALLOCATOR_BUFFER_SIZE_MAX 256 - -// Clear Each Newly Allocated Buffer -#define BUFFER_POOL_ALLOCATOR_CLEAR_ON_INIT 0 - -// -// <<< end of configuration section >>> - -#endif // __BUFFER_POOL_ALLOCATOR_CONFIG_H__ diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/circular_queue_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/circular_queue_config.h deleted file mode 100644 index 81a7173d6..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/circular_queue_config.h +++ /dev/null @@ -1,23 +0,0 @@ -/***************************************************************************//** - * @file circular_queue_config.h - * @brief Configuration file for circular queue. - * @copyright Copyright 2015 Silicon Laboratories, Inc. www.silabs.com - ******************************************************************************/ - -#ifndef __CIRCULAR_QUEUE_CONFIG_H__ -#define __CIRCULAR_QUEUE_CONFIG_H__ - -// <<< Use Configuration Wizard in Context Menu >>> -// Circular Queue Configuration - -// Max Queue Length -// <0-256:1> -// Default: 5 -#ifndef CIRCULAR_QUEUE_LEN_MAX -#define CIRCULAR_QUEUE_LEN_MAX 16 -#endif - -// -// <<< end of configuration section >>> - -#endif // __CIRCULAR_QUEUE_CONFIG_H__ diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/dmadrv_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/dmadrv_config.h deleted file mode 100644 index ed105e4f3..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/dmadrv_config.h +++ /dev/null @@ -1,26 +0,0 @@ -#ifndef DMADRV_CONFIG_H -#define DMADRV_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// DMA interrupt priority <0-15> -// Priority of the DMA interrupt. Smaller number equals higher priority. -// Default: 8 -#define EMDRV_DMADRV_DMA_IRQ_PRIORITY 8 - -// Number of available channels <1-8> -// Number of DMA channels supported by the driver. A lower channel count -// will reduce RAM memory footprint. The default is to support all channels -// on the device. -// Default: 8 -#define EMDRV_DMADRV_DMA_CH_COUNT 8 - -// Number of fixed priority channels -// This will configure channels [0, CH_PRIORITY - 1] as fixed priority, -// and channels [CH_PRIORITY, CH_COUNT] as round-robin. -// Default: 0 -#define EMDRV_DMADRV_DMA_CH_PRIORITY 0 - -// <<< end of configuration section >>> - -#endif // DMADRV_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/nvm3_default_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/nvm3_default_config.h deleted file mode 100644 index 2bf415f94..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/nvm3_default_config.h +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef NVM3_DEFAULT_CONFIG_H -#define NVM3_DEFAULT_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// NVM3 Default Instance Configuration - -#ifndef NVM3_DEFAULT_CACHE_SIZE -// NVM3 Default Instance Cache Size -// Number of NVM3 objects to cache. To reduce access times this number -// should be equal to or higher than the number of NVM3 objects in the -// default NVM3 instance. -// Default: 200 -#define NVM3_DEFAULT_CACHE_SIZE 200 -#endif - -#ifndef NVM3_DEFAULT_MAX_OBJECT_SIZE -// NVM3 Default Instance Max Object Size -// Max NVM3 object size that can be stored. -// Default: 254 -#define NVM3_DEFAULT_MAX_OBJECT_SIZE 4092 -#endif - -#ifndef NVM3_DEFAULT_REPACK_HEADROOM -// NVM3 Default Instance User Repack Headroom -// Headroom determining how many bytes below the forced repack limit the user -// repack limit should be placed. The default is 0, which means the user and -// forced repack limits are equal. -// Default: 0 -#define NVM3_DEFAULT_REPACK_HEADROOM 0 -#endif - -#ifndef NVM3_DEFAULT_NVM_SIZE -// NVM3 Default Instance Size -// Size of the NVM3 storage region in flash. This size should be aligned with -// the flash page size of the device. -// Default: 40960 -#define NVM3_DEFAULT_NVM_SIZE 40960 -#endif - -// - -// <<< end of configuration section >>> - -#endif // NVM3_DEFAULT_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/pin_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/pin_config.h deleted file mode 100644 index 5f72d8949..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/pin_config.h +++ /dev/null @@ -1,252 +0,0 @@ -#ifndef PIN_CONFIG_H -#define PIN_CONFIG_H - -// $[CMU] -// [CMU]$ - -// $[LFXO] -// [LFXO]$ - -// $[PRS.ASYNCH0] -// [PRS.ASYNCH0]$ - -// $[PRS.ASYNCH1] -// [PRS.ASYNCH1]$ - -// $[PRS.ASYNCH2] -// [PRS.ASYNCH2]$ - -// $[PRS.ASYNCH3] -// [PRS.ASYNCH3]$ - -// $[PRS.ASYNCH4] -// [PRS.ASYNCH4]$ - -// $[PRS.ASYNCH5] -// [PRS.ASYNCH5]$ - -// $[PRS.ASYNCH6] -// [PRS.ASYNCH6]$ - -// $[PRS.ASYNCH7] -// [PRS.ASYNCH7]$ - -// $[PRS.ASYNCH8] -// [PRS.ASYNCH8]$ - -// $[PRS.ASYNCH9] -// [PRS.ASYNCH9]$ - -// $[PRS.ASYNCH10] -// [PRS.ASYNCH10]$ - -// $[PRS.ASYNCH11] -// [PRS.ASYNCH11]$ - -// $[PRS.ASYNCH12] -// [PRS.ASYNCH12]$ - -// $[PRS.ASYNCH13] -// [PRS.ASYNCH13]$ - -// $[PRS.ASYNCH14] -// [PRS.ASYNCH14]$ - -// $[PRS.ASYNCH15] -// [PRS.ASYNCH15]$ - -// $[PRS.SYNCH0] -// [PRS.SYNCH0]$ - -// $[PRS.SYNCH1] -// [PRS.SYNCH1]$ - -// $[PRS.SYNCH2] -// [PRS.SYNCH2]$ - -// $[PRS.SYNCH3] -// [PRS.SYNCH3]$ - -// $[GPIO] -// GPIO SWV on PA03 -#ifndef GPIO_SWV_PORT -#define GPIO_SWV_PORT SL_GPIO_PORT_A -#endif -#ifndef GPIO_SWV_PIN -#define GPIO_SWV_PIN 3 -#endif - -// [GPIO]$ - -// $[TIMER0] -// [TIMER0]$ - -// $[TIMER1] -// [TIMER1]$ - -// $[TIMER2] -// [TIMER2]$ - -// $[TIMER3] -// [TIMER3]$ - -// $[TIMER4] -// [TIMER4]$ - -// $[USART0] -// USART0 CLK on PC03 -#ifndef USART0_CLK_PORT -#define USART0_CLK_PORT SL_GPIO_PORT_C -#endif -#ifndef USART0_CLK_PIN -#define USART0_CLK_PIN 3 -#endif - -// USART0 TX on PC01 -#ifndef USART0_TX_PORT -#define USART0_TX_PORT SL_GPIO_PORT_C -#endif -#ifndef USART0_TX_PIN -#define USART0_TX_PIN 1 -#endif - -// [USART0]$ - -// $[I2C1] -// I2C1 SCL on PC05 -#ifndef I2C1_SCL_PORT -#define I2C1_SCL_PORT SL_GPIO_PORT_C -#endif -#ifndef I2C1_SCL_PIN -#define I2C1_SCL_PIN 5 -#endif - -// I2C1 SDA on PC07 -#ifndef I2C1_SDA_PORT -#define I2C1_SDA_PORT SL_GPIO_PORT_C -#endif -#ifndef I2C1_SDA_PIN -#define I2C1_SDA_PIN 7 -#endif - -// [I2C1]$ - -// $[EUSART1] -// [EUSART1]$ - -// $[KEYSCAN] -// [KEYSCAN]$ - -// $[LETIMER0] -// [LETIMER0]$ - -// $[IADC0] -// [IADC0]$ - -// $[ACMP0] -// [ACMP0]$ - -// $[ACMP1] -// [ACMP1]$ - -// $[VDAC0] -// [VDAC0]$ - -// $[VDAC1] -// [VDAC1]$ - -// $[PCNT0] -// [PCNT0]$ - -// $[HFXO0] -// [HFXO0]$ - -// $[I2C0] -// [I2C0]$ - -// $[EUSART0] -// EUSART0 CTS on PB05 -#ifndef EUSART0_CTS_PORT -#define EUSART0_CTS_PORT SL_GPIO_PORT_B -#endif -#ifndef EUSART0_CTS_PIN -#define EUSART0_CTS_PIN 5 -#endif - -// EUSART0 RTS on PA00 -#ifndef EUSART0_RTS_PORT -#define EUSART0_RTS_PORT SL_GPIO_PORT_A -#endif -#ifndef EUSART0_RTS_PIN -#define EUSART0_RTS_PIN 0 -#endif - -// EUSART0 RX on PA09 -#ifndef EUSART0_RX_PORT -#define EUSART0_RX_PORT SL_GPIO_PORT_A -#endif -#ifndef EUSART0_RX_PIN -#define EUSART0_RX_PIN 9 -#endif - -// EUSART0 TX on PA08 -#ifndef EUSART0_TX_PORT -#define EUSART0_TX_PORT SL_GPIO_PORT_A -#endif -#ifndef EUSART0_TX_PIN -#define EUSART0_TX_PIN 8 -#endif - -// [EUSART0]$ - -// $[PTI] -// [PTI]$ - -// $[MODEM] -// [MODEM]$ - -// $[CUSTOM_PIN_NAME] -#ifndef _PORT -#define _PORT SL_GPIO_PORT_A -#endif -#ifndef _PIN -#define _PIN 0 -#endif - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -// [CUSTOM_PIN_NAME]$ - - -#endif // PIN_CONFIG_H - - diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/psa_crypto_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/psa_crypto_config.h deleted file mode 100644 index 773ce99e0..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/psa_crypto_config.h +++ /dev/null @@ -1,176 +0,0 @@ -#ifndef PSA_CRYPTO_CONFIG_H -#define PSA_CRYPTO_CONFIG_H - -// ----------------------------------------------------------------------------- -// User exposed config options - -// <<< Use Configuration Wizard in Context Menu >>> - -// Key management configuration - -// PSA User Maximum Open Keys Count <0-128> -// Maximum amount of keys that the user application will have open -// simultaneously. In context of PSA Crypto, an open key means any key -// either stored in RAM (lifetime set to PSA_KEY_LIFETIME_VOLATILE), or -// used as part of a cryptographic operation. -// When using a key for a multi-part (setup/update/finish) operation, a key -// is considered to be open from the moment the operation is successfully -// setup, until it finishes or aborts. -// When an application tries to open more keys than this value accounts for, -// the PSA API may return PSA_ERROR_INSUFFICIENT_MEMORY. Keep in mind that -// other software included in the application (e.g. wireless protocol stacks) -// also can have a need to have open keys in PSA Crypto. This could lead to -// a race condition when the application key slot count is set too low for -// the actual usage of the application, as a software stack may not fail -// gracefully in case an application opens more than its declared amount of -// keys, thereby precluding the stack from functioning. -// Default: 4 -#define SL_PSA_KEY_USER_SLOT_COUNT (4) - -// Maximum User Persistent PSA Key Count <0-1024> -// Maximum amount of keys (or other files) that can be stored persistently -// by the user application, when PSA ITS (Internal Trusted Storage) support -// is included in the project. -// NOTE: -// In addition to SL_PSA_ITS_USER_MAX_FILES (number of user keys) the -// application may be configured to include SDK components that require an -// additional number of keys. The sum of user keys and SDK component keys -// is computed and the result, called SL_PSA_ITS_MAX_FILES, is used -// internally in the PSA ITS driver. -// -// WARNING: -// For applications using PSA ITS driver version 1 or 2, when changing the -// SL_PSA_ITS_USER_MAX_FILES in an application that is already depeloyed, -// and thus will get the change through an application upgrade, care should -// be taken to ensure that the total sum of keys SL_PSA_ITS_MAX_FILES is -// only ever equal or increased, and never decreased. Decreasing this -// setting might cause previously stored keys/files to become inaccessible, -// ITS should be cleared and all files need to be stored again. -// -// For applications using PSA ITS driver version 3, it is not possible to -// change this setting because the file-storage indexing is dependent on the -// maximum number of files (SL_PSA_ITS_MAX_FILES) being consistent, and if -// the sum of SDK component keys and user keys (SL_PSA_ITS_USER_MAX_FILES) -// is changed, may cause previously stored keys/files to become inaccessible -// ITS should be cleared and all files need to be stored again. -// Default: 128 -#define SL_PSA_ITS_USER_MAX_FILES (128) - -// Enable V1 Format Support For ITS Files <0-1> -// Devices that used PSA ITS together with gecko_sdk_3.1.x or earlier -// might have keys (or other files) stored in V1 format. -// If no v1 files are used, its support can be disabled for space -// optimization. -// Default: 0 -#define SL_PSA_ITS_SUPPORT_V1_DRIVER 0 - -// Enable V2 ITS Driver Support <0-1> -// Devices that have used GSDK 4.1.x and earlier, and used ITS have the keys -// (or other files) stored using different address range. Enabling this -// config option adds upgrade code which converts V2 (and V1 if -// supported) format ITS keys/files to the latest V3 format. Update is -// fully automatic, needs to be run once and require extra flash space of -// approximately the size of the largest key. -// V1 ITS driver support can be disabled if the device has never used ITS -// driver before in GSDK 4.1.x and earlier, or the keys has been already -// migrated. -// Default: 0 -#define SL_PSA_ITS_SUPPORT_V2_DRIVER 0 - -// Enable support for V3 ITS Driver <0-1> -// Devices that have used GSDK 4.1.x and earlier, and used ITS have the keys -// (or other files) stored using different address range. In rare case -// that those devices have full nvm3 and not enough space for the -// upgrade, (that requires an extra space to store largest key in memory -// twice), this config option can disable v3 driver and use v2 one. -// To upgrade the device, make space for the upgrade, and enable v3 driver again. -// -// WARNING: When using V3 driver, it is not possible to increase or decrease -// the value of SL_PSA_ITS_USER_MAX_FILES. If the change of -// SL_PSA_ITS_USER_MAX_FILES is required, ITS should be cleared and -// all files need to be stored again. -// Default: 1 -#define SL_PSA_ITS_SUPPORT_V3_DRIVER 1 - -// Built-in AES Key Mode of Operation -// CTR Mode -// CFB Mode -// OFB Mode -// ECB Mode -// CBC Mode (no padding) -// CBC Mode (PKCS#7 padding) -// PSA Crypto only allows one specific usage algorithm per built-in key ID. -// Default: PSA_ALG_CTR -#define SL_SE_BUILTIN_KEY_AES128_ALG_CONFIG (PSA_ALG_CTR) - -#ifndef SL_CRYPTOACC_BUILTIN_KEY_PUF_ALG -// Built-in PUF Key Algorithm -// PBKDF2 (CMAC-AES-128-PRF) -// CMAC -// PSA Crypto only allows one specific usage algorithm per built-in key ID. -// It is recommended to only use the PUF key for deriving further key -// material. -// Default: PSA_ALG_PBKDF2_AES_CMAC_PRF_128 -#define SL_CRYPTOACC_BUILTIN_KEY_PUF_ALG (PSA_ALG_PBKDF2_AES_CMAC_PRF_128) -#endif // SL_CRYPTOACC_BUILTIN_KEY_PUF_ALG - -// - -// Power optimization configuration - -// Store already-generated random bytes before putting the device to sleep -// Using the hardware TRNG (for example through psa_generate_random()) will -// consume a non-negligible amount of power. A start-up routine must pass -// and a relatively large minimum amount of random bytes will be generated. -// Use cases where the device is frequently entering EM2/EM3 and thereafter -// consumes a small amount of data from the TRNG may benefit from buffering -// the existing random bytes before putting the device to sleep. These -// buffered bytes are then consumed until exhaustion before the TRNG needs -// to be initialized and used again. -// -// NOTE: this configuration option is only applicable for devices with a -// Virtual Secure Engine (VSE), and requires the 'Power Manager' component -// to be included in the project. -// -// Default: 0 -#define SL_VSE_BUFFER_TRNG_DATA_DURING_SLEEP (0) - -// Number of random words to buffer before putting the device to sleep <1-63> -// This option can be used to decrease the amount of random words that -// (if enabled) are buffered before the device enters EM2/EM3. Lowering this -// number will result in less static RAM usage, but also means that the TRNG -// potentially has to be initialized more times--leading to increased power -// consumption. By default this option in configured to buffer as much TRNG -// data as possible (limited by the depth of the TRNG FIFO). -// -// NOTE: this configuration option is only applicable when -// SL_VSE_BUFFER_TRNG_DATA_DURING_SLEEP is enabled. -// -// Default: 63 -#define SL_VSE_MAX_TRNG_WORDS_BUFFERED_DURING_SLEEP (63) -// - -// - -// <<< end of configuration section >>> - -// ----------------------------------------------------------------------------- -// Sub-files - -#if defined(SLI_PSA_CONFIG_AUTOGEN_OVERRIDE_FILE) - #include SLI_PSA_CONFIG_AUTOGEN_OVERRIDE_FILE -#else - #include "sli_psa_config_autogen.h" -#endif - -#if defined(TFM_CONFIG_SL_SECURE_LIBRARY) - #include "sli_psa_tfm_translation.h" -#endif - -#if SL_MBEDTLS_DRIVERS_ENABLED - #include "sli_psa_acceleration.h" -#endif - -#include "sli_psa_builtin_config_autogen.h" - -#endif // PSA_CRYPTO_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_802154_radio_priority_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_802154_radio_priority_config.h deleted file mode 100644 index 77334ba2c..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_802154_radio_priority_config.h +++ /dev/null @@ -1,57 +0,0 @@ -/***************************************************************************//** - * @brief Unified radio scheduler priority configuration for 802.15.4 stacks - * - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * The licensor of this software is Silicon Laboratories Inc. Your use of this - * software is governed by the terms of Silicon Labs Master Software License - * Agreement (MSLA) available at - * www.silabs.com/about-us/legal/master-software-license-agreement. This - * software is distributed to you in Source Code format and is governed by the - * sections of the MSLA applicable to Source Code. - * - ******************************************************************************/ -#ifndef __SL_802154_RADIO_PRIORITY_CONFIG_H__ -#define __SL_802154_RADIO_PRIORITY_CONFIG_H__ - -// <<< Use Configuration Wizard in Context Menu >>> - -// 802.15.4 Radio Priorities - -// TX priority minimum -// <1-255:1> -// Default: 100 -// The 802.15.4 TX priority for the first try of a TX message -#define SL_802154_RADIO_PRIO_TX_MIN 100 - -// TX priority step -// <1-50:1> -// Default: 2 -// The delta by which the TX priority for 802.15.4 stacks decrements for each retry of the packet -#define SL_802154_RADIO_PRIO_TX_STEP 2 - -// TX priority maximum -// <1-255:1> -// Default: 80 -// The highest 802.15.4 TX priority of a message. TX priorities are elevated based on number of retries and the step value specified -#define SL_802154_RADIO_PRIO_TX_MAX 80 - -// Active RX priority -// <1-255:1> -// Default: 255 -// The 802.15.4 active RX priority. Active RX is when the device is receiving a packet -#define SL_802154_RADIO_PRIO_ACTIVE_RX_VALUE 255 - -// Background RX priority -// <1-255:1> -// Default: 255 -// The 802.15.4 background RX priority. Background RX is the general, passive receive state when the device is not transmitting anything -#define SL_802154_RADIO_PRIO_BACKGROUND_RX_VALUE 255 - -// - -// <<< end of configuration section >>> -#endif //__SL_802154_RADIO_PRIORITY_CONFIG_H__ diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_bluetooth_advertiser_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_bluetooth_advertiser_config.h deleted file mode 100644 index 00163cd9a..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_bluetooth_advertiser_config.h +++ /dev/null @@ -1,45 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth Advertiser configuration - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BT_ADVERTISER_CONFIG_H -#define SL_BT_ADVERTISER_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> -// Max number of advertising sets reserved for user <0-255> -// Default: 1 -// Define the number of advertising sets that the application needs to use concurrently. Note that all types of advertising uses the same pool of advertising sets, but periodic advertising has extra configuration to define the number of advertising sets that are capable of periodic advertising. -// -// Specifically, if the component "bluetooth_feature_periodic_advertiser" is used, its configuration SL_BT_CONFIG_MAX_PERIODIC_ADVERTISERS specifies how many of the SL_BT_CONFIG_USER_ADVERTISERS advertising sets are capable of periodic advertising. Similarly, if the component bluetooth_feature_pawr_advertiser is used, its configuration SL_BT_CONFIG_MAX_PAWR_ADVERTISERS specifies how many of the periodic advertising sets are capable of Periodic Advertising with Responses. -// -// The configuration values must satisfy the condition SL_BT_CONFIG_USER_ADVERTISERS >= SL_BT_CONFIG_MAX_PERIODIC_ADVERTISERS >= SL_BT_CONFIG_MAX_PAWR_ADVERTISERS. -#define SL_BT_CONFIG_USER_ADVERTISERS (1) -// <<< end of configuration section >>> - -#endif diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_bluetooth_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_bluetooth_config.h deleted file mode 100644 index 93bfbbcc4..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_bluetooth_config.h +++ /dev/null @@ -1,181 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth Stack configuration - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BLUETOOTH_CONFIG_H -#define SL_BLUETOOTH_CONFIG_H -#if defined(SL_COMPONENT_CATALOG_PRESENT) -#include "sl_component_catalog.h" -#endif - -// <<< Use Configuration Wizard in Context Menu >>> - -// Bluetooth Stack Configuration - -#ifdef SL_CATALOG_BLUETOOTH_FEATURE_CONNECTION_PRESENT -#include "sl_bluetooth_connection_config.h" -#else -#define SL_BT_CONFIG_MAX_CONNECTIONS (0) -#endif - -// Max number of connections reserved by user application and components -#define SL_BT_CONFIG_MAX_CONNECTIONS_SUM (SL_BT_CONFIG_MAX_CONNECTIONS + SL_BT_COMPONENT_CONNECTIONS) - -#ifdef SL_CATALOG_BLUETOOTH_FEATURE_ADVERTISER_PRESENT -#include "sl_bluetooth_advertiser_config.h" -#else -#define SL_BT_CONFIG_USER_ADVERTISERS (0) -#endif - -#define SL_BT_CONFIG_MAX_ADVERTISERS (SL_BT_CONFIG_USER_ADVERTISERS + SL_BT_COMPONENT_ADVERTISERS) - -// Max number of software timers <0-16> -// Default: 4 -// Define the number of software timers the application needs. Each timer needs resources from the stack to be implemented. Increasing amount of soft timers may cause degraded performance in some use cases. -#define SL_BT_CONFIG_MAX_SOFTWARE_TIMERS (4) - -// Buffer memory size for Bluetooth stack -// Default: 3150 -// Define buffer memory size for running Bluetooth stack and buffering data over Bluetooth connections, -// advertising and scanning. The default value is an estimation for achieving adequate throughput -// and supporting multiple simultaneous connections. Consider increasing this value for -// higher data throughput over connections, advertising or scanning long advertisement data. -#define SL_BT_CONFIG_BUFFER_SIZE (3150) - -// Enable using a custom Bluetooth address stored in NVM3 -// Enable or disable using a custom Bluetooth address stored the Bluetooth space of NVM3. When enabled, -// the Bluetooth stack sets the address as the Bluetooth identity address of the device if a valid address -// is found in NVM3. -// Default: 1 -#define SL_BT_CONFIG_SET_CUSTOM_ADDRESS_FROM_NVM3 (1) -// - -// Enable setting the HFXO CTUNE with a value stored in the Bluetooth space of NVM3. -// Enable or disable setting the HFXO CTUNE with a value stored in the Bluetooth space of NVM3. When enabled, the -// Bluetooth stack sets the HFXO CTUNE at Bluetooth starting phase if a CTUNE value is found in NVM3. This -// operation will override the CTUNE that is set to with the value stored in the MFG_CTUNE token or the -// configuration value in the Clock Manager. -// Setting the HFXO CTUNE with this method is deprecated. Currently the functionality is provided for keeping -// backwards compatibility with legacy SDKs, and the support will be discontinued in future SDK releases. -// The recommended method is to store CTUNE value in the MFG_CTUNE token. -// Default: 0 -#define SL_BT_CONFIG_SET_CTUNE_FROM_NVM3 (0) -// - -// End Bluetooth Stack Configuration - -// TX Power Levels - -// Minimum radiated TX power level in 0.1dBm unit -// Default: -30 (-3 dBm) -// Configure the minimum radiated TX power level for Bluetooth connections and DTM testing. -// This configuration is used for power control on Bluetooth connections -// if the LE Power Control feature is enabled. -// When this configuration is passed into stack initialization, the stack -// will select the closest value that the device supports. -// API sl_bt_system_set_tx_power() can be used to set the minimum TX power at runtime. -// API sl_bt_system_get_tx_power_setting() can be used to query the selected value. -#define SL_BT_CONFIG_MIN_TX_POWER (-30) - -// Maximum radiated TX power level in 0.1dBm unit -// Default: 80 (8 dBm) -// Configure the maximum radiated TX power level for Bluetooth connections, -// advertising, scanning and DTM testing. -// When this configuration is passed into stack initialization, the stack -// will select the closest value that the device supports. -// API sl_bt_system_set_tx_power() can be used to set the maximum TX power at runtime. -// API sl_bt_system_get_tx_power_setting() can be used to query the selected value. -#define SL_BT_CONFIG_MAX_TX_POWER (80) - -// End TX Power Levels - -// RF Path - -// RF TX path gain in 0.1dBm unit -// Default: 0 -// The Bluetooth stack takes TX RF path gain into account when adjusting transmitter -// output power. Power radiated from the antenna then matches the application request. -// A negative value indicates some power loss in the path. For example, -// with radiated TX power set to +10 dBm and this configuration to -10 -// (i.e., 1 dBm loss), the transmitter output power will be set to +11 dBm. -#define SL_BT_CONFIG_RF_PATH_GAIN_TX (0) - -// RF RX path gain in 0.1dBm unit -// Default: 0 -// RX RF path gain is used to compensate the RSSI reports from the Bluetooth Stack. -#define SL_BT_CONFIG_RF_PATH_GAIN_RX (0) - -// End RF Path - -// <<< end of configuration section >>> - -/** - * By default, Bluetooth requires accurate LF clock for EM2. If the component - * catalog presents, an inaccurate LF clock for EM2 can be used if the Bluetooth - * connection, periodic advertising and periodic advertising synchronization - * features are known to not present. - */ -#define BT_EM2_LFCLK_REQ_FLAG 0 - -#if defined(SL_COMPONENT_CATALOG_PRESENT) -#if !defined(SL_CATALOG_BLUETOOTH_FEATURE_CONNECTION_PRESENT) \ - && !defined(SL_CATALOG_BLUETOOTH_FEATURE_PERIODIC_ADV_PRESENT) \ - && !defined(SL_CATALOG_BLUETOOTH_FEATURE_SYNC_PRESENT) - #undef BT_EM2_LFCLK_REQ_FLAG - #define BT_EM2_LFCLK_REQ_FLAG SL_BT_CONFIG_FLAG_INACCURATE_LFCLK_EM2 -#endif -#endif // SL_COMPONENT_CATALOG_PRESENT - -#ifdef SL_CATALOG_KERNEL_PRESENT - #define SL_BT_CONFIG_FLAGS (SL_BT_CONFIG_FLAG_RTOS | BT_EM2_LFCLK_REQ_FLAG) -#else - #define SL_BT_CONFIG_FLAGS (BT_EM2_LFCLK_REQ_FLAG) -#endif // SL_CATALOG_KERNEL_PRESENT - -#include "sl_bt_stack_config.h" -#include "sl_bgapi_config.h" // For SL_BGAPI_MAX_PAYLOAD_SIZE - -// NOTE: Struct sl_btctrl_ll_priorities is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// The Link Layer scheduler priority configuration is initialized via the Bluetooth Low Energy Controller component. -#define SL_BT_CONFIG_DEFAULT \ - { \ - .config_flags = SL_BT_CONFIG_FLAGS, \ - .bluetooth.max_buffer_memory = SL_BT_CONFIG_BUFFER_SIZE, \ - .scheduler_callback = NULL, \ - .stack_schedule_callback = NULL, \ - .gattdb = &gattdb, \ - .max_timers = SL_BT_CONFIG_MAX_SOFTWARE_TIMERS, \ - .rf.tx_gain = SL_BT_CONFIG_RF_PATH_GAIN_TX, \ - .rf.rx_gain = SL_BT_CONFIG_RF_PATH_GAIN_RX, \ - .rf.tx_min_power = SL_BT_CONFIG_MIN_TX_POWER, \ - .rf.tx_max_power = SL_BT_CONFIG_MAX_TX_POWER, \ - .max_bgapi_payload_size = SL_BGAPI_MAX_PAYLOAD_SIZE, \ - } - -#endif // SL_BLUETOOTH_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_board_control_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_board_control_config.h deleted file mode 100644 index f474c7408..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_board_control_config.h +++ /dev/null @@ -1,88 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Board Control - ******************************************************************************* - * # License - * Copyright 2022 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BOARD_CONTROL_CONFIG_H -#define SL_BOARD_CONTROL_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Enable Virtual COM UART -// Default: 0 -#define SL_BOARD_ENABLE_VCOM 0 - -// Enable Display -// Default: 0 -#define SL_BOARD_ENABLE_DISPLAY 0 - -// Enable Relative Humidity and Temperature sensor -// Default: 0 -#define SL_BOARD_ENABLE_SENSOR_RHT 0 - -// Disable SPI Flash -// Default: 1 -#define SL_BOARD_DISABLE_MEMORY_SPI 1 - -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_BOARD_ENABLE_VCOM -// $[GPIO_SL_BOARD_ENABLE_VCOM] -#ifndef SL_BOARD_ENABLE_VCOM_PORT -#define SL_BOARD_ENABLE_VCOM_PORT SL_GPIO_PORT_B -#endif -#ifndef SL_BOARD_ENABLE_VCOM_PIN -#define SL_BOARD_ENABLE_VCOM_PIN 0 -#endif -// [GPIO_SL_BOARD_ENABLE_VCOM]$ - -// SL_BOARD_ENABLE_DISPLAY -// $[GPIO_SL_BOARD_ENABLE_DISPLAY] -#ifndef SL_BOARD_ENABLE_DISPLAY_PORT -#define SL_BOARD_ENABLE_DISPLAY_PORT SL_GPIO_PORT_C -#endif -#ifndef SL_BOARD_ENABLE_DISPLAY_PIN -#define SL_BOARD_ENABLE_DISPLAY_PIN 9 -#endif -// [GPIO_SL_BOARD_ENABLE_DISPLAY]$ - -// SL_BOARD_ENABLE_SENSOR_RHT -// $[GPIO_SL_BOARD_ENABLE_SENSOR_RHT] -#ifndef SL_BOARD_ENABLE_SENSOR_RHT_PORT -#define SL_BOARD_ENABLE_SENSOR_RHT_PORT SL_GPIO_PORT_D -#endif -#ifndef SL_BOARD_ENABLE_SENSOR_RHT_PIN -#define SL_BOARD_ENABLE_SENSOR_RHT_PIN 3 -#endif -// [GPIO_SL_BOARD_ENABLE_SENSOR_RHT]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_BOARD_CONTROL_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_bt_host_adaptation_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_bt_host_adaptation_config.h deleted file mode 100644 index 4ba5a3dc8..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_bt_host_adaptation_config.h +++ /dev/null @@ -1,59 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Configuration of the Bluetooth host stack system adaptation layer - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BT_HOST_ADAPTATION_CONFIG_H -#define SL_BT_HOST_ADAPTATION_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Bluetooth Host Adaptation Configuration - -// Radio interrupt priority in baremetal applications <1..7:1> -// Default: 4 -// Define the ISR priority for radio interrupts in baremetal applications. The Bluetooth host stack sets this priority when the Bluetooth stack is started. -// -// NOTE: SL_BT_HOST_ADAPTATION_RADIO_IRQ_PRIORITY is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// Please use SL_BT_CONTROLLER_RADIO_IRQ_PRIORITY instead, provided by the Bluetooth Low Energy Controller component. -#define SL_BT_HOST_ADAPTATION_RADIO_IRQ_PRIORITY (4) - -// Linklayer interrupt priority in baremetal applications <1..7:1> -// Default: 5 -// Define the ISR priority for linklayer interrupts in baremetal applications. The Bluetooth host stack sets this priority when the Bluetooth stack is started. -// The value of SL_BT_HOST_ADAPTATION_LINKLAYER_IRQ_PRIORITY must be higher than SL_BT_HOST_ADAPTATION_RADIO_IRQ_PRIORITY. -// -// NOTE: SL_BT_HOST_ADAPTATION_LINKLAYER_IRQ_PRIORITY is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// Please use SL_BT_CONTROLLER_LINKLAYER_IRQ_PRIORITY instead, provided by the Bluetooth Low Energy Controller component. -#define SL_BT_HOST_ADAPTATION_LINKLAYER_IRQ_PRIORITY (5) - -// Bluetooth Host Adaptation Configuration - -// <<< end of configuration section >>> - -#endif // SL_BT_HOST_ADAPTATION_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_bt_rtos_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_bt_rtos_config.h deleted file mode 100644 index b80c07967..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_bt_rtos_config.h +++ /dev/null @@ -1,44 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth RTOS configuration - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BT_RTOS_CONFIG_H -#define SL_BT_RTOS_CONFIG_H - -#include - -#if defined(_SILICON_LABS_32B_SERIES_2) -#include "sl_bt_rtos_config_s2.h" -#elif defined(_SILICON_LABS_32B_SERIES_3) -#include "sl_bt_rtos_config_s3.h" -#else -#error "Device not supported" -#endif - -#endif // SL_BT_RTOS_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_bt_rtos_config_s2.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_bt_rtos_config_s2.h deleted file mode 100644 index eb4fe3ea2..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_bt_rtos_config_s2.h +++ /dev/null @@ -1,84 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth RTOS configuration - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BT_RTOS_CONFIG_S2_H -#define SL_BT_RTOS_CONFIG_S2_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Priority Configuration for Bluetooth RTOS Tasks - -// Bluetooth link layer task priority -// Default: 52 (CMSIS-RTOS2 osPriorityRealtime4) -// Define the priority of the Bluetooth link layer task. This must be a valid -// priority value from CMSIS-RTOS2 osPriority_t definition. The link layer -// task must have the highest priority in these three Bluetooth RTOS tasks. -#define SL_BT_RTOS_LINK_LAYER_TASK_PRIORITY (52) - -// Bluetooth link layer task stack size in bytes -// Default: 1000 -// Define the stack size of the Bluetooth link layer task. The value is in bytes -// and will be word aligned when it is applied at the task creation. -#define SL_BT_RTOS_LINK_LAYER_TASK_STACK_SIZE 1024 - -// Bluetooth host stack task priority -// Default: 51 (CMSIS-RTOS2 osPriorityRealtime3) -// Define the priority of the Bluetooth host stack task. This must be a -// valid priority value from CMSIS-RTOS2 osPriority_t definition. -#define SL_BT_RTOS_HOST_STACK_TASK_PRIORITY (51) - -// Bluetooth host stack task stack size in bytes -// Default: 2000 -// Define the stack size of the Bluetooth host stack task. The value is in bytes -// and will be word aligned when it is applied at the task creation. -#define SL_BT_RTOS_HOST_STACK_TASK_STACK_SIZE 2048 - -// Bluetooth event handler task priority -// Default: 50 (CMSIS-RTOS2 osPriorityRealtime2) -// Define the priority of the Bluetooth event handler task. This must be a -// valid priority value from CMSIS-RTOS2 osPriority_t definition. The event -// handler task must have the lowest priority in these three Bluetooth RTOS tasks. -// The event task is not created and this configuration is unused if the -// Bluetooth Event System IPC component is included in the application -#define SL_BT_RTOS_EVENT_HANDLER_TASK_PRIORITY (50) - -// Bluetooth event handler task stack size in bytes -// Default: 1000 -// Define the stack size of the Bluetooth event handler task. The value is in bytes -// and will be word aligned when it is applied at the task creation. -// The event task is not created and this configuration is unused if the -// Bluetooth Event System IPC component is included in the application -#define SL_BT_RTOS_EVENT_HANDLER_STACK_SIZE 1536 - -// End Priority Configuration for Bluetooth RTOS Tasks - -// <<< end of configuration section >>> - -#endif // SL_BT_RTOS_CONFIG_S2_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_btctrl_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_btctrl_config.h deleted file mode 100644 index 403df1ffe..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_btctrl_config.h +++ /dev/null @@ -1,174 +0,0 @@ -#ifndef SL_BTCTRL_CONFIG_H -#define SL_BTCTRL_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Bluetooth Controller Configuration - -// Bluetooth Controller Buffer Memory -// Default: SL_BT_CONTROLLER_BUFFER_MEMORY -// Define the Amount of memory to allocate for tx/rx buffers in Bluetooth Controller -#ifndef SL_BT_CONTROLLER_BUFFER_MEMORY -#define SL_BT_CONTROLLER_BUFFER_MEMORY (8192) -#endif - -// Bluetooth Controller ACL data packets that can be stored -// Default: SL_BT_CONTROLLER_LE_BUFFER_SIZE_MAX -// Define the total number of the maximum sized ACL data packets that can be received from the host -#ifndef SL_BT_CONTROLLER_LE_BUFFER_SIZE_MAX -#define SL_BT_CONTROLLER_LE_BUFFER_SIZE_MAX (3) -#endif - -// Maximum number of queued advertisement reports <1-255> -// Default: 10 -// Define the maximum number of queued advertisement reports. Additional advertisement reports are dropped. -#ifndef SL_BT_CONFIG_MAX_QUEUED_ADV_REPORTS -#define SL_BT_CONFIG_MAX_QUEUED_ADV_REPORTS (10) -#endif - -// Bluetooth Controller Scanner Reception Early Abort. -// Default: Disabled -// Enable or disable the scanner reception early abort feature. -// This feature allows the controller to control the scanner to abort the reception of a packet if it will conflinct with another scheduled higher priority task. -#ifndef SL_BT_CONTROLLER_SCANNER_RECEPTION_EARLY_ABORT -#define SL_BT_CONTROLLER_SCANNER_RECEPTION_EARLY_ABORT (0) -#endif - -// Linklayer interrupt priority in baremetal applications <1..7:1> -// Default: 5 -// Define the ISR priority for linklayer interrupts in baremetal applications. -// The value of SL_BT_CONTROLLER_LINKLAYER_IRQ_PRIORITY must be higher than SL_BT_CONTROLLER_RADIO_IRQ_PRIORITY. -// -// NOTE: SL_BT_CONTROLLER_LINKLAYER_IRQ_PRIORITY is only applicable in baremetal applications. -// For RCP applications that include an RTOS, Link Layer thread priority is determined by SL_BTCTRL_RTOS_LINK_LAYER_TASK_PRIORITY, -// defined in config/sl_btctrl_rtos_config.h. -// For NCP/SoC applications that include an RTOS, Link Layer thread priority is determined by SL_BT_RTOS_LINK_LAYER_TASK_PRIORITY, -// defined in config/sl_bt_rtos_config.h. -#ifndef SL_BT_CONTROLLER_LINKLAYER_IRQ_PRIORITY -#define SL_BT_CONTROLLER_LINKLAYER_IRQ_PRIORITY (5) -#endif - -// Radio interrupt priority <1..7:1> -// Default: 4 -// Define the ISR priority for radio interrupts. -#ifndef SL_BT_CONTROLLER_RADIO_IRQ_PRIORITY -#define SL_BT_CONTROLLER_RADIO_IRQ_PRIORITY (4) -#endif - -// TX Power Levels - -// Override Default Minimum Supported TX Power Level -// Default: 0 -// Define the minimum radiated TX power level. -#ifndef SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE -#define SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE (0) -#endif - -// Minimum radiated TX power level in 0.1dBm unit -// Default: 0 -// Define the minimum radiated TX power level. -// If the configured power level is lower than what the radio supports, the minimum supported level will be used. -// For NCP and SoC applications, the TX power configuration is located in the Bluetooth Core component. -// This value will nonetheless be applied, provided that SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE is enabled, and the corresponding minimum TX power value in the Bluetooth Core component remains at the default value. -// For RCP applications, this value will be applied if SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE is enabled. If SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE is disabled, this value will be ignored and the minimum supported TX power level will be used. -#ifndef SL_BT_CONTROLLER_MIN_POWER_LEVEL -#define SL_BT_CONTROLLER_MIN_POWER_LEVEL (0) -#endif -// - -// Override Default Maximum Supported TX Power Level -// Default: 0 -// Define the maximum radiated TX power level. -#ifndef SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE -#define SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE (0) -#endif - -// Maximum radiated TX power level in 0.1dBm unit -// Default: 0 -// Define the maximum radiated TX power level. -// If the configured power level is higher than what the radio supports, the maximum supported level will be used. -// For NCP and SoC applications, the TX power configuration is located in the Bluetooth Core component. -// This value will nonetheless be applied, provided that SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE is enabled, and the corresponding maximum TX power value in the Bluetooth Core component remains at the default value. -// For RCP applications, this value will be applied if SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE is enabled. If SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE is disabled, this value will be ignored and the maximum supported TX power level will be used. -#ifndef SL_BT_CONTROLLER_MAX_POWER_LEVEL -#define SL_BT_CONTROLLER_MAX_POWER_LEVEL (0) -#endif -// - -// End TX Power Levels - -// Bluetooth Controller Configuration for LE Connection -// Total transmitted packets threshold for all connections to send the Number Of Completed Packets HCI event to the host <1-255> -// Default: 4 -// Define the number of transmitted air interface ACL packets to trigger the Number Of Completed Packets HCI event. -#ifndef SL_BT_CONTROLLER_COMPLETED_PACKETS_THRESHOLD -#define SL_BT_CONTROLLER_COMPLETED_PACKETS_THRESHOLD (4) -#endif - -// Number of connection events to send the Number Of Completed Packets HCI event to the host <1-255> -// Default: 3 -// Define the maximum number of connection events since the previous Number Of Completed Packets HCI event to trigger reporting of any unreported completed ACL packets. -#ifndef SL_BT_CONTROLLER_COMPLETED_PACKETS_EVENTS_TIMEOUT -#define SL_BT_CONTROLLER_COMPLETED_PACKETS_EVENTS_TIMEOUT (3) -#endif - -// Bluetooth Controller Minimum Connection Event Duration -// Default: SL_BT_CONTROLLER_CONN_EVENT_LENGTH_MIN -// Define the minimum connection event length in 0.625 ms units. This value is used to provide a hint to the linklayer scheduler. -// User could set a larger minimum connection event length when creating a connection or when updating connection parameters. -#ifndef SL_BT_CONTROLLER_CONN_EVENT_LENGTH_MIN -#define SL_BT_CONTROLLER_CONN_EVENT_LENGTH_MIN (3) -#endif - -// Bluetooth Controller Connection Event Extension -// Default: Disabled -// Enable or disable the connection event extension feature. -// This allows connections to overrun lower priority tasks as long as there is data to transmit or receive on the connection, -// and the maximum connection event length is not reached. -#ifndef SL_BT_CONTROLLER_CONN_EVENT_LENGTH_EXTENSION -#define SL_BT_CONTROLLER_CONN_EVENT_LENGTH_EXTENSION (0) -#endif -// Bluetooth Controller Configuration for LE Connection - -// Use legacy event code 0x3e for vendor specific events -// Default: 0 -#ifndef SL_BT_CONTROLLER_USE_LEGACY_VENDOR_SPECIFIC_EVENT_CODE -#define SL_BT_CONTROLLER_USE_LEGACY_VENDOR_SPECIFIC_EVENT_CODE (0) -#endif - -// Adaptive Frequency Hopping operation mode -// Active AFH -// Passive AFH -// Choose between active AFH and passive AFH -// Default: Active AFH -// SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY -#ifndef SL_BT_CONTROLLER_ADAPTIVITY_MODE -#define SL_BT_CONTROLLER_ADAPTIVITY_MODE (SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY) -#endif - -// Advertising Configuration -// Include TX Power in the extended header of primary extended advertising packets -// This is default setting to all advertising sets unless it is specifically overridden by VS_SiliconLabs_Set_Advertising_Config_Bits. -// Default: 0 -// Enabling this option takes effect only if permitted by Le_Set_Extended_Advertising_Parameters -// According to Link Layer specification, Vol 6, Part B, Table 2.4 and Table 2.5: -// Optional in 1M PHY when the advertiser is connectable or scannable, or with auxiliary pointer. -// In other cases, the Extended Advertising TX Power is always optional by settings. -#define SL_BT_CONTROLLER_PRIMARY_EXT_PACKET_INCLUDE_TX_POWER (0) -// -// Include Advertiser Address in the header of primary extended advertising packets -// This is default setting to all advertising sets unless it is specifically overridden by VS_SiliconLabs_Set_Advertising_Config_Bits. -// Default: 0 -// Enabling this option takes effect only if permitted by Le_Set_Extended_Advertising_Parameters -// According to Link Layer specification, Vol 6, Part B, Table 2.4 and Table 2.5: -// Optional in 1M PHY when the advertiser is non-connectable and non-scannable, with auxiliary pointer. -// Mandatory when the advertiser is non-connectable and non-scannable, without auxiliary pointer. -// Forbidden when the advertiser is connectable or scannable. -#define SL_BT_CONTROLLER_PRIMARY_EXT_PACKET_INCLUDE_ADDRESS (0) -// -// Advertising Configuration -// Bluetooth Controller Configuration - -// <<< end of configuration section >>> - -#endif // SL_BTCTRL_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_btctrl_scheduler_priority_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_btctrl_scheduler_priority_config.h deleted file mode 100644 index 0eec28095..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_btctrl_scheduler_priority_config.h +++ /dev/null @@ -1,235 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth Scheduler Priority configuration - ******************************************************************************* - * # License - * Copyright 2025 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H -#define SL_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H -#include "sl_btctrl_linklayer_defs.h" - -// <<< Use Configuration Wizard in Context Menu >>> - -// Bluetooth Low Energy Scheduler Priorities - -// Scan - Min -// <0-255:1> -// Default: 191 -// Define the lowest permitted BLE scan priority. [0-255] -// A lower value indicates a higher priority. -// Scanning is typically considered to be a low priority -// operation, and the default values are set to reflect that. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MIN 191 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MIN - -// Scan - Max -// <0-255:1> -// Default: 143 -// Define the highest permitted BLE scan priority. [0-255] -// A lower value indicates a higher priority. -// Scanning is typically considered to be a low priority -// operation, and the default values are set to reflect that. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MAX 143 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MAX - -// Scan - Step -// <1-255:1> -// Default: 4 -// Define the step size of an increment or decrement of the scan priority. -// This defines how quickly the scanner adjusts the task priority -// in the event of a scheduling conflict. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP -#define SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP 4 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP - -// Advertisement - Min -// <0-255:1> -// Default: 175 -// Define the lowest permitted BLE advertisement priority. [0-255] -// A lower value indicates a higher priority. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MIN 175 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MIN - -// Advertisement - Max -// <0-255:1> -// Default: 127 -// Define the highest permitted BLE advertisement priority. [0-255] -// A lower value indicates a higher priority. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MAX 127 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MAX - -// Advertisement - Step -// <1-255:1> -// Default: 4 -// Define the step size of an increment or decrement of the advertisement priority. -// This defines how quickly the advertiser adjusts the task priority -// in the event of a scheduling conflict. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP -#define SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP 4 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP - -// Connection - Min -// <0-255:1> -// Default: 135 -// Define the lowest permitted BLE connection priority. [0-255] -// A lower value indicates a higher priority. -// The minimum connection priority is by default above the priority of scanning -// and advertising. Connection priority is calculated by how close to the -// supervision timeout the connection is. In good link conditions, the -// connection priority is close to the minimum specified value. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MIN 135 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MIN - -// Connection - Max -// <0-255:1> -// Default: 0 -// Define the highest permitted BLE connection priority. [0-255] -// A lower value indicates a higher priority. -// The default is equal to the maximum possible value. If the connection -// priority has risen to the maximum value then this is likely the last connection -// event before the supervision timeout. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX 0 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX - -// Connection Initiation - Min -// <0-255:1> -// Default: 55 -// Define the lowest permitted BLE connection initiation priority. [0-255] -// A lower value indicates a higher priority. -// The scanning priority during connection establishment. -// The default value gives a relatively high minimum priority to connection -// establishment. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN 55 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN - -// Connection Initiation - Max -// <0-255:1> -// Default: 15 -// Define the highest permitted BLE connection initiation priority. [0-255] -// A lower value indicates a higher priority. -// This default value prevents the initiation task from consuming too much -// high priority connection task time. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX 15 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX - -// Rail Mapping Window Min -// <0-255:1> -// Default: 16 -// Define the minimum value of RAIL mapping window. -// This parameter specifies how task priorities are passed to radio -// coexistence and multiprotocol schedulers. -// Internal task priorities in Bluetooth should always use maximum range of 0-255, -// and use this mapping window to adapt to other protocols. -// Internal task priorities are linear scaled to the window before passing -// to RAIL. -// If coexistence or multiprotocol configuration is not used, then these -// parameters have no effect. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 16 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN - -// Rail Mapping Window Range -// <0-255:1> -// Default: 32 -// Define the maximum value of the RAIL mapping window. -// See SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN for a description of -// this parameter. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 32 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX - -// PAwR Tx - Min -// <0-255:1> -// Default: 15 -// Define the lowest permitted BLE PAwR transmission priority. [0-255] -// A lower value indicates a higher priority. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MIN 15 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MIN - -// PAwR Tx - Max -// <0-255:1> -// Default: 5 -// Define the highest permitted BLE PAwR transmission priority. [0-255] -// A lower value indicates a higher priority. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MAX 5 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MAX - -// PAwR Rx - Min -// <0-255:1> -// Default: 20 -// Define the lowest permitted BLE PAwR reception priority. [0-255] -// A lower value indicates a higher priority. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MIN 20 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MIN - -// PAwR Rx - Max -// <0-255:1> -// Default: 10 -// Define the highest permitted BLE PAwR reception priority. [0-255] -// A lower value indicates a higher priority. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MAX 10 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MAX - -// - -// <<< end of configuration section >>> - -//Default priority configuration -#define SL_BTCTRL_SCHEDULER_PRIORITIES { \ - .scan_min = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MIN, \ - .scan_max = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MAX, \ - .adv_min = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MIN, \ - .adv_max = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MAX, \ - .conn_min = SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MIN, \ - .conn_max = SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX, \ - .init_min = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN, \ - .init_max = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX, \ - .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN, \ - .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX \ - - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN), \ - 0, \ - .adv_step = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP, \ - .scan_step = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP, \ - .pawr_tx_min = SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MIN, \ - .pawr_tx_max = SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MAX, \ - .pawr_rx_min = SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MIN, \ - .pawr_rx_max = SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MAX \ -} - -#endif // SL_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_clock_manager_oscillator_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_clock_manager_oscillator_config.h deleted file mode 100644 index ae4127646..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_clock_manager_oscillator_config.h +++ /dev/null @@ -1,376 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Clock Manager - Oscillators configuration file. - ******************************************************************************* - * # License - * Copyright 2025 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_CLOCK_MANAGER_OSCILLATOR_CONFIG_H -#define SL_CLOCK_MANAGER_OSCILLATOR_CONFIG_H - -#if defined(SL_COMPONENT_CATALOG_PRESENT) -#include "sl_component_catalog.h" - -#endif - -// Internal Defines: DO NOT MODIFY -#define SL_CLOCK_MANAGER_HFXO_EN_ENABLE 1 -#define SL_CLOCK_MANAGER_HFXO_EN_DISABLE 0 - -#if defined(SL_CATALOG_RAIL_LIB_PRESENT) -#define SL_CLOCK_MANAGER_HFXO_EN_AUTO SL_CLOCK_MANAGER_HFXO_EN_ENABLE -#else -#define SL_CLOCK_MANAGER_HFXO_EN_AUTO SL_CLOCK_MANAGER_HFXO_EN_DISABLE -#endif - -// <<< Use Configuration Wizard in Context Menu >>> - -// Oscillators Settings - -// HFXO Settings (if High Frequency crystal is used) - -// Enable -// Enable to configure HFXO -// AUTO enables HFXO if a radio is used -// AUTO -// ENABLE -// DISABLE -// SL_CLOCK_MANAGER_HFXO_EN_AUTO -#ifndef SL_CLOCK_MANAGER_HFXO_EN -#define SL_CLOCK_MANAGER_HFXO_EN SL_CLOCK_MANAGER_HFXO_EN_ENABLE -#endif - -// Mode -// -// XTAL -// EXTCLK -// EXTCLKPKDET -// HFXO_CFG_MODE_XTAL -#ifndef SL_CLOCK_MANAGER_HFXO_MODE -#define SL_CLOCK_MANAGER_HFXO_MODE HFXO_CFG_MODE_XTAL -#endif - -// Frequency in Hz <38000000-40000000> -// 39000000 -#ifndef SL_CLOCK_MANAGER_HFXO_FREQ -#define SL_CLOCK_MANAGER_HFXO_FREQ 39000000 -#endif - -// CTUNE <0-255> -// 140 -#ifndef SL_CLOCK_MANAGER_HFXO_CTUNE -#define SL_CLOCK_MANAGER_HFXO_CTUNE 87 -#endif - -// Precision in PPM <0-65535> -// 50 -#ifndef SL_CLOCK_MANAGER_HFXO_PRECISION -#define SL_CLOCK_MANAGER_HFXO_PRECISION 50 -#endif - -// CTUNE HXFO manufacturing -// Enable to use CTUNE HFXO manufacturing value for calibration -// 1 -#ifndef SL_CLOCK_MANAGER_CTUNE_MFG_HFXO_EN -#define SL_CLOCK_MANAGER_CTUNE_MFG_HFXO_EN 1 -#endif - -// HFXO crystal sharing feature -// Enable to configure HFXO crystal sharing leader or follower -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_EN -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_EN 0 -#endif - -// Crystal sharing leader -// Enable to configure HFXO crystal sharing leader -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_EN -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_EN 0 -#endif - -// Crystal sharing leader minimum startup delay -// If enabled, BUFOUT does not start until timeout set in -// SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_TIMEOUT_STARTUP expires. -// This prevents waste of power if BUFOUT is ready too early. -// 1 -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_MIN_STARTUP_DELAY_EN -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_MIN_STARTUP_DELAY_EN 1 -#endif - -// Wait duration of oscillator startup sequence -// -// T42US -// T83US -// T108US -// T133US -// T158US -// T183US -// T208US -// T233US -// T258US -// T283US -// T333US -// T375US -// T417US -// T458US -// T500US -// T667US -// HFXO_BUFOUTCTRL_TIMEOUTSTARTUP_T208US -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_TIMEOUT_STARTUP -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_TIMEOUT_STARTUP HFXO_BUFOUTCTRL_TIMEOUTSTARTUP_T208US -#endif -// -// - -// Crystal sharing follower -// Enable to configure HFXO crystal sharing follower -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_FOLLOWER_EN -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_FOLLOWER_EN 0 -#endif -// - -// GPIO Port -// Bufout request GPIO port. If SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_EN -// is enabled, this port will be used to receive the BUFOUT request. If -// SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_FOLLOWER_EN is enabled this port -// will be used to request BUFOUT from the crystal sharing leader. -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_GPIO_PORT -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_GPIO_PORT 0 -#endif - -// GPIO Pin -// Bufout request GPIO pin. If SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_EN -// is enabled, this pin will be used to receive the BUFOUT request. If -// SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_FOLLOWER_EN is enabled this pin -// will be used to request BUFOUT from the crystal sharing leader. -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_GPIO_PIN -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_GPIO_PIN 10 -#endif -// -// - -// LFXO Settings (if Low Frequency crystal is used) -// Enable to configure LFXO -#ifndef SL_CLOCK_MANAGER_LFXO_EN -#define SL_CLOCK_MANAGER_LFXO_EN 1 -#endif - -// Mode -// -// XTAL -// BUFEXTCLK -// DIGEXTCLK -// LFXO_CFG_MODE_XTAL -#ifndef SL_CLOCK_MANAGER_LFXO_MODE -#define SL_CLOCK_MANAGER_LFXO_MODE LFXO_CFG_MODE_XTAL -#endif - -// CTUNE <0-127> -// 63 -#ifndef SL_CLOCK_MANAGER_LFXO_CTUNE -#define SL_CLOCK_MANAGER_LFXO_CTUNE 36 -#endif - -// LFXO precision in PPM <0-65535> -// 50 -#ifndef SL_CLOCK_MANAGER_LFXO_PRECISION -#define SL_CLOCK_MANAGER_LFXO_PRECISION 50 -#endif - -// Startup Timeout Delay -// -// CYCLES2 -// CYCLES256 -// CYCLES1K -// CYCLES2K -// CYCLES4K -// CYCLES8K -// CYCLES16K -// CYCLES32K -// LFXO_CFG_TIMEOUT_CYCLES4K -#ifndef SL_CLOCK_MANAGER_LFXO_TIMEOUT -#define SL_CLOCK_MANAGER_LFXO_TIMEOUT LFXO_CFG_TIMEOUT_CYCLES4K -#endif - -// CTUNE LXFO manufacturing -// Enable to use CTUNE LFXO manufacturing value for calibration -// 1 -#ifndef SL_CLOCK_MANAGER_CTUNE_MFG_LFXO_EN -#define SL_CLOCK_MANAGER_CTUNE_MFG_LFXO_EN 1 -#endif -// - -// HFRCO and DPLL Settings -// Frequency Band -// RC Oscillator Frequency Band -// 1 MHz -// 2 MHz -// 4 MHz -// 7 MHz -// 13 MHz -// 16 MHz -// 19 MHz -// 26 MHz -// 32 MHz -// 38 MHz -// 48 MHz -// 56 MHz -// 64 MHz -// 80 MHz -// cmuHFRCODPLLFreq_80M0Hz -#ifndef SL_CLOCK_MANAGER_HFRCO_BAND -#define SL_CLOCK_MANAGER_HFRCO_BAND cmuHFRCODPLLFreq_80M0Hz -#endif - -// Use DPLL -// Enable to use the DPLL with HFRCO -#ifndef SL_CLOCK_MANAGER_HFRCO_DPLL_EN -#define SL_CLOCK_MANAGER_HFRCO_DPLL_EN 1 -#endif - -// Target Frequency in Hz <1000000-80000000> -// DPLL target frequency -// 78000000 -#ifndef SL_CLOCK_MANAGER_DPLL_FREQ -#define SL_CLOCK_MANAGER_DPLL_FREQ 78000000 -#endif - -// Numerator (N) <300-4095> -// Value of N for output frequency calculation fout = fref * (N+1) / (M+1) -// 3839 -#ifndef SL_CLOCK_MANAGER_DPLL_N -#define SL_CLOCK_MANAGER_DPLL_N 3839 -#endif - -// Denominator (M) <0-4095> -// Value of M for output frequency calculation fout = fref * (N+1) / (M+1) -// 1919 -#ifndef SL_CLOCK_MANAGER_DPLL_M -#define SL_CLOCK_MANAGER_DPLL_M 1919 -#endif - -// Reference Clock -// Reference clock source for DPLL -// DISABLED -// HFXO -// LFXO -// CLKIN0 -// CMU_DPLLREFCLKCTRL_CLKSEL_HFXO -#ifndef SL_CLOCK_MANAGER_DPLL_REFCLK -#define SL_CLOCK_MANAGER_DPLL_REFCLK CMU_DPLLREFCLKCTRL_CLKSEL_HFXO -#endif - -// Reference Clock Edge Detect -// Edge detection for reference clock -// Falling Edge -// Rising Edge -// cmuDPLLEdgeSel_Fall -#ifndef SL_CLOCK_MANAGER_DPLL_EDGE -#define SL_CLOCK_MANAGER_DPLL_EDGE cmuDPLLEdgeSel_Fall -#endif - -// DPLL Lock Mode -// Lock mode -// Frequency-Lock Loop -// Phase-Lock Loop -// cmuDPLLLockMode_Freq -#ifndef SL_CLOCK_MANAGER_DPLL_LOCKMODE -#define SL_CLOCK_MANAGER_DPLL_LOCKMODE cmuDPLLLockMode_Phase -#endif - -// Automatic Lock Recovery -// 1 -#ifndef SL_CLOCK_MANAGER_DPLL_AUTORECOVER -#define SL_CLOCK_MANAGER_DPLL_AUTORECOVER 1 -#endif - -// Enable Dither -// 0 -#ifndef SL_CLOCK_MANAGER_DPLL_DITHER -#define SL_CLOCK_MANAGER_DPLL_DITHER 0 -#endif -// -// - -// HFRCOEM23 Settings -// Frequency Band -// RC Oscillator Frequency Band -// 1 MHz -// 2 MHz -// 4 MHz -// 13 MHz -// 16 MHz -// 19 MHz -// 26 MHz -// 32 MHz -// 40 MHz -// cmuHFRCOEM23Freq_19M0Hz -#ifndef SL_CLOCK_MANAGER_HFRCOEM23_BAND -#define SL_CLOCK_MANAGER_HFRCOEM23_BAND cmuHFRCOEM23Freq_19M0Hz -#endif -// - -// LFRCO Settings -// Precision Mode -// Precision mode uses hardware to automatically re-calibrate the LFRCO -// against a crystal driven by the HFXO. Hardware detects temperature -// changes and initiates a re-calibration of the LFRCO as needed when -// operating in EM0, EM1, or EM2. If a re-calibration is necessary and the -// HFXO is not active, the precision mode hardware will automatically -// enable HFXO for a short time to perform the calibration. EM4 operation is -// not allowed while precision mode is enabled. -// If high precision is selected on devices that do not support it, default -// precision will be used. -// Default precision -// High precision -// cmuPrecisionDefault -#ifndef SL_CLOCK_MANAGER_LFRCO_PRECISION -#define SL_CLOCK_MANAGER_LFRCO_PRECISION cmuPrecisionDefault -#endif -// - -// CLKIN0 Settings -// Frequency in Hz <1000000-38000000> -// 38000000 -#ifndef SL_CLOCK_MANAGER_CLKIN0_FREQ -#define SL_CLOCK_MANAGER_CLKIN0_FREQ 38000000 -#endif -// - -// - -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_CLOCK_MANAGER_CLKIN0 -// $[CMU_SL_CLOCK_MANAGER_CLKIN0] - - -// [CMU_SL_CLOCK_MANAGER_CLKIN0]$ - -// <<< sl:end pin_tool >>> - -#endif /* SL_CLOCK_MANAGER_OSCILLATOR_CONFIG_H */ diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_clock_manager_tree_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_clock_manager_tree_config.h deleted file mode 100644 index 1f6f2a089..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_clock_manager_tree_config.h +++ /dev/null @@ -1,309 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Clock Manager - Clock Tree configuration file. - ******************************************************************************* - * # License - * Copyright 2025 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_CLOCK_MANAGER_TREE_CONFIG_H -#define SL_CLOCK_MANAGER_TREE_CONFIG_H - -#if defined(SL_COMPONENT_CATALOG_PRESENT) -#include "sl_component_catalog.h" - -#endif - -// Internal Defines: DO NOT MODIFY -// Those defines are used internally to help converting the DEFAULT_HF_CLOCK_SOURCE and DEFAULT_LF_CLOCK_SOURCE -// selection of each clock branch to the right HW register value. -#define SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_HFRCODPLL 0xFF -#define SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_HFXO 0xFE -#define SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_FSRCO 0xFD -#define SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE_LFRCO 0xFC -#define SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE_LFXO 0xFB -#define SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE_ULFRCO 0xFA - -#if defined(SL_CATALOG_RAIL_LIB_PRESENT) -#define SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_AUTO SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_HFXO -#else -#define SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_AUTO SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_HFRCODPLL -#endif - -// <<< Use Configuration Wizard in Context Menu >>> - -// Clock Tree Settings - -// Default Clock Source Selection for HF clock branches -// AUTO -// HFRCODPLL -// HFXO -// FSRCO -// Selection of the high frequency clock source. HF clock branches can select this value by chosing the DEFAULT_HF value. -// AUTO uses HFXO if a radio is used and HFRCODPLL otherwise -// SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_AUTO -#ifndef SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#define SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_HFXO -#endif - -// Default Clock Source Selection for LF clock branches -// LFRCO -// LFXO -// ULFRCO -// Selection of the low frequency clock source. LF clock branches can select this value by chosing the DEFAULT_HF value. -// SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE_LFRCO -#ifndef SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#define SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE_LFXO -#endif - -// System Clock Branch Settings - -// Clock Source Selection for SYSCLK branch -// DEFAULT_HF -// FSRCO -// HFRCODPLL -// HFXO -// CLKIN0 -// Selection of the Clock source for SYSCLK -// SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_SYSCLK_SOURCE -#define SL_CLOCK_MANAGER_SYSCLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#endif - -// HCLK branch divider -// DIV1 -// DIV2 -// DIV4 -// DIV8 -// DIV16 -// HCLK branch is derived from SYSCLK. This clock drives the AHB bus interface. -// CMU_SYSCLKCTRL_HCLKPRESC_DIV1 -#ifndef SL_CLOCK_MANAGER_HCLK_DIVIDER -#define SL_CLOCK_MANAGER_HCLK_DIVIDER CMU_SYSCLKCTRL_HCLKPRESC_DIV1 -#endif - -// PCLK branch divider -// DIV1 -// DIV2 -// MIN -// PCLK branch is derived from HCLK. This clock drives the APB bus interface. -// SL_CLOCK_MANAGER_PCLK_DIV_MIN -#ifndef SL_CLOCK_MANAGER_PCLK_DIVIDER -#define SL_CLOCK_MANAGER_PCLK_DIVIDER SL_CLOCK_MANAGER_PCLK_DIV_MIN -#endif - -// - -// Trace Clock Branches Settings -// Clock Source Selection for TRACECLK branch -// DISABLE -// SYSCLK -// HFRCOEM23 -// HFRCODPLLRT -// Selection of the Clock source for TRACECLK -// CMU_TRACECLKCTRL_CLKSEL_SYSCLK -#ifndef SL_CLOCK_MANAGER_TRACECLK_SOURCE -#define SL_CLOCK_MANAGER_TRACECLK_SOURCE CMU_TRACECLKCTRL_CLKSEL_SYSCLK -#endif - -// TRACECLK branch Divider -// DIV1 -// DIV2 -// DIV3 -// DIV4 -// Selection of the divider value for TRACECLK branch -// CMU_TRACECLKCTRL_PRESC_DIV1 -#ifndef SL_CLOCK_MANAGER_TRACECLK_DIVIDER -#define SL_CLOCK_MANAGER_TRACECLK_DIVIDER CMU_TRACECLKCTRL_PRESC_DIV1 -#endif - -// - -// High Frequency Clock Branches Settings -// Each HF Clock Tree branch can be customized, else the same clock source as for SYSCLK will be used when possible -// EM01GRPACLK clock the Timer peripherals -// Clock Source Selection for EM01GRPACLK branch -// DEFAULT_HF -// HFRCODPLL -// HFXO -// FSRCO -// HFRCOEM23 -// HFRCODPLLRT -// HFXORT -// Selection of the Clock source for EM01GRPACLK -// SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_EM01GRPACLK_SOURCE -#define SL_CLOCK_MANAGER_EM01GRPACLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#endif - -// Clock Source Selection for EM01GRPCCLK branch -// DEFAULT_HF -// HFRCODPLL -// HFXO -// FSRCO -// HFRCOEM23 -// HFRCODPLLRT -// HFXORT -// Selection of the Clock source for EM01GRPCCLK -// SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_EM01GRPCCLK_SOURCE -#define SL_CLOCK_MANAGER_EM01GRPCCLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#endif - -// Clock Source Selection for IADCCLK branch -// EM01GRPACLK -// FSRCO -// HFRCOEM23 -// Selection of the Clock source for IADCCLK -// CMU_IADCCLKCTRL_CLKSEL_EM01GRPACLK -#ifndef SL_CLOCK_MANAGER_IADCCLK_SOURCE -#define SL_CLOCK_MANAGER_IADCCLK_SOURCE CMU_IADCCLKCTRL_CLKSEL_EM01GRPACLK -#endif - -// - -// Low Frequency Clock Branches Settings - -// Clock Source Selection for EM23GRPACLK branch -// DEFAULT_LF -// LFRCO -// LFXO -// ULFRCO -// Selection of the Clock source for EM23GRPACLK -// SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_EM23GRPACLK_SOURCE -#define SL_CLOCK_MANAGER_EM23GRPACLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#endif - -// Clock Source Selection for EM4GRPACLK branch -// DEFAULT_LF -// LFRCO -// LFXO -// ULFRCO -// Selection of the Clock source for EM4GRPACLK -// SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_EM4GRPACLK_SOURCE -#define SL_CLOCK_MANAGER_EM4GRPACLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#endif - -// Clock Source Selection for SYSRTCCLK branch -// DEFAULT_LF -// LFRCO -// LFXO -// ULFRCO -// Selection of the Clock source for SYSRTCCLK -// SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_SYSRTCCLK_SOURCE -#define SL_CLOCK_MANAGER_SYSRTCCLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#endif - -// Clock Source Selection for WDOG0CLK branch -// DEFAULT_LF -// LFRCO -// LFXO -// ULFRCO -// HCLKDIV1024 -// Selection of the Clock source for WDOG0CLK -// SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_WDOG0CLK_SOURCE -#define SL_CLOCK_MANAGER_WDOG0CLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#endif - -// Clock Source Selection for WDOG1CLK branch -// DEFAULT_LF -// LFRCO -// LFXO -// ULFRCO -// HCLKDIV1024 -// Selection of the Clock source for WDOG1CLK -// SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_WDOG1CLK_SOURCE -#define SL_CLOCK_MANAGER_WDOG1CLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#endif - -// Clock Source Selection for PCNT0CLK branch -// DISABLED -// EM23GRPACLK -// PCNTS0 -// Selection of the Clock source for PCNT0CLK -// CMU_PCNT0CLKCTRL_CLKSEL_EM23GRPACLK -#ifndef SL_CLOCK_MANAGER_PCNT0CLK_SOURCE -#define SL_CLOCK_MANAGER_PCNT0CLK_SOURCE CMU_PCNT0CLKCTRL_CLKSEL_EM23GRPACLK -#endif - -// - -// Mixed Frequency Clock Branch Settings -// Clock Source Selection for EUSART0CLK branch -// DISABLED -// EM01GRPCCLK -// HFRCOEM23 -// LFRCO -// LFXO -// Selection of the Clock source for EUSART0CLK -// CMU_EUSART0CLKCTRL_CLKSEL_EM01GRPCCLK -#ifndef SL_CLOCK_MANAGER_EUSART0CLK_SOURCE -#define SL_CLOCK_MANAGER_EUSART0CLK_SOURCE CMU_EUSART0CLKCTRL_CLKSEL_EM01GRPCCLK -#endif - -// Clock Source Selection for SYSTICKCLK branch -// <0=> HCLK -// <1=> EM23GRPACLK -// Selection of the Clock source for SYSTICKCLK -// 0 -#ifndef SL_CLOCK_MANAGER_SYSTICKCLK_SOURCE -#define SL_CLOCK_MANAGER_SYSTICKCLK_SOURCE 0 -#endif - -// Clock Source Selection for VDAC0CLK branch -// DISABLED -// EM01GRPACLK -// EM23GRPACLK -// FSRCO -// HFRCOEM23 -// Selection of the Clock source for VDAC0CLK -// CMU_VDAC0CLKCTRL_CLKSEL_EM01GRPACLK -#ifndef SL_CLOCK_MANAGER_VDAC0CLK_SOURCE -#define SL_CLOCK_MANAGER_VDAC0CLK_SOURCE CMU_VDAC0CLKCTRL_CLKSEL_EM01GRPACLK -#endif - -// Clock Source Selection for VDAC1CLK branch -// DISABLED -// EM01GRPACLK -// EM23GRPACLK -// FSRCO -// HFRCOEM23 -// Selection of the Clock source for VDAC1CLK -// CMU_VDAC1CLKCTRL_CLKSEL_EM01GRPACLK -#ifndef SL_CLOCK_MANAGER_VDAC1CLK_SOURCE -#define SL_CLOCK_MANAGER_VDAC1CLK_SOURCE CMU_VDAC1CLKCTRL_CLKSEL_EM01GRPACLK -#endif - -// -// - -#endif /* SL_CLOCK_MANAGER_TREE_CONFIG_H */ - -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_core_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_core_config.h deleted file mode 100644 index 27b173d2e..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_core_config.h +++ /dev/null @@ -1,44 +0,0 @@ -/***************************************************************************//** - * @file - * @brief sl_core Configuration - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_CORE_CONFIG_H -#define SL_CORE_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Core Abstraction Configuration - -// Enables measurement of interrupt masking time for debugging purposes. -// Default: 0 -#define SL_CORE_DEBUG_INTERRUPTS_MASKED_TIMING 0 -// - -// <<< end of configuration section >>> -#endif // SL_CORE_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_device_init_dcdc_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_device_init_dcdc_config.h deleted file mode 100644 index 4fb88397d..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_device_init_dcdc_config.h +++ /dev/null @@ -1,58 +0,0 @@ -/***************************************************************************//** - * @file - * @brief DEVICE_INIT_DCDC Config - ******************************************************************************* - * # License - * Copyright 2022 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_DEVICE_INIT_DCDC_CONFIG_H -#define SL_DEVICE_INIT_DCDC_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Enable DC/DC Converter -// -// Default: 1 -#define SL_DEVICE_INIT_DCDC_ENABLE 1 - -// Set DC/DC Converter in Bypass Mode -// -// Default: 0 -#define SL_DEVICE_INIT_DCDC_BYPASS 0 - -// Override for DCDC PFMX Mode Peak Current Setting -// -// Default: 1 -#define SL_DEVICE_INIT_DCDC_PFMX_IPKVAL_OVERRIDE 1 - -// DCDC PFMX Mode Peak Current Setting <0-15> -// -// Default: DCDC_PFMXCTRL_IPKVAL_DEFAULT -#define SL_DEVICE_INIT_DCDC_PFMX_IPKVAL 12 - -// <<< end of configuration section >>> - -#endif // SL_DEVICE_INIT_DCDC_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_gp_interface_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_gp_interface_config.h deleted file mode 100644 index fd5aa20ea..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_gp_interface_config.h +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * @file - * @brief OpenThread Green Power configuration file. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- - -// Rx Offset time -// The rx offset time for the bidirectional message. -// -#define GP_RX_OFFSET_IN_MICRO_SECONDS 21000 -// - -// TX Timeout -// Tx timeout after which the gp outgoing packet is invalid. -// -#define GP_TX_MAX_TIMEOUT_IN_MICRO_SECONDS 5000000 -// -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_hfxo_manager_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_hfxo_manager_config.h deleted file mode 100644 index d9ccd3c70..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_hfxo_manager_config.h +++ /dev/null @@ -1,56 +0,0 @@ -/***************************************************************************//** - * @file - * @brief HFXO Manager configuration file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -// <<< Use Configuration Wizard in Context Menu >>> - -#ifndef SL_HFXO_MANAGER_CONFIG_H -#define SL_HFXO_MANAGER_CONFIG_H - -// HFXO Manager Configuration - -// Enable custom IRQ handler for crystal HF oscillator. -// Enable if HFXO0_IRQHandler is needed from your application. -// The HFXO IRQ priority must not be changed as the HFXO Manager module needs it to be high priority -// and to stay enabled through atomic sections. -// The function sl_hfxo_manager_irq_handler() will have to be called from you custom handler if this is enabled. -// Default: 0 -#define SL_HFXO_MANAGER_CUSTOM_HFXO_IRQ_HANDLER 0 - -// Enable support for Sleepy Crystals. -// If Enabled and if HFXO fails to startup due to a sleepy crystal, HFXO Manager will retry the startup with more aggressive settings -// before falling back to the configured settings. -// Default: 0 -#define SL_HFXO_MANAGER_SLEEPY_CRYSTAL_SUPPORT 0 - -// - -#endif /* SL_HFXO_MANAGER_CONFIG_H */ - -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_i2cspm_sensor_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_i2cspm_sensor_config.h deleted file mode 100644 index 9804ead6f..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_i2cspm_sensor_config.h +++ /dev/null @@ -1,82 +0,0 @@ -/***************************************************************************//** - * @file - * @brief I2CSPM Config - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_I2CSPM_SENSOR_CONFIG_H -#define SL_I2CSPM_SENSOR_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu - -// I2CSPM settings - -// Reference clock frequency -// Frequency in Hz of the reference clock. -// Select 0 to use the frequency of the currently selected clock. -// Default: 0 -#define SL_I2CSPM_SENSOR_REFERENCE_CLOCK 0 - -// Speed mode -// <0=> Standard mode (100kbit/s) -// <1=> Fast mode (400kbit/s) -// <2=> Fast mode plus (1Mbit/s) -// Default: 0 -#define SL_I2CSPM_SENSOR_SPEED_MODE 0 -// end I2CSPM config - -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> -// SL_I2CSPM_SENSOR -// $[I2C_SL_I2CSPM_SENSOR] -#ifndef SL_I2CSPM_SENSOR_PERIPHERAL -#define SL_I2CSPM_SENSOR_PERIPHERAL I2C1 -#endif -#ifndef SL_I2CSPM_SENSOR_PERIPHERAL_NO -#define SL_I2CSPM_SENSOR_PERIPHERAL_NO 1 -#endif - -// I2C1 SCL on PC05 -#ifndef SL_I2CSPM_SENSOR_SCL_PORT -#define SL_I2CSPM_SENSOR_SCL_PORT SL_GPIO_PORT_C -#endif -#ifndef SL_I2CSPM_SENSOR_SCL_PIN -#define SL_I2CSPM_SENSOR_SCL_PIN 5 -#endif - -// I2C1 SDA on PC07 -#ifndef SL_I2CSPM_SENSOR_SDA_PORT -#define SL_I2CSPM_SENSOR_SDA_PORT SL_GPIO_PORT_C -#endif -#ifndef SL_I2CSPM_SENSOR_SDA_PIN -#define SL_I2CSPM_SENSOR_SDA_PIN 7 -#endif -// [I2C_SL_I2CSPM_SENSOR]$ -// <<< sl:end pin_tool >>> - -#endif // SL_I2CSPM_SENSOR_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_main_start_task_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_main_start_task_config.h deleted file mode 100644 index 7752c098f..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_main_start_task_config.h +++ /dev/null @@ -1,105 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Sleep Timer configuration file. - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_MAIN_START_TASK_CONFIG_H -#define SL_MAIN_START_TASK_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// sl_main start task settings - -// Size of the start task stack -// Default: 4096 -#define SL_MAIN_START_TASK_STACK_SIZE_BYTES 4096 - -// Enable start task priority change after initialization -// This is useful for applications that keep the start task during the lifetime of the application. -// Note that the priority change occurs at the end of 'sl_main_second_stage_init()' before 'app_init()' is called. -// Default: Disabled -#define SL_MAIN_ENABLE_START_TASK_PRIORITY_CHANGE 0 - -// Priority that the start task will take after initialization is done. -// Priority: low -// Priority: low + 1 -// Priority: low + 2 -// Priority: low + 3 -// Priority: low + 4 -// Priority: low + 5 -// Priority: low + 6 -// Priority: low + 7 -// Priority: below normal -// Priority: below normal + 1 -// Priority: below normal + 2 -// Priority: below normal + 3 -// Priority: below normal + 4 -// Priority: below normal + 5 -// Priority: below normal + 6 -// Priority: below normal + 7 -// Priority: normal -// Priority: normal + 1 -// Priority: normal + 2 -// Priority: normal + 3 -// Priority: normal + 4 -// Priority: normal + 5 -// Priority: normal + 6 -// Priority: normal + 7 -// Priority: above normal -// Priority: above normal + 1 -// Priority: above normal + 2 -// Priority: above normal + 3 -// Priority: above normal + 4 -// Priority: above normal + 5 -// Priority: above normal + 6 -// Priority: above normal + 7 -// Priority: high -// Priority: high + 1 -// Priority: high + 2 -// Priority: high + 3 -// Priority: high + 4 -// Priority: high + 5 -// Priority: high + 6 -// Priority: high + 7 -// Priority: realtime -// Priority: realtime + 1 -// Priority: realtime + 2 -// Priority: realtime + 3 -// Priority: realtime + 4 -// Priority: realtime + 5 -// Priority: realtime + 6 -// Priority: realtime + 7 -// Default: osPriorityNormal -#define SL_MAIN_START_TASK_PRIORITY osPriorityNormal - -// -// - -#endif /* SL_MAIN_START_TASK_CONFIG_H */ - -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_mbedtls_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_mbedtls_config.h deleted file mode 100644 index 7146ba648..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_mbedtls_config.h +++ /dev/null @@ -1,132 +0,0 @@ -#ifndef SL_MBEDTLS_CONFIG_H -#define SL_MBEDTLS_CONFIG_H - -// ----------------------------------------------------------------------------- -// User exposed config options - -// <<< Use Configuration Wizard in Context Menu >>> - -// TLS/DTLS configuration - -// Complete list of ciphersuites to use, in order of preference. -// Default: MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8 -// Complete list of ciphersuites to use, in order of preference. -// The value of this configuration should be updated for the application needs. -#define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8 - -// Maximum TLS/DTLS fragment length in bytes (input). -// Default: 768 -// The size configured here determines the size of the internal I/O -// buffer used in mbedTLS when receiving data. -#define SL_MBEDTLS_SSL_IN_CONTENT_LEN 768 - -// Maximum TLS/DTLS fragment length in bytes (output). -// Default: 768 -// The size configured here determines the size of the internal I/O -// buffer used in mbedTLS when sending data. -#define SL_MBEDTLS_SSL_OUT_CONTENT_LEN 768 - -// Enable support for RFC 6066 max_fragment_length extension in SSL. -// Default: 1 -// Enable support for RFC 6066 max_fragment_length extension in SSL. -#define SL_MBEDTLS_SSL_MAX_FRAGMENT_LENGTH 1 - -// Enable support for exporting key block and master secret. -// Default: 1 -// Enable support for exporting key block and master secret. -// This is required for certain users of TLS, e.g. EAP-TLS. -#define SL_MBEDTLS_SSL_EXPORT_KEYS 1 - -// Enable the PSK based ciphersuite modes in SSL / TLS. -// Default: 0 -// Enable the PSK based ciphersuite modes in SSL / TLS. -#define SL_MBEDTLS_KEY_EXCHANGE_PSK_ENABLED 1 - -// Enable the ECDHE-PSK based ciphersuite modes in SSL / TLS. -// Default: 0 -// Enable the ECDHE-PSK based ciphersuite modes in SSL / TLS. -#define SL_MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED 0 - -// Enable the ECDHE-ECDSA based ciphersuite modes in SSL / TLS. -// Default: 0 -// Enable the ECDHE-ECDSA based ciphersuite modes in SSL / TLS. -#define SL_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED 0 - -// Enable the ECDHE-RSA based ciphersuite modes in SSL / TLS. -// Default: 0 -// Enable the ECDHE-RSA based ciphersuite modes in SSL / TLS. -#define SL_MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED 0 - -// Enable the ECDH-ECDSA based ciphersuite modes in SSL / TLS. -// Default: 0 -// Enable the ECDH-ECDSA based ciphersuite modes in SSL / TLS. -#define SL_MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED 0 - -// Enable parsing of the compressed curves. -// Default: 0 -// Enable parsing of the compressed curves. -#define SL_MBEDTLS_ECP_ENABLE_COMPRESSED_CURVE_PARSING 0 - -// Assume all buffers passed to PSA functions are owned exclusively by the PSA function. -// Default: 1 -// This option is enabled assuming all buffers passed to any PSA function reside -// in memory that is accessible only to the PSA function during its execution. -// This improves performance by avoiding extra buffer copies, reducing memory -// usage and allocation overhead. However, it is NOT the most secure option and -// should only be enabled if all buffers passed to PSA functions are exclusively -// accessible to PSA and never shared with untrusted code. -// This option MUST be disabled whenever buffer arguments are in memory shared -// with an untrusted party, for example where arguments to PSA calls are passed -// across a trust boundary, e.g. if TrustZone is enabled, and the PSA Crypto core -// is placed in the Secure domain. -#define SL_MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS 1 - -// - -// RSA configuration - -// Disable use of the Chinese Remainder Theorem for RSA. -// Default: 0 -// Disable use of the Chinese Remainder Theorem for RSA private key -// computations. -#define SL_MBEDTLS_RSA_NO_CRT 0 - -// - -// Miscellaneous configuration - -// Enable Silicon Labs' Mbed TLS- and PSA Crypto drivers. -// Default: 1 -// Enable drivers for hardware acceleration (Mbed TLS and PSA Crypto) and -// secure key handling (PSA Crypto). -#define SL_MBEDTLS_DRIVERS_ENABLED 1 - -// - -// <<< end of configuration section >>> - -// ----------------------------------------------------------------------------- -// Sub-files - -#if defined(SLI_MBEDTLS_CONFIG_AUTOGEN_OVERRIDE_FILE) - #include SLI_MBEDTLS_CONFIG_AUTOGEN_OVERRIDE_FILE -#else - #include "sli_mbedtls_config_autogen.h" -#endif - -#include "sli_mbedtls_omnipresent.h" - -#if SL_MBEDTLS_DRIVERS_ENABLED - #include "sli_mbedtls_acceleration.h" -#endif - -#include "sl_mbedtls_device_config.h" - -// Include transformation logic to apply CMSIS-config configuration options to -// the correct Mbed TLS / PSA Crypto options. -#include "sli_mbedtls_config_transform_autogen.h" - -// Included for backward compatibility reasons. -#include "mbedtls/build_info.h" - -#endif // SL_MBEDTLS_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_mbedtls_device_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_mbedtls_device_config.h deleted file mode 100644 index 33c34c42e..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_mbedtls_device_config.h +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef SL_MBEDTLS_DEVICE_CONFIG_H -#define SL_MBEDTLS_DEVICE_CONFIG_H - -// ----------------------------------------------------------------------------- -// User exposed config options - -// <<< Use Configuration Wizard in Context Menu >>> - -// Secure Engine (SE) version configuration - -// Support SE firmware versions older than 1.2.2 <0-1> -// Enable software fallback for ECDH and ECC public key validation on xG21 -// devices running SE firmware versions lower than 1.2.2. -// -// Due to other stability concerns, it is strongly recommended to upgrade -// these devices to the latest firmware revision instead of turning on -// software fallback support. -// -// Not having fallback support will make ECDH operations, as well as PSA -// Crypto public key import, return an error code on affected devices. -// -// Default: 0 -#define SL_SE_SUPPORT_FW_PRIOR_TO_1_2_2 0 - -// Assume an SE firmware version newer than 1.2.2 <0-1> -// For enhanced performance: if it is guaranteed that all devices on which -// this library will run are updated to at least SE FW 1.2.2, then turning -// on this option will remove certain fallback checks, thereby reducing the -// amount of processing required for ECDH and public key verification -// operations. -// Default: 0 -#define SL_SE_ASSUME_FW_AT_LEAST_1_2_2 0 - -// Assume an SE firmware version that is unaffected by Ed25519 errata <0-1> -// For minimal code size and performance savings: if it is guaranteed that -// none of the devices running this library has SE FWs in the range -// [1.2.2, 1.2.8], then enabling this option will disable runtime version -// checks. -// Default: 0 -#define SL_SE_ASSUME_FW_UNAFFECTED_BY_ED25519_ERRATA 0 - -// - -// <<< end of configuration section >>> - -// ----------------------------------------------------------------------------- -// Additional SE version related logic (DO NOT MODIFY) - -// SL_SE_ASSUME_FW_AT_LEAST_1_2_10 is no longer in use, however, it is kept here -// for backwards compatibility. */ -#if defined(SL_SE_ASSUME_FW_AT_LEAST_1_2_10) - #undef SL_SE_ASSUME_FW_AT_LEAST_1_2_2 - #define SL_SE_ASSUME_FW_AT_LEAST_1_2_2 1 - #undef SL_SE_ASSUME_FW_UNAFFECTED_BY_ED25519_ERRATA - #define SL_SE_ASSUME_FW_UNAFFECTED_BY_ED25519_ERRATA 1 -#endif - -// SLI_SE_SUPPORT_FW_PRIOR_TO_1_2_2 is no longer in use, however, it is kept -// here for backwards compatibility. */ -#if defined(SLI_SE_SUPPORT_FW_PRIOR_TO_1_2_2) - #undef SL_SE_SUPPORT_FW_PRIOR_TO_1_2_2 - #define SL_SE_SUPPORT_FW_PRIOR_TO_1_2_2 1 -#endif - -// SLI_SE_ASSUME_FW_AT_LEAST_1_2_2 is no longer in use, however, it is kept -// here for backwards compatibility. */ -#if defined(SLI_SE_ASSUME_FW_AT_LEAST_1_2_2) - #undef SL_SE_ASSUME_FW_AT_LEAST_1_2_2 - #define SL_SE_ASSUME_FW_AT_LEAST_1_2_2 1 -#endif - -#endif // SL_MBEDTLS_DEVICE_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_memlcd_usart_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_memlcd_usart_config.h deleted file mode 100644 index 81f6b8bfc..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_memlcd_usart_config.h +++ /dev/null @@ -1,66 +0,0 @@ -/***************************************************************************//** - * @file - * @brief SPI abstraction used by memory lcd display - ******************************************************************************* - * # License - * Copyright 2022 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_MEMLCD_CONFIG_H -#define SL_MEMLCD_CONFIG_H - -// <<< sl:start pin_tool >>> -// SL_MEMLCD_SPI -// $[USART_SL_MEMLCD_SPI] -#define SL_MEMLCD_SPI_PERIPHERAL USART0 -#define SL_MEMLCD_SPI_PERIPHERAL_NO 0 - -// USART0 TX on PC01 -#define SL_MEMLCD_SPI_TX_PORT SL_GPIO_PORT_C -#define SL_MEMLCD_SPI_TX_PIN 1 - -// USART0 CLK on PC03 -#define SL_MEMLCD_SPI_CLK_PORT SL_GPIO_PORT_C -#define SL_MEMLCD_SPI_CLK_PIN 3 - -// [USART_SL_MEMLCD_SPI]$ - -// SL_MEMLCD_SPI_CS -// $[GPIO_SL_MEMLCD_SPI_CS] -#define SL_MEMLCD_SPI_CS_PORT SL_GPIO_PORT_C -#define SL_MEMLCD_SPI_CS_PIN 8 - -// [GPIO_SL_MEMLCD_SPI_CS]$ - -// SL_MEMLCD_EXTCOMIN -// $[GPIO_SL_MEMLCD_EXTCOMIN] -#define SL_MEMLCD_EXTCOMIN_PORT SL_GPIO_PORT_C -#define SL_MEMLCD_EXTCOMIN_PIN 6 - -// [GPIO_SL_MEMLCD_EXTCOMIN]$ - -// <<< sl:end pin_tool >>> - -#endif diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_memory_manager_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_memory_manager_config.h deleted file mode 100644 index 4a16c29fe..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_memory_manager_config.h +++ /dev/null @@ -1,61 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Memory Heap Allocator configuration file. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -// <<< Use Configuration Wizard in Context Menu >>> - -#ifndef SL_MEMORY_MANAGER_CONFIG_H -#define SL_MEMORY_MANAGER_CONFIG_H - -// Memory Manager Configuration - -// Minimum block allocation size -// <32-128:8> -// Minimum block allocation size to avoid creating a block too small while splitting up an allocated block. -// Size expressed in bytes and can only be a multiple of 8 bytes for the proper data alignment management done by the dynamic allocator malloc() function. -// Default: 32 -#define SL_MEMORY_MANAGER_BLOCK_ALLOCATION_MIN_SIZE (32) - -// Enables the statistics API. -// Setting this configuration to 0 will make all the statistics API return 0. -// Default: 1 -#define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 - -// - -// <<< end of configuration section >>> - -// Keep this configuration outside the configuration section until the feature is ready for release. -// Enables the heap fallback mechanism. -// Setting this configuration to 0 will disable the fallback mechanism on DTCM and PSRAM. -// If this configuration is disabled, the memory manager will not attempt to use alternative memory regions for allocations even if using the fallback parameters. -// Default: 1 -#define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 - -#endif /* SL_MEMORY_MANAGER_CONFIG_H */ diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_memory_manager_region_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_memory_manager_region_config.h deleted file mode 100644 index bd640b59b..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_memory_manager_region_config.h +++ /dev/null @@ -1,51 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Memory Heap and stack size configuration file. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -// <<< Use Configuration Wizard in Context Menu >>> - -#ifndef SL_MEMORY_MANAGER_REGION_CONFIG_H -#define SL_MEMORY_MANAGER_REGION_CONFIG_H - -#include "sl_component_catalog.h" - -// Memory configuration - -// Stack size for the application. -// Default: 1024 -// The stack size configured here will be used by the stack that the -// application uses when coming out of a reset. -#ifndef SL_STACK_SIZE -#define SL_STACK_SIZE 4608 -#endif -// - -// <<< end of configuration section >>> - -#endif /* SL_MEMORY_MANAGER_REGION_CONFIG_H */ diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_mx25_flash_shutdown_usart_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_mx25_flash_shutdown_usart_config.h deleted file mode 100644 index 34b849d39..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_mx25_flash_shutdown_usart_config.h +++ /dev/null @@ -1,64 +0,0 @@ -/***************************************************************************//** - * @file - * @brief SL_MX25_FLASH_SHUTDOWN_USART Config - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_MX25_FLASH_SHUTDOWN_CONFIG_H -#define SL_MX25_FLASH_SHUTDOWN_CONFIG_H - -// <<< sl:start pin_tool >>> -// {usart signal=TX,RX,CLK} SL_MX25_FLASH_SHUTDOWN -// [USART_SL_MX25_FLASH_SHUTDOWN] -#define SL_MX25_FLASH_SHUTDOWN_PERIPHERAL USART0 -#define SL_MX25_FLASH_SHUTDOWN_PERIPHERAL_NO 0 - -// USART0 TX on PC01 -#define SL_MX25_FLASH_SHUTDOWN_TX_PORT SL_GPIO_PORT_C -#define SL_MX25_FLASH_SHUTDOWN_TX_PIN 1 - -// USART0 RX on PC02 -#define SL_MX25_FLASH_SHUTDOWN_RX_PORT SL_GPIO_PORT_C -#define SL_MX25_FLASH_SHUTDOWN_RX_PIN 2 - -// USART0 CLK on PC03 -#define SL_MX25_FLASH_SHUTDOWN_CLK_PORT SL_GPIO_PORT_C -#define SL_MX25_FLASH_SHUTDOWN_CLK_PIN 3 - -// [USART_SL_MX25_FLASH_SHUTDOWN] - -// SL_MX25_FLASH_SHUTDOWN_CS - -// $[GPIO_SL_MX25_FLASH_SHUTDOWN_CS] -#define SL_MX25_FLASH_SHUTDOWN_CS_PORT SL_GPIO_PORT_C -#define SL_MX25_FLASH_SHUTDOWN_CS_PIN 4 - -// [GPIO_SL_MX25_FLASH_SHUTDOWN_CS]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_MX25_FLASH_SHUTDOWN_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_openthread_features_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_openthread_features_config.h deleted file mode 100644 index a3697f8af..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_openthread_features_config.h +++ /dev/null @@ -1,473 +0,0 @@ -/******************************************************************************* - * @file - * @brief OpenThread stack configuration file. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_OPENTHREAD_FEATURES_CONFIG_H -#define _SL_OPENTHREAD_FEATURES_CONFIG_H -//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- -// -// Default OpenThread Stack Configuration - -// Thread Stack Protocol Version -// -// Thread 1.1 -// Thread 1.2 -// Thread 1.3 -// Thread 1.4 -// Current Default: OT_THREAD_VERSION_1_4 -#ifndef OPENTHREAD_CONFIG_THREAD_VERSION -#define OPENTHREAD_CONFIG_THREAD_VERSION OT_THREAD_VERSION_1_4 -#endif -// - -#if (OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2) -// The following features require at least Thread Stack Protocol Version 1.2 -// Backbone Router -#ifndef OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE -#define OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE 0 -#endif -// CSL Auto Synchronization using data polling -#ifndef OPENTHREAD_CONFIG_MAC_CSL_AUTO_SYNC_ENABLE -#define OPENTHREAD_CONFIG_MAC_CSL_AUTO_SYNC_ENABLE 1 -#endif -// CSL (Coordinated Sampled Listening) Debug -#ifndef OPENTHREAD_CONFIG_MAC_CSL_DEBUG_ENABLE -#define OPENTHREAD_CONFIG_MAC_CSL_DEBUG_ENABLE 0 -#endif -// CSL (Coordinated Sampled Listening) Receiver -#ifndef OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE -#define OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE 1 -#endif -// CSL Scheduling Uncertainty (±10 us units) <12..999:1> -// Left unchanged the value will be set to 175 for RCPs, 20 for FTDs, and 12 for MTDs -#ifndef SL_OPENTHREAD_CSL_TX_UNCERTAINTY -#if OPENTHREAD_RADIO - #define SL_OPENTHREAD_CSL_TX_UNCERTAINTY 175 -#elif OPENTHREAD_FTD - #define SL_OPENTHREAD_CSL_TX_UNCERTAINTY 20 -#else - #define SL_OPENTHREAD_CSL_TX_UNCERTAINTY 12 -#endif -#endif -// DUA (Domain Unicast Address) -#ifndef OPENTHREAD_CONFIG_DUA_ENABLE -#define OPENTHREAD_CONFIG_DUA_ENABLE 1 -#endif -// Link Metrics Initiator -#ifndef OPENTHREAD_CONFIG_MLE_LINK_METRICS_INITIATOR_ENABLE -#define OPENTHREAD_CONFIG_MLE_LINK_METRICS_INITIATOR_ENABLE 1 -#endif -// Link Metrics Subject -#ifndef OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE -#define OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE 1 -#endif -// Multicast Listener Registration -#ifndef OPENTHREAD_CONFIG_MLR_ENABLE -#define OPENTHREAD_CONFIG_MLR_ENABLE 1 -#endif -// -#endif // OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2 - -#if (OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_3) -// The following features require at least Thread Stack Protocol Version 1.3 -// DNS Client -#ifndef OPENTHREAD_CONFIG_DNS_CLIENT_ENABLE -#define OPENTHREAD_CONFIG_DNS_CLIENT_ENABLE 1 -#endif -// DNS-SD Server -#ifndef OPENTHREAD_CONFIG_DNSSD_SERVER_ENABLE -#define OPENTHREAD_CONFIG_DNSSD_SERVER_ENABLE 0 -#endif -// Service Registration Protocol (SRP) Client -#ifndef OPENTHREAD_CONFIG_SRP_CLIENT_ENABLE -#define OPENTHREAD_CONFIG_SRP_CLIENT_ENABLE 1 -#endif -// Service Registration Protocol (SRP) Server -#ifndef OPENTHREAD_CONFIG_SRP_SERVER_ENABLE -#define OPENTHREAD_CONFIG_SRP_SERVER_ENABLE 0 -#endif -// TCP API -#ifndef OPENTHREAD_CONFIG_TCP_ENABLE -#define OPENTHREAD_CONFIG_TCP_ENABLE 0 -#endif -// DNS Client over TCP -#ifndef OPENTHREAD_CONFIG_DNS_CLIENT_OVER_TCP_ENABLE -#define OPENTHREAD_CONFIG_DNS_CLIENT_OVER_TCP_ENABLE 0 -#endif -// -#endif // OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_3 - -// Border Agent -#ifndef OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE -#define OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE 0 -#endif -// -// Border Router -#ifndef OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE -#define OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE 0 -#endif -// -// Channel Manager -#ifndef OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE -#define OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE 0 -#endif -// -// Channel Monitor -#ifndef OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE -#define OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE 0 -#endif -// -// Commissioner -#ifndef OPENTHREAD_CONFIG_COMMISSIONER_ENABLE -#define OPENTHREAD_CONFIG_COMMISSIONER_ENABLE 0 -#endif -// Max Joiner Entries -// The maximum number of Joiner entries maintained by the Commissioner. -// 2 -#ifndef OPENTHREAD_CONFIG_COMMISSIONER_MAX_JOINER_ENTRIES -#define OPENTHREAD_CONFIG_COMMISSIONER_MAX_JOINER_ENTRIES 2 -#endif -// -// COAP API -#ifndef OPENTHREAD_CONFIG_COAP_API_ENABLE -#define OPENTHREAD_CONFIG_COAP_API_ENABLE 0 -#endif -// -// COAP Observe (RFC7641) API -#ifndef OPENTHREAD_CONFIG_COAP_OBSERVE_API_ENABLE -#define OPENTHREAD_CONFIG_COAP_OBSERVE_API_ENABLE 0 -#endif -// -// COAP Secure API -#ifndef OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE -#define OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE 0 -#endif -// -// COAP Blockwise Transfer -#ifndef OPENTHREAD_CONFIG_COAP_BLOCKWISE_TRANSFER_ENABLE -#define OPENTHREAD_CONFIG_COAP_BLOCKWISE_TRANSFER_ENABLE 0 -#endif -// -// DHCP6 Client -#ifndef OPENTHREAD_CONFIG_DHCP6_CLIENT_ENABLE -#define OPENTHREAD_CONFIG_DHCP6_CLIENT_ENABLE 0 -#endif -// -// DHCP6 Server -#ifndef OPENTHREAD_CONFIG_DHCP6_SERVER_ENABLE -#define OPENTHREAD_CONFIG_DHCP6_SERVER_ENABLE 0 -#endif -// -// ECDSA (Elliptic Curve Digital Signature Algorithm) (Required for Matter support) -#ifndef OPENTHREAD_CONFIG_ECDSA_ENABLE -#define OPENTHREAD_CONFIG_ECDSA_ENABLE 1 -#endif -// -// External Heap -#ifndef OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE -#define OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE 1 -#endif -// -// IPv6 Fragmentation -#ifndef OPENTHREAD_CONFIG_IP6_FRAGMENTATION_ENABLE -#define OPENTHREAD_CONFIG_IP6_FRAGMENTATION_ENABLE 0 -#endif -// -// IPv6 Limits -// Maximum IPv6 external unicast addresses -// Maximum number of IPv6 unicast addresses allowed to be externally added -// 4 -#ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS -#define OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS 4 -#endif -// Maximum IPv6 external multicast addresses -// Maximum number of IPv6 multicast addresses allowed to be externally added -// 4 -#ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS -#define OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS 4 -#endif -// Maximum IPv6 address registrations for MTD -// The maximum number of IPv6 address registrations for MTD. -// If left unchanged will default to the value of OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD -// 4 -#ifndef OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER -#define OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER (OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD) -#endif -// -// Jam Detection -#ifndef OPENTHREAD_CONFIG_JAM_DETECTION_ENABLE -#define OPENTHREAD_CONFIG_JAM_DETECTION_ENABLE 0 -#endif -// -// Joiner -#ifndef OPENTHREAD_CONFIG_JOINER_ENABLE -#define OPENTHREAD_CONFIG_JOINER_ENABLE 0 -#endif -// -// Link Raw Service -#ifndef OPENTHREAD_CONFIG_LINK_RAW_ENABLE -#define OPENTHREAD_CONFIG_LINK_RAW_ENABLE 0 -#endif -// -// MAC Filter -#ifndef OPENTHREAD_CONFIG_MAC_FILTER_ENABLE -#define OPENTHREAD_CONFIG_MAC_FILTER_ENABLE 0 -#endif -// -// MLE Children -// Maximum number of Thread children supported by the device -// Default is 10. Used by the Thread stack to configure the size of child table. -// 10 -#ifndef OPENTHREAD_CONFIG_MLE_MAX_CHILDREN -#define OPENTHREAD_CONFIG_MLE_MAX_CHILDREN 10 -#endif -// -// MLE Long Routes extension (experimental) -#ifndef OPENTHREAD_CONFIG_MLE_LONG_ROUTES_ENABLE -#define OPENTHREAD_CONFIG_MLE_LONG_ROUTES_ENABLE 0 -#endif -// -// MultiPAN RCP -#ifndef OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE -#define OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE 0 -#endif -// Broadcast IID for spinel frames -// Define broadcast IID for spinel frames dedicated to all hosts in multipan configuration -// 0 -#ifndef OPENTHREAD_SPINEL_CONFIG_BROADCAST_IID -#define OPENTHREAD_SPINEL_CONFIG_BROADCAST_IID 0 -#endif -#if OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE -// Maximum number of Zigbee children for multiprotocol (DMP) builds -// Ensures correct table sizing for Zigbee when DMP/multipan is enabled. -// 6 -#ifndef SL_ZIGBEE_MAX_END_DEVICE_CHILDREN -#define SL_ZIGBEE_MAX_END_DEVICE_CHILDREN 6 -#endif -#endif -// -// Multiple OpenThread Instances -#ifndef OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE -#define OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE 0 -#endif -// Multiple Static Instance Support -#ifndef OPENTHREAD_CONFIG_MULTIPLE_STATIC_INSTANCE_ENABLE -#define OPENTHREAD_CONFIG_MULTIPLE_STATIC_INSTANCE_ENABLE 0 -#endif -// Number of OpenThread Instances -// Default is 2. Number of OpenThread Instances For Static Buffer Allocation. -// 2 -#ifndef OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM -#define OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM 2 -#endif -// -// -// Define maximum total source match table entries for both OT and Zigbee. -// In multi-instance builds (SoC or RCP/host), table must support all OT instances + Zigbee. -// For single instance (default), table sized to just OT children. -// This value is used to size all source match tables in both OT and Zigbee code. -// Note: this is purposedly not being setup with CMSIS annotations. -#ifndef RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE -#if SL_ZIGBEE_MAX_END_DEVICE_CHILDREN -// Multipan / DMP case: OT + Zigbee -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - ((OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * (OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM - 1)) \ - + SL_ZIGBEE_MAX_END_DEVICE_CHILDREN) -#else -// Multi-instance OT-only case -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - (OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM) -#endif -#else -// Single-instance OT (SoC / NCP / non-multipan RCP) -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES OPENTHREAD_CONFIG_MLE_MAX_CHILDREN -#endif -#endif -// Spinel Match Table -// Maximum number of spinel source match table entries -// Ensure that this value is the total of the number of openthread children times the number of openthread instances plus the number of Zigbee children. -#ifndef OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES -#define OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#endif -// -// OTNS (OpenThread Network Simulator) -#ifndef OPENTHREAD_CONFIG_OTNS_ENABLE -#define OPENTHREAD_CONFIG_OTNS_ENABLE 0 -#endif -// -// Ping Sender Module -#ifndef OPENTHREAD_CONFIG_PING_SENDER_ENABLE -#define OPENTHREAD_CONFIG_PING_SENDER_ENABLE 1 -#endif -// -// Power Calibration Module (RCP only configuration) -#ifndef OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE -#define OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE 0 -#endif -// Maximum raw power calibration length -// Max raw power calibration length -// 4 -#ifndef SL_OPENTHREAD_RAW_POWER_CALIBRATION_LENGTH -#define SL_OPENTHREAD_RAW_POWER_CALIBRATION_LENGTH 4 -#endif -// Maximum FEM config setting length -// Max FEM config setting length -// 4 -#ifndef SL_OPENTHREAD_FEM_SETTING_LENGTH -#define SL_OPENTHREAD_FEM_SETTING_LENGTH 4 -#endif -// -// Platform UDP -#ifndef OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE -#define OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE 0 -#endif -// -// Reference Device for Thread Test Harness -#ifndef OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE -#define OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE 0 -#endif -// -// Service Entries in Thread Network Data -#ifndef OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE -#define OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE 0 -#endif -// -// RAM (volatile-only storage) -#ifndef OPENTHREAD_SETTINGS_RAM -#define OPENTHREAD_SETTINGS_RAM 0 -#endif -// -// SLAAC Addresses -#ifndef OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE -#define OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE 1 -#endif -// -// SNTP Client -#ifndef OPENTHREAD_CONFIG_SNTP_CLIENT_ENABLE -#define OPENTHREAD_CONFIG_SNTP_CLIENT_ENABLE 0 -#endif -// -// TMF Network Diagnostic client API -#ifndef OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE -#define OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE 1 -#endif -// -// Time Synchronization Service -#ifndef OPENTHREAD_CONFIG_TIME_SYNC_ENABLE -#define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 0 -#endif -// -// Uptime of OpenThread instance -#ifndef OPENTHREAD_CONFIG_UPTIME_ENABLE -#define OPENTHREAD_CONFIG_UPTIME_ENABLE 1 -#endif -// -// UDP Forward -#ifndef OPENTHREAD_CONFIG_UDP_FORWARD_ENABLE -#define OPENTHREAD_CONFIG_UDP_FORWARD_ENABLE 0 -#endif -// -// Enable Mac beacon payload parsing support -#ifndef OPENTHREAD_CONFIG_MAC_BEACON_PAYLOAD_PARSING_ENABLE -#define OPENTHREAD_CONFIG_MAC_BEACON_PAYLOAD_PARSING_ENABLE 1 -#endif -// -// Radio Driver RX buffers -// Maximum number of RX buffers -// The maximum number of RX buffers to use in the radio driver. -// 16 -#ifndef SL_OPENTHREAD_RADIO_RX_BUFFER_COUNT -#define SL_OPENTHREAD_RADIO_RX_BUFFER_COUNT 16 -#endif -// -// -// Logging -// LOG_OUTPUT -// NONE -// APP -// PLATFORM_DEFINED -// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP -// OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT -#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#endif - -// DYNAMIC_LOG_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE -#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 -#endif - -// Enable Logging -#define OPENTHREAD_FULL_LOGS_ENABLE 0 -#if OPENTHREAD_FULL_LOGS_ENABLE - -// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. -// LOG_LEVEL -// NONE -// CRIT -// WARN -// NOTE -// INFO -// DEBG -// Default: OT_LOG_LEVEL_DEBG -// OT_LOG_LEVEL_DEBG -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL -#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG -#endif -// CLI -#ifndef OPENTHREAD_CONFIG_LOG_CLI -#define OPENTHREAD_CONFIG_LOG_CLI 1 -#endif -// PKT_DUMP -#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP -#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 -#endif -// PLATFORM -#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM -#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 -#endif -// PREPEND_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL -#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 -#endif - -#endif // OPENTHREAD_FULL_LOGS_ENABLE - -// Log crash dump after initialization -#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE -#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 -#endif - -// -// -// - -// <<< end of configuration section >>> -#endif // _SL_OPENTHREAD_FEATURES_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_openthread_radio_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_openthread_radio_config.h deleted file mode 100644 index 478a72430..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_openthread_radio_config.h +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * @file - * @brief OpenThread radio configuration file. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_OPENTHREAD_RADIO_CONFIG_H -#define _SL_OPENTHREAD_RADIO_CONFIG_H -//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- -// -// Default EFR32 Radio Configuration - -// Recieve Sensitivity [dBm] -#define SL_OPENTHREAD_RECEIVE_SENSITIVITY -100 // dBm -// RSSI Average Time [us] -#define SL_OPENTHREAD_RSSI_AVERAGING_TIME 16 // us -// RSSI Average Timeout [us] -#define SL_OPENTHREAD_RSSI_AVERAGING_TIMEOUT 300 // us -// -// <<< end of configuration section >>> -#endif // _SL_OPENTHREAD_RADIO_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_openthread_rtos_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_openthread_rtos_config.h deleted file mode 100644 index 6dc710fcc..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_openthread_rtos_config.h +++ /dev/null @@ -1,109 +0,0 @@ -/******************************************************************************* - * @file - * @brief OpenThread RTOS configuration file. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread stack task priority -// Default: 24 (CMSIS-RTOS2 osPriorityNormal) -// Defines OpenThread stack task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_STACK_TASK_PRIORITY (24) - -// -// Priority Configuration for OpenThread App Task -// OpenThread task priority -// Default: 23 (CMSIS-RTOS2 osPriorityBelowNormal7) -// Defines OpenThread App task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_APP_TASK_PRIORITY (23) - -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread serial task prority -// Default: 16 (CMSIS-RTOS2 osPriorityBelowNormal) -// Defines OpenThread serial task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_SERIAL_TASK_PRIORITY (16) - -// OpenThread stack task stack size in bytes <1000-20000> -// Default: 4608 -// Defines the stack size of the OpenThread RTOS stack task. The value is in bytes and -// and will be word aligned when it is applied at the task creation. -#ifndef SL_OPENTHREAD_STACK_TASK_MEM_SIZE -#if defined(_SILICON_LABS_32B_SERIES_3) -#define SL_OPENTHREAD_STACK_TASK_MEM_SIZE (6144) -#else -#define SL_OPENTHREAD_STACK_TASK_MEM_SIZE (4608) -#endif -#endif - -// OpenThread app task stack size in bytes <1000-20000> -// Default: 4608 -// Defines the stack size of the OpenThread RTOS app task. The value is in bytes and -// and will be word aligned when it is applied at the task creation. -#define SL_OPENTHREAD_APP_TASK_MEM_SIZE (4608) - -// OpenThread serial task stack size in bytes <1000-20000> -// Default: 3072 -// Defines the stack size of the OpenThread RTOS serial task. The value is in bytes and -// and will be word aligned when it is applied at the task creation. -#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3072) - -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread serial task prority -// Default: 16 (CMSIS-RTOS2 osPriorityBelowNormal) -// Defines OpenThread serial task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_SERIAL_TASK_PRIORITY (16) - -// -// App Task -// Enable default App task -// Default: On (for non-RCP apps) -#if OPENTHREAD_RADIO -#define SL_OPENTHREAD_ENABLE_APP_TASK 0 -#else -#define SL_OPENTHREAD_ENABLE_APP_TASK 0 -#endif - -// -// Serial task -// Enable Serial task -// Default: On (for non-RCP apps) -#if OPENTHREAD_RADIO -#define SL_OPENTHREAD_ENABLE_SERIAL_TASK 0 -#else -#define SL_OPENTHREAD_ENABLE_SERIAL_TASK 0 -#endif - -// -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_power_manager_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_power_manager_config.h deleted file mode 100644 index 86b9fef27..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_power_manager_config.h +++ /dev/null @@ -1,100 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Power Manager configuration file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -// <<< Use Configuration Wizard in Context Menu >>> - -#ifndef SL_POWER_MANAGER_CONFIG_H -#define SL_POWER_MANAGER_CONFIG_H - -// Power Manager Configuration - -// Enable custom IRQ handler for external HF oscillator. -// Enable if CMU_IRQHandler/HFXO0_IRQHandler is needed from your application. -// The function sl_power_manager_irq_handler() will have to be called from your custom handler if this is enabled. -// Default: 0 -#ifndef SL_POWER_MANAGER_CUSTOM_HF_OSCILLATOR_IRQ_HANDLER -#define SL_POWER_MANAGER_CUSTOM_HF_OSCILLATOR_IRQ_HANDLER 0 -#endif - -// Enable fast wakeup (disable voltage scaling in EM2/3 mode) -// Enable or disable voltage scaling in EM2/3 modes (when available). This decreases wakeup time by about 30 us. -// Deprecated. It is replaced by the function sl_power_manager_em23_voltage_scaling_enable_fast_wakeup() -// Default: 0 -#ifndef SL_POWER_MANAGER_CONFIG_VOLTAGE_SCALING_FAST_WAKEUP -#define SL_POWER_MANAGER_CONFIG_VOLTAGE_SCALING_FAST_WAKEUP 0 -#endif - -// Enable voltage scaling in EM0 and EM1 mode. -// Enable or disable voltage scaling in EM0/1 modes. With this config enabled, the voltage -// scaling will be configured at the lowest possible level based on the system clock. -// Default: 0 -#ifndef SL_POWER_MANAGER_ENABLE_EM01_VOLTAGE_SCALING -#define SL_POWER_MANAGER_ENABLE_EM01_VOLTAGE_SCALING 0 -#endif - -// Enable debugging feature -// Enable or disable debugging features (trace the different modules that have requirements). -// Default: 0 -#ifndef SL_POWER_MANAGER_DEBUG -#define SL_POWER_MANAGER_DEBUG 0 -#endif - -// Maximum numbers of requirements that can be logged -// Default: 10 -#ifndef SL_POWER_MANAGER_DEBUG_POOL_SIZE -#define SL_POWER_MANAGER_DEBUG_POOL_SIZE 10 -#endif -// - -// Pin retention mode -// -// No retention -// Retention through EM4 -// Retention through EM4 and wakeup -// power_manager_pin_retention_disable -#ifndef SL_POWER_MANAGER_INIT_EMU_EM4_PIN_RETENTION_MODE -#define SL_POWER_MANAGER_INIT_EMU_EM4_PIN_RETENTION_MODE EMU_EM4CTRL_EM4IORETMODE_DISABLE -#endif - -// Enable EM2 debugging feature -// Enable or disable debugging features. -// Force PD0B/PD0D to stay on during EM2 entry. This allows the debugger to remain connected in EM2 and EM3. -// Enabling debug connectivity results in an increased power consumption in EM2/EM3. -// Default: 1 -#ifndef SL_POWER_MANAGER_INIT_EMU_EM2_DEBUG_ENABLE -#define SL_POWER_MANAGER_INIT_EMU_EM2_DEBUG_ENABLE 1 -#endif -// - -// - -#endif /* SL_POWER_MANAGER_CONFIG_H */ - -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_rail_util_pa_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_rail_util_pa_config.h deleted file mode 100644 index b72b54eb0..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_rail_util_pa_config.h +++ /dev/null @@ -1,83 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Power Amplifier configuration file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_RAIL_UTIL_PA_CONFIG_H -#define SL_RAIL_UTIL_PA_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// PA Configuration -// Initial PA Power (deci-dBm, 100 = 10.0 dBm) -// Default: 100 -#define SL_RAIL_UTIL_PA_POWER_DECI_DBM 100 - -// PA Ramp Time (microseconds) -// <0-65535:1> -// Default: 10 -#define SL_RAIL_UTIL_PA_RAMP_TIME_US 10 - -// Milli-volts on PA supply pin (PA_VDD) -// <0-65535:1> -// Default: 3300 -#define SL_RAIL_UTIL_PA_VOLTAGE_MV 1800 - -// 2.4 GHz PA Selection -// Highest Possible -// High Power (chip-specific) -// Low Power -// Disable -// Default: RAIL_TX_POWER_MODE_2P4GIG_HIGHEST -#define SL_RAIL_UTIL_PA_SELECTION_2P4GHZ RAIL_TX_POWER_MODE_2P4GIG_HIGHEST - -// Sub-GHz PA Selection -// Disable -// Default: RAIL_TX_POWER_MODE_NONE -#define SL_RAIL_UTIL_PA_SELECTION_SUBGHZ RAIL_TX_POWER_MODE_NONE -// - -// PA Curve Configuration -// Header file containing custom PA curves -// Default: "pa_curves_efr32.h" -#define SL_RAIL_UTIL_PA_CURVE_HEADER "pa_curves_efr32.h" - -// Header file containing PA curve types -// Default: "pa_curve_types_efr32.h" -#define SL_RAIL_UTIL_PA_CURVE_TYPES "pa_curve_types_efr32.h" -// - -// PA Calibration Configuration -// Enable PA Calibration -// Default: 1 -#define SL_RAIL_UTIL_PA_CALIBRATION_ENABLE 1 -// - -// <<< end of configuration section >>> - -#endif // SL_RAIL_UTIL_PA_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_rail_util_pa_tables_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_rail_util_pa_tables_config.h deleted file mode 100644 index bd05ea57d..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_rail_util_pa_tables_config.h +++ /dev/null @@ -1,49 +0,0 @@ -/***************************************************************************//** - * @file - * @brief PA Tables configuration file. - ******************************************************************************* - * # License - * Copyright 2025 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_RAIL_UTIL_PA_TABLES_CONFIG_H -#define SL_RAIL_UTIL_PA_TABLES_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// PA Table Configuration -// PA Table Selection -// <"sl_rail_util_pa_dbm_powersetting_mapping_table_10dbm.h"=> 10dBm PA powersetting mapping table -// <"sl_rail_util_pa_dbm_powersetting_mapping_table_0dbm.h"=> 0dBm PA powersetting mapping table -// <"sl_rail_util_pa_dbm_powersetting_mapping_table_automode_0_10dbm.h"=> 0dBm-10dBm automode PA powersetting mapping table -// Default: "sl_rail_util_pa_dbm_powersetting_mapping_table_automode_0_10dbm.h" -#define SL_RAIL_UTIL_PA_TABLE_HEADER "sl_rail_util_pa_dbm_powersetting_mapping_table_automode_0_10dbm.h" -// - -// <<< end of configuration section >>> - -#include SL_RAIL_UTIL_PA_TABLE_HEADER - -#endif // SL_RAIL_UTIL_PA_TABLES_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_rail_util_power_manager_init_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_rail_util_power_manager_init_config.h deleted file mode 100644 index cbc69f24d..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_rail_util_power_manager_init_config.h +++ /dev/null @@ -1,44 +0,0 @@ -/***************************************************************************//** - * @file - * @brief RAIL power manager configuration file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H -#define SL_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// RAIL power manager configuration - -// Enable RAIL power manager initialization -// Default: 1 -#define SL_RAIL_UTIL_RAIL_POWER_MANAGER_INIT 1 - -// -// <<< end of configuration section >>> -#endif // SL_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_rail_util_pti_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_rail_util_pti_config.h deleted file mode 100644 index 736b91558..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_rail_util_pti_config.h +++ /dev/null @@ -1,71 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Packet Trace Information configuration file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_RAIL_UTIL_PTI_CONFIG_H -#define SL_RAIL_UTIL_PTI_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> -// PTI Configuration - -// PTI mode -// UART -// UART onewire -// SPI -// Disabled -// Default: SL_RAIL_PTI_MODE_UART -#define SL_RAIL_UTIL_PTI_MODE SL_RAIL_PTI_MODE_UART - -// PTI Baud Rate (Hertz) -// <147800-20000000:1> -// Default: 1600000 -#define SL_RAIL_UTIL_PTI_BAUD_RATE_HZ 1600000 - -// -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> -// SL_RAIL_UTIL_PTI -// $[PTI_SL_RAIL_UTIL_PTI] -#define SL_RAIL_UTIL_PTI_PERIPHERAL PTI - -// PTI DOUT on PD04 -#define SL_RAIL_UTIL_PTI_DOUT_PORT SL_GPIO_PORT_D -#define SL_RAIL_UTIL_PTI_DOUT_PIN 4 - -// PTI DFRAME on PD05 -#define SL_RAIL_UTIL_PTI_DFRAME_PORT SL_GPIO_PORT_D -#define SL_RAIL_UTIL_PTI_DFRAME_PIN 5 - - -// [PTI_SL_RAIL_UTIL_PTI]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_RAIL_UTIL_PTI_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_rail_util_rssi_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_rail_util_rssi_config.h deleted file mode 100644 index 128d705f5..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_rail_util_rssi_config.h +++ /dev/null @@ -1,48 +0,0 @@ -/***************************************************************************//** - * @file - * @brief RSSI configuration header file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_RAIL_UTIL_RSSI_CONFIG_H -#define SL_RAIL_UTIL_RSSI_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// RSSI Offset Configuration - -// Software RSSI offset value -// Default: 0 -#define SL_RAIL_UTIL_RSSI_OFFSET 0 - -// Define to store in and provide RSSI offset from NVM3 -// Default: 0 -#define SL_RAIL_UTIL_RSSI_SUPPORTS_NVM_DATA 0 - -// -// <<< end of configuration section >>> -#endif // SL_RAIL_UTIL_RSSI_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_rail_util_sequencer_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_rail_util_sequencer_config.h deleted file mode 100644 index 640ef0c0d..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_rail_util_sequencer_config.h +++ /dev/null @@ -1,46 +0,0 @@ -/***************************************************************************//** - * @file - * @brief - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_RAIL_UTIL_SEQUENCER_H -#define SL_RAIL_UTIL_SEQUENCER_H - -#ifdef __cplusplus -extern "C" { -#endif - -#define SL_RAIL_UTIL_SEQUENCER_RUNTIME_IMAGE_SELECTION 0 - -#define SL_RAIL_UTIL_SEQUENCER_IMAGE RAIL_SEQ_IMAGE_PA_10_DBM - -#ifdef __cplusplus -} -#endif - -#endif // SL_RAIL_UTIL_SEQUENCER_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_simple_button_btn0_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_simple_button_btn0_config.h deleted file mode 100644 index 552aa94c9..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_simple_button_btn0_config.h +++ /dev/null @@ -1,61 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Button Driver User Config - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_BUTTON_BTN0_CONFIG_H -#define SL_SIMPLE_BUTTON_BTN0_CONFIG_H - -#include "sl_gpio.h" -#include "sl_simple_button.h" - -// <<< Use Configuration Wizard in Context Menu >>> - -// -// Interrupt -// Poll and Debounce -// Poll -// Default: SL_SIMPLE_BUTTON_MODE_INTERRUPT -#define SL_SIMPLE_BUTTON_BTN0_MODE SL_SIMPLE_BUTTON_MODE_INTERRUPT -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_SIMPLE_BUTTON_BTN0 -// $[GPIO_SL_SIMPLE_BUTTON_BTN0] -#ifndef SL_SIMPLE_BUTTON_BTN0_PORT -#define SL_SIMPLE_BUTTON_BTN0_PORT SL_GPIO_PORT_B -#endif -#ifndef SL_SIMPLE_BUTTON_BTN0_PIN -#define SL_SIMPLE_BUTTON_BTN0_PIN 1 -#endif -// [GPIO_SL_SIMPLE_BUTTON_BTN0]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_SIMPLE_BUTTON_BTN0_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_simple_button_btn1_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_simple_button_btn1_config.h deleted file mode 100644 index 1df1ce0a1..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_simple_button_btn1_config.h +++ /dev/null @@ -1,61 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Button Driver User Config - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_BUTTON_BTN1_CONFIG_H -#define SL_SIMPLE_BUTTON_BTN1_CONFIG_H - -#include "sl_gpio.h" -#include "sl_simple_button.h" - -// <<< Use Configuration Wizard in Context Menu >>> - -// -// Interrupt -// Poll and Debounce -// Poll -// Default: SL_SIMPLE_BUTTON_MODE_INTERRUPT -#define SL_SIMPLE_BUTTON_BTN1_MODE SL_SIMPLE_BUTTON_MODE_INTERRUPT -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_SIMPLE_BUTTON_BTN1 -// $[GPIO_SL_SIMPLE_BUTTON_BTN1] -#ifndef SL_SIMPLE_BUTTON_BTN1_PORT -#define SL_SIMPLE_BUTTON_BTN1_PORT SL_GPIO_PORT_B -#endif -#ifndef SL_SIMPLE_BUTTON_BTN1_PIN -#define SL_SIMPLE_BUTTON_BTN1_PIN 3 -#endif -// [GPIO_SL_SIMPLE_BUTTON_BTN1]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_SIMPLE_BUTTON_BTN1_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_simple_button_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_simple_button_config.h deleted file mode 100644 index 531f4f208..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_simple_button_config.h +++ /dev/null @@ -1,72 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Button Driver Configuration - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_BUTTON_CONFIG_H -#define SL_SIMPLE_BUTTON_CONFIG_H - -#include "sl_gpio.h" -// <<< Use Configuration Wizard in Context Menu >>> - -// Simple Button Driver Configuration - -// Number of bits <1-15> -// Default: 5 -// Defines the number of calls to sl_simple_button_poll_step wherein the button -// state must remain the same before the button state is considered debounced -#define SL_SIMPLE_BUTTON_DEBOUNCE_BITS 5U - -// -// GPIO Input -// GPIO Input Pull -// GPIO Input Pull Filter -// Default: gpioModeInput -#define SL_SIMPLE_BUTTON_GPIO_MODE SL_GPIO_MODE_INPUT - -// -// SL_SIMPLE_BUTTON_GPIO_MODE == SL_GPIO_MODE_INPUT, Filter if DOUT is set -// SL_SIMPLE_BUTTON_GPIO_MODE == SL_GPIO_MODE_INPUT_PULL, DOUT determines pull direction -#define SL_SIMPLE_BUTTON_GPIO_DOUT 0U - -// -// 0 Active Low -// 1 Active High -// Default: 0 -#define SL_SIMPLE_BUTTON_POLARITY 0U - -// Allow the app to manage Buttons and LEDs on the same pin -// 0 Error if Buttons and LEDs are on the same pin -// 1 Do not error if Buttons and LEDs are on the same pin -// Default: 0 -#define SL_SIMPLE_BUTTON_ALLOW_LED_CONFLICT 0U - -// - -// <<< end of configuration section >>> -#endif // SL_SIMPLE_BUTTON_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_simple_led_led0_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_simple_led_led0_config.h deleted file mode 100644 index 5de786937..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_simple_led_led0_config.h +++ /dev/null @@ -1,57 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Led Driver Configuration - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_LED_LED0_CONFIG_H -#define SL_SIMPLE_LED_LED0_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Simple LED configuration -// -// Active low -// Active high -// Default: SL_SIMPLE_LED_POLARITY_ACTIVE_HIGH -#define SL_SIMPLE_LED_LED0_POLARITY SL_SIMPLE_LED_POLARITY_ACTIVE_HIGH -// end led configuration - -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_SIMPLE_LED_LED0 -// $[GPIO_SL_SIMPLE_LED_LED0] -#define SL_SIMPLE_LED_LED0_PORT SL_GPIO_PORT_B -#define SL_SIMPLE_LED_LED0_PIN 2 - -// [GPIO_SL_SIMPLE_LED_LED0]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_SIMPLE_LED_LED0_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_simple_led_led1_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_simple_led_led1_config.h deleted file mode 100644 index 80a6b5541..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_simple_led_led1_config.h +++ /dev/null @@ -1,57 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Led Driver Configuration - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_LED_LED1_CONFIG_H -#define SL_SIMPLE_LED_LED1_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Simple LED configuration -// -// Active low -// Active high -// Default: SL_SIMPLE_LED_POLARITY_ACTIVE_HIGH -#define SL_SIMPLE_LED_LED1_POLARITY SL_SIMPLE_LED_POLARITY_ACTIVE_HIGH -// end led configuration - -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_SIMPLE_LED_LED1 -// $[GPIO_SL_SIMPLE_LED_LED1] -#define SL_SIMPLE_LED_LED1_PORT SL_GPIO_PORT_B -#define SL_SIMPLE_LED_LED1_PIN 4 - -// [GPIO_SL_SIMPLE_LED_LED1]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_SIMPLE_LED_LED1_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_sleeptimer_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_sleeptimer_config.h deleted file mode 100644 index 8344ef5f1..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_sleeptimer_config.h +++ /dev/null @@ -1,82 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Sleep Timer configuration file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -// <<< Use Configuration Wizard in Context Menu >>> - -#ifndef SL_SLEEPTIMER_CONFIG_H -#define SL_SLEEPTIMER_CONFIG_H - -#define SL_SLEEPTIMER_PERIPHERAL_DEFAULT 0 -#define SL_SLEEPTIMER_PERIPHERAL_RTCC 1 -#define SL_SLEEPTIMER_PERIPHERAL_PRORTC 2 -#define SL_SLEEPTIMER_PERIPHERAL_RTC 3 -#define SL_SLEEPTIMER_PERIPHERAL_SYSRTC 4 -#define SL_SLEEPTIMER_PERIPHERAL_BURTC 5 -#define SL_SLEEPTIMER_PERIPHERAL_WTIMER 6 -#define SL_SLEEPTIMER_PERIPHERAL_TIMER 7 - -// Timer Peripheral Used by Sleeptimer -// Default (auto select) -// RTCC -// Radio internal RTC (PRORTC) -// RTC -// SYSRTC -// Back-Up RTC (BURTC) -// WTIMER -// TIMER -// Selection of the Timer Peripheral Used by the Sleeptimer -#define SL_SLEEPTIMER_PERIPHERAL SL_SLEEPTIMER_PERIPHERAL_DEFAULT - -// TIMER/WTIMER Instance Used by Sleeptimer (not applicable for other peripherals) -// Make sure TIMER instance size is 32bits. Check datasheet for 32bits TIMERs. -// Default: 0 -#define SL_SLEEPTIMER_TIMER_INSTANCE 0 - -// Enable wallclock functionality -// Enable or disable wallclock functionalities (get_time, get_date, etc). -// Default: 0 -#define SL_SLEEPTIMER_WALLCLOCK_CONFIG 0 - -// Timer frequency divider (not applicable for WTIMER/TIMER) -// WTIMER/TIMER peripherals are always prescaled to 1024. -// Default: 1 -#define SL_SLEEPTIMER_FREQ_DIVIDER 1 - -// If Radio internal RTC (PRORTC) HAL is used, determines if it owns the IRQ handler. Enable, if no wireless stack is used. -// Default: 0 -#define SL_SLEEPTIMER_PRORTC_HAL_OWNS_IRQ_HANDLER 0 - -// Enable DEBUGRUN functionality on hardware RTC. -// Default: 0 -#define SL_SLEEPTIMER_DEBUGRUN 0 - -#endif /* SLEEPTIMER_CONFIG_H */ - -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_uartdrv_eusart_vcom_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/sl_uartdrv_eusart_vcom_config.h deleted file mode 100644 index a8dda06a4..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_uartdrv_eusart_vcom_config.h +++ /dev/null @@ -1,123 +0,0 @@ -/***************************************************************************//** - * @file - * @brief UARTDRV_EUSART Config - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_UARTDRV_EUSART_VCOM_CONFIG_H -#define SL_UARTDRV_EUSART_VCOM_CONFIG_H - -#include "em_eusart.h" -// <<< Use Configuration Wizard in Context Menu >>> - -// EUSART settings -// Baud rate -// Default: 115200 -#if defined(VERBOSE_MODE) && (VERBOSE_MODE ==1) -#define SL_UARTDRV_EUSART_VCOM_BAUDRATE 921600 -#else -#define SL_UARTDRV_EUSART_VCOM_BAUDRATE 115200 -#endif - -// Low frequency mode -// True -// False -#define SL_UARTDRV_EUSART_VCOM_LF_MODE false - -// Parity mode to use -// No Parity -// Even parity -// Odd parity -// Default: eusartNoParity -#define SL_UARTDRV_EUSART_VCOM_PARITY eusartNoParity - -// Number of stop bits to use. -// 0.5 stop bits -// 1 stop bits -// 1.5 stop bits -// 2 stop bits -// Default: eusartStopbits1 -#define SL_UARTDRV_EUSART_VCOM_STOP_BITS eusartStopbits1 - -// Flow control method -// None -// Software XON/XOFF -// nRTS/nCTS hardware handshake -// UART peripheral controls nRTS/nCTS -// Default: uartdrvFlowControlHwUart -#define SL_UARTDRV_EUSART_VCOM_FLOW_CONTROL_TYPE uartdrvFlowControlHwUart - -// Oversampling selection -// 16x oversampling -// 8x oversampling -// 6x oversampling -// 4x oversampling -// Oversampling disabled -// Default: eusartOVS16 -#define SL_UARTDRV_EUSART_VCOM_OVERSAMPLING eusartOVS16 - -// Majority vote disable for 16x, 8x and 6x oversampling modes -// False -// True -// Default: eusartMajorityVoteEnable -#define SL_UARTDRV_EUSART_VCOM_MVDIS eusartMajorityVoteEnable - -// Size of the receive operation queue -// Default: 6 -#define SL_UARTDRV_EUSART_VCOM_RX_BUFFER_SIZE 6 - -// Size of the transmit operation queue -// Default: 6 -#define SL_UARTDRV_EUSART_VCOM_TX_BUFFER_SIZE 6 -// -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> -// SL_UARTDRV_EUSART_VCOM -// $[EUSART_SL_UARTDRV_EUSART_VCOM] -#define SL_UARTDRV_EUSART_VCOM_PERIPHERAL EUSART0 -#define SL_UARTDRV_EUSART_VCOM_PERIPHERAL_NO 0 - -// EUSART0 TX on PA08 -#define SL_UARTDRV_EUSART_VCOM_TX_PORT SL_GPIO_PORT_A -#define SL_UARTDRV_EUSART_VCOM_TX_PIN 8 - -// EUSART0 RX on PA09 -#define SL_UARTDRV_EUSART_VCOM_RX_PORT SL_GPIO_PORT_A -#define SL_UARTDRV_EUSART_VCOM_RX_PIN 9 - -// EUSART0 CTS on PB05 -#define SL_UARTDRV_EUSART_VCOM_CTS_PORT SL_GPIO_PORT_B -#define SL_UARTDRV_EUSART_VCOM_CTS_PIN 5 - -// EUSART0 RTS on PA00 -#define SL_UARTDRV_EUSART_VCOM_RTS_PORT SL_GPIO_PORT_A -#define SL_UARTDRV_EUSART_VCOM_RTS_PIN 0 - -// [EUSART_SL_UARTDRV_EUSART_VCOM]$ -// <<< sl:end pin_tool >>> -#endif // SL_UARTDRV_EUSART_VCOM_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/uartdrv_config.h b/board-support/efr32/efr32mg24/BRD4186A/config/uartdrv_config.h deleted file mode 100644 index f41b347e1..000000000 --- a/board-support/efr32/efr32mg24/BRD4186A/config/uartdrv_config.h +++ /dev/null @@ -1,123 +0,0 @@ -/***************************************************************************//** - * @file - * @brief UARTDRV configuration file. - ******************************************************************************* - * # License - * Copyright 2018 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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 __SILICON_LABS_UARTDRV_CONFIG_H__ -#define __SILICON_LABS_UARTDRV_CONFIG_H__ - -/***************************************************************************//** - * @addtogroup uartdrv - * @{ - ******************************************************************************/ -/// Size of the receive operation queue. -/// @details -/// The maximum number of receive operations that can be queued up for one -/// driver instance before @ref UARTDRV_Receive() returns -/// @ref ECODE_EMDRV_UARTDRV_QUEUE_FULL. -/// @note -/// This macro is not used by the UARTDRV itself, but is intended to be used -/// with the @ref DEFINE_BUF_QUEUE macro by the user of the driver to allocate -/// instances of the @ref UARTDRV_Buffer_FifoQueue_t struct. -#if !defined(EMDRV_UARTDRV_MAX_CONCURRENT_RX_BUFS) -#define EMDRV_UARTDRV_MAX_CONCURRENT_RX_BUFS 6 -#endif - -/// Size of the transmit operation queue. -/// @details -/// The maximum number of transmit operations that can be queued up for one -/// driver instance before @ref UARTDRV_Transmit() returns -/// @ref ECODE_EMDRV_UARTDRV_QUEUE_FULL. -/// @note -/// This macro is not used by the UARTDRV itself, but is intended to be used -/// with the @ref DEFINE_BUF_QUEUE macro by the user of the driver to allocate -/// instances of the @ref UARTDRV_Buffer_FifoQueue_t struct. -#if !defined(EMDRV_UARTDRV_MAX_CONCURRENT_TX_BUFS) -#define EMDRV_UARTDRV_MAX_CONCURRENT_TX_BUFS 6 -#endif - -// <<< Use Configuration Wizard in Context Menu >>> -// UARTDRV Settings - -/// Set to 1 to include flow control support -#if !defined(EMDRV_UARTDRV_FLOW_CONTROL_ENABLE) -// Flow control support -// <1=> Enable -// <0=> Disable -// Default: 1 -#define EMDRV_UARTDRV_FLOW_CONTROL_ENABLE 0 -#endif - -/// Maximum number of driver instances. -#if !defined(EMDRV_UARTDRV_MAX_DRIVER_INSTANCES) -// Maximum number of driver instances -// This maximum only applies when UARTDRV_FLOW_CONTROL_ENABLE = 1 -// Default: 4 -#define EMDRV_UARTDRV_MAX_DRIVER_INSTANCES 4 -#endif - -/// UART software flow control code: request peer to start TX -#if !defined(UARTDRV_FC_SW_XON) -// UART software flow control code: request peer to start TX -// Default: 0x11 -#define UARTDRV_FC_SW_XON 0x11 -#endif - -/// UART software flow control code: request peer to stop TX -#if !defined(UARTDRV_FC_SW_XOFF) -// UART software flow control code: request peer to stop TX -// Default: 0x13 -#define UARTDRV_FC_SW_XOFF 0x13 -#endif - -/// UART enable reception when sleeping. -#if !defined(UARTDRV_RESTRICT_ENERGY_MODE_TO_ALLOW_RECEPTION) -// Enable reception when sleeping -// Enable reception when sleeping will use the power manager and add EM1 -// requirement during receive operations that use DMA. -// <1=> Enable -// <0=> Disable -// Default: 1 -#define UARTDRV_RESTRICT_ENERGY_MODE_TO_ALLOW_RECEPTION 1 -#endif - -/// Set to 1 to add user-specified call back parameter. -#if !defined(UARTDRV_USER_SPECIFIED_CALLBACK_ENABLE) -// Add user-specified callback parameter. -// <1=> Enable -// <0=> Disable -// Default: 0 -#define UARTDRV_USER_SPECIFIED_CALLBACK_ENABLE 0 -#endif - -// - -// <<< end of configuration section >>> - -/** @} (end addtogroup uartdrv) */ - -#endif /* __SILICON_LABS_UARTDRV_CONFIG_H__ */ diff --git a/board-support/efr32/efr32mg24/BRD4186C/autogen/gatt_db.h b/board-support/efr32/efr32mg24/BRD4186C/autogen/gatt_db.h index c179e6b28..b3a2e67f9 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/autogen/gatt_db.h +++ b/board-support/efr32/efr32mg24/BRD4186C/autogen/gatt_db.h @@ -5,10 +5,6 @@ #ifndef __GATT_DB_H #define __GATT_DB_H -#if __cplusplus -extern "C" { -#endif - #include "sli_bt_gattdb_def.h" extern const sli_bt_gattdb_t gattdb; @@ -31,8 +27,5 @@ extern const sli_bt_gattdb_t gattdb; #define gattdb_CHIPoBLEChar_Tx_len 247 #define gattdb_CHIPoBLEChar_C3_len 512 -#if __cplusplus -} -#endif #endif // __GATT_DB_H diff --git a/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_bluetooth.c b/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_bluetooth.c index 0a5f1a969..0cf47b680 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_bluetooth.c +++ b/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_bluetooth.c @@ -76,13 +76,13 @@ void sl_bt_step(void) // Check the length of the next event, if any, and verify that the application // can process it. To prevent data loss, the event will be kept in the stack's // queue if the application cannot process it at the moment. - size_t event_len = sli_bgapi_device_peek_event_len(&sli_bt_bgapi_device); + size_t event_len = sli_bgapi_device_peek_event_len(sli_bt_bgapi_device); if ((event_len == 0) || (!sl_bt_can_process_event(event_len))) { return; } // Pop the event and process it if successful - sl_status_t status = sli_bgapi_device_pop_event(&sli_bt_bgapi_device, + sl_status_t status = sli_bgapi_device_pop_event(sli_bt_bgapi_device, sizeof(evt), &evt); diff --git a/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_component_catalog.h b/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_component_catalog.h index fb05f93bb..9070be224 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_component_catalog.h +++ b/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_component_catalog.h @@ -4,7 +4,9 @@ // APIs present in project #define SL_CATALOG_BGAPI_PROTOCOL_PRESENT #define SL_CATALOG_BGAPI_PROTOCOL_RTOS_ADAPTATION_PRESENT +#define SL_CATALOG_BLUETOOTH_COMMON_PRESENT #define SL_CATALOG_BLUETOOTH_CONFIGURATION_PRESENT +#define SL_CATALOG_BLUETOOTH_CRYPTO_LIB_PSA_PRESENT #define SL_CATALOG_BLUETOOTH_CTE_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_CS_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_FEATURE_ADVERTISER_PRESENT @@ -26,7 +28,9 @@ #define SL_CATALOG_CPP_SUPPORT_PRESENT #define SL_CATALOG_DEVICE_INIT_PRESENT #define SL_CATALOG_DEVICE_INIT_DCDC_PRESENT +#define SL_CATALOG_DMA_MANAGER_PRESENT #define SL_CATALOG_EMLIB_CORE_PRESENT +#define SL_CATALOG_EMLIB_GPIO_PRESENT #define SL_CATALOG_EMLIB_RMU_PRESENT #define SL_CATALOG_FREERTOS_KERNEL_PRESENT #define SL_CATALOG_KERNEL_PRESENT @@ -40,7 +44,7 @@ #ifdef DISPLAY_ENABLED #define SL_CATALOG_MEMLCD_USART_PRESENT #define SL_CATALOG_DMD_MEMLCD_PRESENT -#endif +#endif // DISPLAY_ENABLED #define SL_CATALOG_MEMORY_MANAGER_PRESENT #define SL_CATALOG_MEMORY_PROFILER_API_PRESENT #define SL_CATALOG_MPU_PRESENT @@ -57,7 +61,7 @@ #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_SEGGER_RTT_PRESENT #define SL_CATALOG_BTN0_PRESENT @@ -72,10 +76,23 @@ #define SL_CATALOG_SIMPLE_LED_LED1_PRESENT #define SL_CATALOG_SL_CORE_PRESENT #define SL_CATALOG_SL_MAIN_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_COMPATIBLE_PA_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_PA_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_SEQUENCER_PRESENT +#define SL_CATALOG_RAIL_UTIL_SEQUENCER_PRESENT #define SL_CATALOG_SLEEPTIMER_PRESENT #define SL_CATALOG_SLI_PROTOCOL_CRYPTO_PRESENT #if defined(CONFIG_ENABLE_UART) #define SL_CATALOG_UARTDRV_EUSART_PRESENT -#endif +#define SL_CATALOG_OPENTHREAD_UART_PRESENT +#endif // CONFIG_ENABLE_UART #endif // SL_COMPONENT_CATALOG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/main.c b/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_dma_manager_instances.c similarity index 70% rename from board-support/efr32/efr32mg24/BRD4186A/main.c rename to board-support/efr32/efr32mg24/BRD4186C/autogen/sl_dma_manager_instances.c index db35d2d3d..f4339b2ed 100644 --- a/board-support/efr32/efr32mg24/BRD4186A/main.c +++ b/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_dma_manager_instances.c @@ -1,6 +1,6 @@ /***************************************************************************//** - * @file main.c - * @brief main() function. + * @file + * @brief DMA Manager Instances Initialization. ******************************************************************************* * # License * Copyright 2025 Silicon Laboratories Inc. www.silabs.com @@ -27,17 +27,25 @@ * 3. This notice may not be removed or altered from any source distribution. * ******************************************************************************/ -#include "sl_main_init.h" -#include "sl_main_kernel.h" -int main(void) +#include "sl_dma_manager_instances.h" +#include "sl_dma_manager.h" +#include "sl_device_peripheral.h" + + + +sl_dma_handle_t sl_dma_handle_ldma0; + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + ******************************************************************************/ +void sl_dma_manager_instances_init(void) { - // Initialize Silicon Labs device, system, service(s) and protocol stack(s). - sl_main_second_stage_init(); - app_init(); + // Initialize DMA Manager instance: LDMA0 + sl_dma_manager_init(&sl_dma_handle_ldma0, SL_PERIPHERAL_DMA_LDMA0); - while (sl_main_start_task_should_continue()) { - app_process_action(); - } } + + diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_ot_custom_cli.c b/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_dma_manager_instances.h similarity index 56% rename from board-support/efr32/efr32mg24/BRD4187A/autogen/sl_ot_custom_cli.c rename to board-support/efr32/efr32mg24/BRD4186C/autogen/sl_dma_manager_instances.h index ca55d6463..1580ad2b2 100644 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_ot_custom_cli.c +++ b/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_dma_manager_instances.h @@ -1,9 +1,9 @@ -/******************************************************************************* +/***************************************************************************//** * @file - * @brief Custom CLI support for OpenThread + * @brief DMA Manager Instances API. ******************************************************************************* * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com ******************************************************************************* * * SPDX-License-Identifier: Zlib @@ -28,37 +28,44 @@ * ******************************************************************************/ -#include -#include -#include -#include "sl_ot_custom_cli.h" +#ifndef SL_DMA_MANAGER_INSTANCES_H +#define SL_DMA_MANAGER_INSTANCES_H -/******************************************************************************* - * Example syntax (.slcc or .slcp) for populating this file: +#include "sl_dma_manager.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/***************************************************************************//** + * @addtogroup dma_manager DMA Manager + * @{ + ******************************************************************************/ + + + +extern sl_dma_handle_t sl_dma_handle_ldma0; + + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. * - * template_contribution: - * - name: sl_ot_cli_command # Register a command - * value: - * name: status # Name of command - * handler: status_command # Function to be called. Must be defined + * @details This function initializes all DMA Manager instances that have been + * configured through the component system. Each instance corresponds + * to a DMA peripheral (e.g., LDMA0, LDMA1). * + * @note This function is typically called automatically during system + * initialization when the dma_manager_init component is included + * in the project. ******************************************************************************/ -extern otError bleCommand(void *aContext, uint8_t aArgsLength, char *aArgs[]); +void sl_dma_manager_instances_init(void); -otCliCommand sl_ot_custom_commands[] = { -#ifdef SL_OPENTHREAD_BLE_CLI_ENABLE - {"ble", bleCommand}, -#endif +/** @} (end addtogroup dma_manager) */ -}; +#ifdef __cplusplus +} +#endif -// This is needed because `sizeof` is calculated at compile time and can't be calculated outside of this source file. -const uint8_t sl_ot_custom_commands_count = OT_ARRAY_LENGTH(sl_ot_custom_commands); +#endif // SL_DMA_MANAGER_INSTANCES_H -void sl_ot_custom_cli_init(void) -{ - if (sl_ot_custom_commands_count > 0) - { - IgnoreError(otCliSetUserCommands(sl_ot_custom_commands, sl_ot_custom_commands_count, NULL)); - } -} diff --git a/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_event_handler.c b/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_event_handler.c index 72fdfb28e..9f4f12473 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_event_handler.c +++ b/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_event_handler.c @@ -5,7 +5,6 @@ #include "sl_hfxo_manager.h" #include "sl_rail_util_compatible_pa.h" #if !(defined(SLI_SI91X_ENABLE_BLE) && SLI_SI91X_ENABLE_BLE) -#include "sl_bluetooth.h" #include "sl_rail_util_power_manager_init.h" #endif // !SLI_SI91X_ENABLE_BLE #include "sl_rail_util_power_manager_init.h" @@ -14,6 +13,7 @@ #include "btl_interface.h" #include "sl_board_control.h" #include "platform-efr32.h" +#include "sl_dma_manager_instances.h" #include "sl_bt_rtos_adaptation.h" #include "sl_bluetooth.h" #include "sl_debug_swo.h" @@ -73,6 +73,7 @@ void sl_platform_init(void) sl_hfxo_manager_init_hardware(); sl_board_init(); bootloader_init(); + sl_dma_manager_instances_init(); nvm3_initDefault(); } diff --git a/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_simple_led_instances.h b/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_simple_led_instances.h index 928fbe942..08c8291ae 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_simple_led_instances.h +++ b/board-support/efr32/efr32mg24/BRD4186C/autogen/sl_simple_led_instances.h @@ -31,10 +31,6 @@ #ifndef SL_SIMPLE_LED_INSTANCES_H #define SL_SIMPLE_LED_INSTANCES_H -#ifdef __cplusplus -extern "C" { -#endif - #include "sl_simple_led.h" extern const sl_led_t sl_led_led0; @@ -47,8 +43,4 @@ extern const sl_led_t *sl_simple_led_array[]; void sl_simple_led_init_instances(void); -#ifdef __cplusplus -} -#endif - #endif // SL_SIMPLE_LED_INIT_H diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/app_properties_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/app_properties_config.h index 6a6b97666..34418403f 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/app_properties_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/app_properties_config.h @@ -63,3 +63,4 @@ // #endif // APP_PROPERTIES_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/btconf/gatt_configuration.btconf b/board-support/efr32/efr32mg24/BRD4186C/config/btconf/gatt_configuration.btconf deleted file mode 100644 index 4d1efd972..000000000 --- a/board-support/efr32/efr32mg24/BRD4186C/config/btconf/gatt_configuration.btconf +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - Abstract: The generic_access service contains generic information about the device. All available Characteristics are readonly. - - - - - Empty Example - - - - - - - - - Abstract: The external appearance of this device. The values are composed of a category (10-bits) and sub-categories (6-bits). - 0000 - - - - - - - - - Abstract: The Device Information Service exposes manufacturer and/or vendor information about a device. Summary: This service exposes manufacturer information about a device. The Device Information Service is instantiated as a Primary Service. Only one instance of the Device Information Service is exposed on a device. - - - - Abstract: The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device. - Silicon Labs - - - - - - - - Abstract: The value of this characteristic is a UTF-8 string representing the model number assigned by the device vendor. - Blue Gecko - - - - - - - - Abstract: The SYSTEM ID characteristic consists of a structure with two fields. The first field are the LSOs and the second field contains the MSOs. This is a 64-bit structure which consists of a 40-bit manufacturer-defined identifier concatenated with a 24 bit unique Organizationally Unique Identifier (OUI). The OUI is issued by the IEEE Registration Authority (http://standards.ieee.org/regauth/index.html) and is required to be used in accordance with IEEE Standard 802-2001.6 while the least significant 40 bits are manufacturer defined. If System ID generated based on a Bluetooth Device Address, it is required to be done as follows. System ID and the Bluetooth Device Address have a very similar structure: a Bluetooth Device Address is 48 bits in length and consists of a 24 bit Company Assigned Identifier (manufacturer defined identifier) concatenated with a 24 bit Company Identifier (OUI). In order to encapsulate a Bluetooth Device Address as System ID, the Company Identifier is concatenated with 0xFFFE followed by the Company Assigned Identifier of the Bluetooth Address. For more guidelines related to EUI-64, refer to http://standards.ieee.org/develop/regauth/tut/eui64.pdf. Examples: If the system ID is based of a Bluetooth Device Address with a Company Identifier (OUI) is 0x123456 and the Company Assigned Identifier is 0x9ABCDE, then the System Identifier is required to be 0x123456FFFE9ABCDE. - 000102030405 - - - - - - - - - Custom service - - - - Custom characteristic - 00 - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/btl_interface_cfg.h b/board-support/efr32/efr32mg24/BRD4186C/config/btl_interface_cfg.h new file mode 100644 index 000000000..fc17ccfff --- /dev/null +++ b/board-support/efr32/efr32mg24/BRD4186C/config/btl_interface_cfg.h @@ -0,0 +1,64 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_H +#define BTL_INTERFACE_CFG_H + +#if !defined(BOOTLOADER_APPLOADER) + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_1) +#include "btl_interface_cfg_s2c1.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_2) +#include "btl_interface_cfg_s2c2.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_3) +#include "btl_interface_cfg_s2c3.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_4) +#include "btl_interface_cfg_s2c4.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_5) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_6) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_8) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_9) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_13) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_11) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif +#endif// !BOOTLOADER_APPLOADER + +#endif // BTL_INTERFACE_CFG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/btl_interface_cfg_s2c4.h b/board-support/efr32/efr32mg24/BRD4186C/config/btl_interface_cfg_s2c4.h new file mode 100644 index 000000000..a93bdec95 --- /dev/null +++ b/board-support/efr32/efr32mg24/BRD4186C/config/btl_interface_cfg_s2c4.h @@ -0,0 +1,322 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_S2C4_H +#define BTL_INTERFACE_CFG_S2C4_H + +// <<< Use Configuration Wizard in Context Menu >>> +// Bootloader Interface Trust Zone Security State Configuration + +// Disable multi tiered fallback logic +// The fault handling logic as well as the USART auto-detection logic will be disabled. +// The re-configuration of SMU will be handled by querying the running bootloader +// for the peripheral list. Querying the peripheral list is supported from the bootloader +// version 2.0.0. Check for the BOOTLOADER_CAPABILITY_PERIPHERAL_LIST capability to +// see if the running bootloader supports querying the peripheral list. +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 0 + +// Disable peripheral access fault handling +// The fault handling triggered by an erroneous access of peripherals will be disabled. +// +// This should be disabled iff all the peripherals that are in use by the bootloader +// have been properly configured by the "Manually override security state of peripherals" option. +#define BOOTLOADER_DISABLE_NVM3_FAULT_HANDLING 0 + +// Manually override the security state of peripherals in use by the bootloader +// Default: 0. +// Manually override the security state of peripherals. Choose the peripherals touched +// by the customized code to have a valid secure access state before interacting with the bootloader +// In practice, this means that the chosen peripherals will be available at the secure address, +// which is accessible by the bootloader. Once the application is entered back the secure access state +// is changed back to the original state. +// +// The USART auto-detection logic that detects which, if any, USART is in use by the bootloader +// will be disabled. Make sure to choose the correct USART used by the bootloader. +#define BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE 0 +// EMU +// Update secure access state of EMU before calling into bootloader +#define BOOTLOADER_PPUSATD0_EMU 0 + +// CMU +// Update secure access state of CMU before calling into bootloader +#define BOOTLOADER_PPUSATD0_CMU 0 + +// HFRCO0 +// Update secure access state of HFRCO0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_HFRCO0 0 + +// FSRCO +// Update secure access state of FSRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_FSRCO 0 + +// DPLL0 +// Update secure access state of DPLL0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_DPLL0 0 + +// LFXO +// Update secure access state of LFXO before calling into bootloader +#define BOOTLOADER_PPUSATD0_LFXO 0 + +// LFRCO +// Update secure access state of LFRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_LFRCO 0 + +// ULFRCO +// Update secure access state of ULFRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_ULFRCO 0 + +// MSC +// Update secure access state of MSC before calling into bootloader +#define BOOTLOADER_PPUSATD0_MSC 0 + +// ICACHE0 +// Update secure access state of ICACHE0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_ICACHE0 0 + +// PRS +// Update secure access state of PRS before calling into bootloader +#define BOOTLOADER_PPUSATD0_PRS 0 + +// GPIO +// Update secure access state of GPIO before calling into bootloader +#define BOOTLOADER_PPUSATD0_GPIO 0 + +// LDMA +// Update secure access state of LDMA before calling into bootloader +#define BOOTLOADER_PPUSATD0_LDMA 0 + +// LDMAXBAR +// Update secure access state of LDMAXBAR before calling into bootloader +#define BOOTLOADER_PPUSATD0_LDMAXBAR 0 + +// TIMER0 +// Update secure access state of TIMER0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER0 0 + +// TIMER1 +// Update secure access state of TIMER1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER1 0 + +// TIMER2 +// Update secure access state of TIMER2 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER2 0 + +// TIMER3 +// Update secure access state of TIMER3 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER3 0 + +// TIMER4 +// Update secure access state of TIMER4 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER4 0 + +// USART0 +// Update secure access state of USART0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_USART0 0 + +// BURTC +// Update secure access state of BURTC before calling into bootloader +#define BOOTLOADER_PPUSATD0_BURTC 0 + +// I2C1 +// Update secure access state of I2C1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_I2C1 0 + +// CHIPTESTCTRL +// Update secure access state of CHIPTESTCTRL before calling into bootloader +#define BOOTLOADER_PPUSATD0_CHIPTESTCTRL 0 + +// SYSCFGCFGNS +// Update secure access state of SYSCFGCFGNS before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSCFGCFGNS 0 + +// SYSCFG +// Update secure access state of SYSCFG before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSCFG 0 + +// BURAM +// Update secure access state of BURAM before calling into bootloader +#define BOOTLOADER_PPUSATD0_BURAM 0 + +// GPCRC +// Update secure access state of GPCRC before calling into bootloader +#define BOOTLOADER_PPUSATD0_GPCRC 0 + +// DCDC +// Update secure access state of DCDC before calling into bootloader +#define BOOTLOADER_PPUSATD0_DCDC 0 + +// HOSTMAILBOX +// Update secure access state of HOSTMAILBOX before calling into bootloader +#define BOOTLOADER_PPUSATD0_HOSTMAILBOX 0 + +// EUSART1 +// Update secure access state of EUSART1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_EUSART1 0 + +// SYSRTC +// Update secure access state of SYSRTC before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSRTC 0 + +// KEYSCAN +// Update secure access state of KEYSCAN before calling into bootloader +#define BOOTLOADER_PPUSATD1_KEYSCAN 0 + +// DMEM +// Update secure access state of DMEM before calling into bootloader +#define BOOTLOADER_PPUSATD1_DMEM 0 + +// RADIOAES +// Update secure access state of RADIOAES before calling into bootloader +#define BOOTLOADER_PPUSATD1_RADIOAES 0 + +// SMU +// Update secure access state of SMU before calling into bootloader +#define BOOTLOADER_PPUSATD1_SMU 0 + +// SMUCFGNS +// Update secure access state of SMUCFGNS before calling into bootloader +#define BOOTLOADER_PPUSATD1_SMUCFGNS 0 + +// LETIMER0 +// Update secure access state of LETIMER0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_LETIMER0 0 + +// IADC0 +// Update secure access state of IADC0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_IADC0 0 + +// ACMP0 +// Update secure access state of ACMP0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_ACMP0 0 + +// ACMP1 +// Update secure access state of ACMP1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_ACMP1 0 + +// AMUXCP0 +// Update secure access state of AMUXCP0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_AMUXCP0 0 + +// VDAC0 +// Update secure access state of VDAC0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_VDAC0 0 + +// VDAC1 +// Update secure access state of VDAC1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_VDAC1 0 + +// PCNT +// Update secure access state of PCNT before calling into bootloader +#define BOOTLOADER_PPUSATD1_PCNT 0 + +// HFRCO1 +// Update secure access state of HFRCO1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_HFRCO1 0 + +// HFXO0 +// Update secure access state of HFXO0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_HFXO0 0 + +// I2C0 +// Update secure access state of I2C0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_I2C0 0 + +// WDOG0 +// Update secure access state of WDOG0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_WDOG0 0 + +// WDOG1 +// Update secure access state of WDOG1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_WDOG1 0 + +// EUSART0 +// Update secure access state of EUSART0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_EUSART0 0 + +// SEMAILBOX +// Update secure access state of SEMAILBOX before calling into bootloader +#define BOOTLOADER_PPUSATD1_SEMAILBOX 0 + +// MVP +// Update secure access state of MVP before calling into bootloader +#define BOOTLOADER_PPUSATD1_MVP 0 + +// AHBRADIO +// Update secure access state of AHBRADIO before calling into bootloader +#define BOOTLOADER_PPUSATD1_AHBRADIO 0 +// + +// +// <<< end of configuration section >>> + +#if BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE == 1 +#define BOOTLOADER_PPUSATD0_MASK ((BOOTLOADER_PPUSATD0_EMU << _SMU_PPUSATD0_EMU_SHIFT) \ + | (BOOTLOADER_PPUSATD0_CMU << _SMU_PPUSATD0_CMU_SHIFT) \ + | (BOOTLOADER_PPUSATD0_HFRCO0 << _SMU_PPUSATD0_HFRCO0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_FSRCO << _SMU_PPUSATD0_FSRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_DPLL0 << _SMU_PPUSATD0_DPLL0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LFXO << _SMU_PPUSATD0_LFXO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LFRCO << _SMU_PPUSATD0_LFRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_ULFRCO << _SMU_PPUSATD0_ULFRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_MSC << _SMU_PPUSATD0_MSC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_ICACHE0 << _SMU_PPUSATD0_ICACHE0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_PRS << _SMU_PPUSATD0_PRS_SHIFT) \ + | (BOOTLOADER_PPUSATD0_GPIO << _SMU_PPUSATD0_GPIO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LDMA << _SMU_PPUSATD0_LDMA_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LDMAXBAR << _SMU_PPUSATD0_LDMAXBAR_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER0 << _SMU_PPUSATD0_TIMER0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER1 << _SMU_PPUSATD0_TIMER1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER2 << _SMU_PPUSATD0_TIMER2_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER3 << _SMU_PPUSATD0_TIMER3_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER4 << _SMU_PPUSATD0_TIMER4_SHIFT) \ + | (BOOTLOADER_PPUSATD0_USART0 << _SMU_PPUSATD0_USART0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_BURTC << _SMU_PPUSATD0_BURTC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_I2C1 << _SMU_PPUSATD0_I2C1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_CHIPTESTCTRL << _SMU_PPUSATD0_CHIPTESTCTRL_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSCFGCFGNS << _SMU_PPUSATD0_SYSCFGCFGNS_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSCFG << _SMU_PPUSATD0_SYSCFG_SHIFT) \ + | (BOOTLOADER_PPUSATD0_BURAM << _SMU_PPUSATD0_BURAM_SHIFT) \ + | (BOOTLOADER_PPUSATD0_GPCRC << _SMU_PPUSATD0_GPCRC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_DCDC << _SMU_PPUSATD0_DCDC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_HOSTMAILBOX << _SMU_PPUSATD0_HOSTMAILBOX_SHIFT) \ + | (BOOTLOADER_PPUSATD0_EUSART1 << _SMU_PPUSATD0_EUSART1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSRTC << _SMU_PPUSATD0_SYSRTC_SHIFT)) +#define BOOTLOADER_PPUSATD1_MASK ((BOOTLOADER_PPUSATD1_KEYSCAN << _SMU_PPUSATD1_KEYSCAN_SHIFT) \ + | (BOOTLOADER_PPUSATD1_DMEM << _SMU_PPUSATD1_DMEM_SHIFT) \ + | (BOOTLOADER_PPUSATD1_RADIOAES << _SMU_PPUSATD1_RADIOAES_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SMU << _SMU_PPUSATD1_SMU_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SMUCFGNS << _SMU_PPUSATD1_SMUCFGNS_SHIFT) \ + | (BOOTLOADER_PPUSATD1_LETIMER0 << _SMU_PPUSATD1_LETIMER0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_IADC0 << _SMU_PPUSATD1_IADC0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_ACMP0 << _SMU_PPUSATD1_ACMP0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_ACMP1 << _SMU_PPUSATD1_ACMP1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_AMUXCP0 << _SMU_PPUSATD1_AMUXCP0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_VDAC0 << _SMU_PPUSATD1_VDAC0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_VDAC1 << _SMU_PPUSATD1_VDAC1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_PCNT << _SMU_PPUSATD1_PCNT_SHIFT) \ + | (BOOTLOADER_PPUSATD1_HFRCO1 << _SMU_PPUSATD1_HFRCO1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_HFXO0 << _SMU_PPUSATD1_HFXO0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_I2C0 << _SMU_PPUSATD1_I2C0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_WDOG0 << _SMU_PPUSATD1_WDOG0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_WDOG1 << _SMU_PPUSATD1_WDOG1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_EUSART0 << _SMU_PPUSATD1_EUSART0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SEMAILBOX << _SMU_PPUSATD1_SEMAILBOX_SHIFT) \ + | (BOOTLOADER_PPUSATD1_MVP << _SMU_PPUSATD1_MVP_SHIFT) \ + | (BOOTLOADER_PPUSATD1_AHBRADIO << _SMU_PPUSATD1_AHBRADIO_SHIFT)) +#endif // BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE + +#endif // BTL_INTERFACE_CFG_S2C4_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/buffer_pool_allocator_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/buffer_pool_allocator_config.h index 2c3fd2e67..9a96fedf3 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/buffer_pool_allocator_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/buffer_pool_allocator_config.h @@ -27,3 +27,4 @@ // <<< end of configuration section >>> #endif // __BUFFER_POOL_ALLOCATOR_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/circular_queue_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/circular_queue_config.h index 81a7173d6..fe1ba75d3 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/circular_queue_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/circular_queue_config.h @@ -21,3 +21,4 @@ // <<< end of configuration section >>> #endif // __CIRCULAR_QUEUE_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/dmadrv_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/dmadrv_config.h index ed105e4f3..dd58324d7 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/dmadrv_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/dmadrv_config.h @@ -24,3 +24,4 @@ // <<< end of configuration section >>> #endif // DMADRV_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/nvm3_default_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/nvm3_default_config.h index 2bf415f94..95cdbb7f5 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/nvm3_default_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/nvm3_default_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif // NVM3_DEFAULT_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_802154_radio_priority_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_802154_radio_priority_config.h index 77334ba2c..cc09e8ca9 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_802154_radio_priority_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_802154_radio_priority_config.h @@ -55,3 +55,4 @@ // <<< end of configuration section >>> #endif //__SL_802154_RADIO_PRIORITY_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_bgapi_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_bgapi_config.h index 1ae43b6b5..522d1c904 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_bgapi_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_bgapi_config.h @@ -41,3 +41,4 @@ // <<< end of configuration section >>> #endif // SL_BGAPI_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_bluetooth_advertiser_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_bluetooth_advertiser_config.h index 00163cd9a..7cac58bfe 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_bluetooth_advertiser_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_bluetooth_advertiser_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/efr32mg24/BRD2601B/config/sl_bluetooth_connection_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_bluetooth_common_config.h similarity index 60% rename from board-support/efr32/efr32mg24/BRD2601B/config/sl_bluetooth_connection_config.h rename to board-support/efr32/efr32mg24/BRD4186C/config/sl_bluetooth_common_config.h index 73a382509..55c3749d5 100644 --- a/board-support/efr32/efr32mg24/BRD2601B/config/sl_bluetooth_connection_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_bluetooth_common_config.h @@ -1,9 +1,9 @@ /***************************************************************************//** - * @file - * @brief Bluetooth Connection configuration + * @file sl_bluetooth_common_config.h + * @brief Bluetooth Common configuration ******************************************************************************* * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com ******************************************************************************* * * SPDX-License-Identifier: Zlib @@ -28,21 +28,26 @@ * ******************************************************************************/ -#ifndef SL_BT_CONNECTION_CONFIG_H -#define SL_BT_CONNECTION_CONFIG_H +#ifndef SL_BLUETOOTH_COMMON_CONFIG_H +#define SL_BLUETOOTH_COMMON_CONFIG_H // <<< Use Configuration Wizard in Context Menu >>> -// Max number of connections reserved for user <0-32> -// Default: 4 -// Define the number of connections the application needs. -#define SL_BT_CONFIG_MAX_CONNECTIONS (4) - -// Preferred maximum TX payload octets <27-251> -// Default: 251 -// Define the preferred maximum TX payload octets that will be used on connections. -// This value is set to the controller as the default suggested data length when -// Bluetooth stack is started. -#define SL_BT_CONFIG_CONNECTION_DATA_LENGTH (251) -// <<< end of configuration section >>> +// Bluetooth Common Configuration + +// Buffer memory size for Bluetooth +// Default: 3150 +// Define the buffer memory size for buffering data over Bluetooth connections, advertising +// and scanning. The default value is an estimation for achieving adequate throughput +// and supporting multiple simultaneous connections. Consider increasing this value for +// higher data throughput over connections, advertising or scanning long advertisement data. +#ifndef SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE +#define SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE (3150) #endif + +// Bluetooth Common Configuration + +// <<< end of configuration section >>> + +#endif // SL_BLUETOOTH_COMMON_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_bluetooth_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_bluetooth_config.h index 93bfbbcc4..cfaaef06d 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_bluetooth_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_bluetooth_config.h @@ -66,6 +66,9 @@ // advertising and scanning. The default value is an estimation for achieving adequate throughput // and supporting multiple simultaneous connections. Consider increasing this value for // higher data throughput over connections, advertising or scanning long advertisement data. +// NOTE: SL_BT_CONFIG_BUFFER_SIZE is deprecated in Simplicity SDK Suite v2026.6.0 and marked +// for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONFIG_BUFFER_SIZE is replaced by +// SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #define SL_BT_CONFIG_BUFFER_SIZE (3150) // Enable using a custom Bluetooth address stored in NVM3 @@ -124,11 +127,23 @@ // A negative value indicates some power loss in the path. For example, // with radiated TX power set to +10 dBm and this configuration to -10 // (i.e., 1 dBm loss), the transmitter output power will be set to +11 dBm. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_TX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_TX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_TX (0) // RF RX path gain in 0.1dBm unit // Default: 0 // RX RF path gain is used to compensate the RSSI reports from the Bluetooth Stack. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_RX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_RX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_RX (0) // End RF Path @@ -161,8 +176,6 @@ #include "sl_bt_stack_config.h" #include "sl_bgapi_config.h" // For SL_BGAPI_MAX_PAYLOAD_SIZE -// NOTE: Struct sl_btctrl_ll_priorities is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// The Link Layer scheduler priority configuration is initialized via the Bluetooth Low Energy Controller component. #define SL_BT_CONFIG_DEFAULT \ { \ .config_flags = SL_BT_CONFIG_FLAGS, \ @@ -179,3 +192,4 @@ } #endif // SL_BLUETOOTH_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_bluetooth_connection_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_bluetooth_connection_config.h index 73a382509..08bc34759 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_bluetooth_connection_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_bluetooth_connection_config.h @@ -46,3 +46,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_bt_rtos_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_bt_rtos_config.h index b80c07967..fec091919 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_bt_rtos_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_bt_rtos_config.h @@ -42,3 +42,4 @@ #endif #endif // SL_BT_RTOS_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_bt_rtos_config_s2.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_bt_rtos_config_s2.h index eb4fe3ea2..bc4c37420 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_bt_rtos_config_s2.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_bt_rtos_config_s2.h @@ -82,3 +82,4 @@ // <<< end of configuration section >>> #endif // SL_BT_RTOS_CONFIG_S2_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_btctrl_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_btctrl_config.h index 403df1ffe..8dfdb6281 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_btctrl_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_btctrl_config.h @@ -7,7 +7,10 @@ // Bluetooth Controller Buffer Memory // Default: SL_BT_CONTROLLER_BUFFER_MEMORY -// Define the Amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// Define the amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// NOTE: SL_BT_CONTROLLER_BUFFER_MEMORY is deprecated in Simplicity SDK Suite v2026.6.0 and +// marked for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONTROLLER_BUFFER_MEMORY is +// replaced by SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #ifndef SL_BT_CONTROLLER_BUFFER_MEMORY #define SL_BT_CONTROLLER_BUFFER_MEMORY (8192) #endif @@ -64,7 +67,7 @@ #define SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE (0) #endif -// Minimum radiated TX power level in 0.1dBm unit +// Minimum radiated TX power level in 0.1dBm units // Default: 0 // Define the minimum radiated TX power level. // If the configured power level is lower than what the radio supports, the minimum supported level will be used. @@ -83,7 +86,7 @@ #define SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE (0) #endif -// Maximum radiated TX power level in 0.1dBm unit +// Maximum radiated TX power level in 0.1dBm units // Default: 0 // Define the maximum radiated TX power level. // If the configured power level is higher than what the radio supports, the maximum supported level will be used. @@ -97,6 +100,28 @@ // End TX Power Levels +// RF Path + +// TX RF path gain in 0.1dB units +// Default: 0 +// The Bluetooth controller takes TX RF path gain into account when adjusting transmitter +// output power. Power radiated from the antenna then matches the application request. +// A negative value indicates some power loss in the path. For example, +// with radiated TX power set to +10 dBm and this configuration to -10 +// (i.e., 1 dB loss), the transmitter output power will be set to +11 dBm. +#ifndef SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB (0) +#endif + +// RX RF path gain in 0.1dB units +// Default: 0 +// RX RF path gain is used to compensate the RSSI reports received by the Bluetooth controller. +#ifndef SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB (0) +#endif + +// End RF Path + // Bluetooth Controller Configuration for LE Connection // Total transmitted packets threshold for all connections to send the Number Of Completed Packets HCI event to the host <1-255> // Default: 4 @@ -136,16 +161,6 @@ #define SL_BT_CONTROLLER_USE_LEGACY_VENDOR_SPECIFIC_EVENT_CODE (0) #endif -// Adaptive Frequency Hopping operation mode -// Active AFH -// Passive AFH -// Choose between active AFH and passive AFH -// Default: Active AFH -// SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY -#ifndef SL_BT_CONTROLLER_ADAPTIVITY_MODE -#define SL_BT_CONTROLLER_ADAPTIVITY_MODE (SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY) -#endif - // Advertising Configuration // Include TX Power in the extended header of primary extended advertising packets // This is default setting to all advertising sets unless it is specifically overridden by VS_SiliconLabs_Set_Advertising_Config_Bits. @@ -172,3 +187,4 @@ // <<< end of configuration section >>> #endif // SL_BTCTRL_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_btctrl_scheduler_priority_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_btctrl_scheduler_priority_config.h index 0eec28095..fd0e66f83 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_btctrl_scheduler_priority_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_btctrl_scheduler_priority_config.h @@ -146,7 +146,7 @@ // Rail Mapping Window Min // <0-255:1> -// Default: 16 +// Default: 32 // Define the minimum value of RAIL mapping window. // This parameter specifies how task priorities are passed to radio // coexistence and multiprotocol schedulers. @@ -157,17 +157,17 @@ // If coexistence or multiprotocol configuration is not used, then these // parameters have no effect. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 16 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 32 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN // Rail Mapping Window Range // <0-255:1> -// Default: 32 +// Default: 16 // Define the maximum value of the RAIL mapping window. // See SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN for a description of // this parameter. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 32 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 16 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX // PAwR Tx - Min @@ -220,9 +220,9 @@ .conn_max = SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX, \ .init_min = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN, \ .init_max = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX, \ - .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN, \ - .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX \ - - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN), \ + .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX, \ + .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN \ + - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX), \ 0, \ .adv_step = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP, \ .scan_step = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP, \ @@ -233,3 +233,4 @@ } #endif // SL_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_clock_manager_oscillator_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_clock_manager_oscillator_config.h index ae4127646..c0dcfaf5e 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_clock_manager_oscillator_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_clock_manager_oscillator_config.h @@ -374,3 +374,4 @@ // <<< sl:end pin_tool >>> #endif /* SL_CLOCK_MANAGER_OSCILLATOR_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_clock_manager_tree_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_clock_manager_tree_config.h index 1f6f2a089..1a05181af 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_clock_manager_tree_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_clock_manager_tree_config.h @@ -307,3 +307,4 @@ #endif /* SL_CLOCK_MANAGER_TREE_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_core_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_core_config.h index 27b173d2e..16d372fcf 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_core_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_core_config.h @@ -42,3 +42,4 @@ // <<< end of configuration section >>> #endif // SL_CORE_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_device_init_dcdc_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_device_init_dcdc_config.h index 4fb88397d..a14fce6d9 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_device_init_dcdc_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_device_init_dcdc_config.h @@ -56,3 +56,4 @@ // <<< end of configuration section >>> #endif // SL_DEVICE_INIT_DCDC_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_gp_interface_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_gp_interface_config.h index fd5aa20ea..0624696f3 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_gp_interface_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_gp_interface_config.h @@ -42,3 +42,4 @@ #define GP_TX_MAX_TIMEOUT_IN_MICRO_SECONDS 5000000 // // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_hfxo_manager_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_hfxo_manager_config.h index d9ccd3c70..87afc3778 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_hfxo_manager_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_hfxo_manager_config.h @@ -54,3 +54,4 @@ #endif /* SL_HFXO_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_main_start_task_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_main_start_task_config.h index 7752c098f..7cc81a4da 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_main_start_task_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_main_start_task_config.h @@ -103,3 +103,4 @@ #endif /* SL_MAIN_START_TASK_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_memory_manager_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_memory_manager_config.h index 4a16c29fe..02af7ec0c 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_memory_manager_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_memory_manager_config.h @@ -47,6 +47,12 @@ // Default: 1 #define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 +// Enables the double free protection for the pool. +// Setting this configuration to 0 will disable the double free protection for the memory pool. saving ~100 bytes of code. +// This setting has no effect on the memory pools power aware version. +// Default: 1 +#define SL_MEMORY_MANAGER_POOL_DOUBLE_FREE_PROTECTION_ENABLE 1 + // // <<< end of configuration section >>> @@ -58,4 +64,13 @@ // Default: 1 #define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 +// Enables retention statistics (retained size, retained high watermark, bank counts). +// Requires bank-retention hardware on the target; SL_CATALOG_BANK_RETENTION_CONTROL_* is defined only for devices that implement it (not every part or kit). +// Software configuration alone cannot add bank retention where the silicon has no such feature. +// Independent of heap statistics (SL_MEMORY_MANAGER_STATISTICS_API_ENABLE). +// When disabled, retention getters return (size_t)-1 or SL_STATUS_NOT_AVAILABLE. +// Default: 0. +#define SL_MEMORY_MANAGER_STATISTICS_RETENTION_ENABLE 0 + #endif /* SL_MEMORY_MANAGER_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_memory_manager_region_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_memory_manager_region_config.h index bd640b59b..a0a4007e7 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_memory_manager_region_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_memory_manager_region_config.h @@ -49,3 +49,4 @@ // <<< end of configuration section >>> #endif /* SL_MEMORY_MANAGER_REGION_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_openthread_features_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_openthread_features_config.h index a3697f8af..054fb51b4 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_openthread_features_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_openthread_features_config.h @@ -200,24 +200,31 @@ #endif // // IPv6 Limits -// Maximum IPv6 external unicast addresses +// Runtime IPv6 external address pools +// Enable runtime configuration of external unicast and multicast address pools via otIp6Init(). +#ifndef OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +#define OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE 0 +#endif +#if OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +// CLI support for runtime IPv6 external address pools +// Enable `ifconfig init` CLI command for testing otIp6Init() pool configuration. +#ifndef OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE +#define OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE 1 +#endif +// +#else +// Maximum IPv6 external unicast addresses (ignored in runtime mode) // Maximum number of IPv6 unicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS 4 #endif -// Maximum IPv6 external multicast addresses +// Maximum IPv6 external multicast addresses (ignored in runtime mode) // Maximum number of IPv6 multicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS 4 #endif -// Maximum IPv6 address registrations for MTD -// The maximum number of IPv6 address registrations for MTD. -// If left unchanged will default to the value of OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD -// 4 -#ifndef OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER -#define OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER (OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD) #endif // // Jam Detection @@ -286,37 +293,13 @@ #ifndef OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM #define OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM 2 #endif +// Instance-aware platform logging API +#ifndef OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE +#define OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE 0 +#endif +// // // -// Define maximum total source match table entries for both OT and Zigbee. -// In multi-instance builds (SoC or RCP/host), table must support all OT instances + Zigbee. -// For single instance (default), table sized to just OT children. -// This value is used to size all source match tables in both OT and Zigbee code. -// Note: this is purposedly not being setup with CMSIS annotations. -#ifndef RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE -#if SL_ZIGBEE_MAX_END_DEVICE_CHILDREN -// Multipan / DMP case: OT + Zigbee -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - ((OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * (OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM - 1)) \ - + SL_ZIGBEE_MAX_END_DEVICE_CHILDREN) -#else -// Multi-instance OT-only case -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - (OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM) -#endif -#else -// Single-instance OT (SoC / NCP / non-multipan RCP) -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES OPENTHREAD_CONFIG_MLE_MAX_CHILDREN -#endif -#endif -// Spinel Match Table -// Maximum number of spinel source match table entries -// Ensure that this value is the total of the number of openthread children times the number of openthread instances plus the number of Zigbee children. -#ifndef OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES -#define OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#endif -// // OTNS (OpenThread Network Simulator) #ifndef OPENTHREAD_CONFIG_OTNS_ENABLE #define OPENTHREAD_CONFIG_OTNS_ENABLE 0 @@ -379,6 +362,40 @@ #define OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE 1 #endif // +// Vendor Name string +// Vendor Name string +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +#if OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE +// Default: "RD:Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "RD:Silicon Labs" +#else +// Default: "Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "Silicon Labs" +#endif +#endif // OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +// Vendor Model string +// Vendor Model string +// Default: "OpenThread" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL "OpenThread" +#endif +// Vendor SW Version string +// Vendor SW Version string +// Default: "3.1.0.0" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION "3.1.0.0" +#endif +// Vendor App URL string +// Vendor App URL string +// Default: "www.silabs.com" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL "www.silabs.com" +#endif +// Run-time configuration of Vendor Info +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE 1 +#endif +// // Time Synchronization Service #ifndef OPENTHREAD_CONFIG_TIME_SYNC_ENABLE #define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 0 @@ -399,6 +416,11 @@ #define OPENTHREAD_CONFIG_MAC_BEACON_PAYLOAD_PARSING_ENABLE 1 #endif // +// Log crash dump after initialization +#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE +#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 +#endif +// // Radio Driver RX buffers // Maximum number of RX buffers // The maximum number of RX buffers to use in the radio driver. @@ -408,66 +430,7 @@ #endif // // -// Logging -// LOG_OUTPUT -// NONE -// APP -// PLATFORM_DEFINED -// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP -// OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT -#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#endif - -// DYNAMIC_LOG_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE -#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 -#endif - -// Enable Logging -#define OPENTHREAD_FULL_LOGS_ENABLE 0 -#if OPENTHREAD_FULL_LOGS_ENABLE - -// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. -// LOG_LEVEL -// NONE -// CRIT -// WARN -// NOTE -// INFO -// DEBG -// Default: OT_LOG_LEVEL_DEBG -// OT_LOG_LEVEL_DEBG -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL -#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG -#endif -// CLI -#ifndef OPENTHREAD_CONFIG_LOG_CLI -#define OPENTHREAD_CONFIG_LOG_CLI 1 -#endif -// PKT_DUMP -#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP -#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 -#endif -// PLATFORM -#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM -#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 -#endif -// PREPEND_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL -#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 -#endif - -#endif // OPENTHREAD_FULL_LOGS_ENABLE - -// Log crash dump after initialization -#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE -#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 -#endif - -// -// -// // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_FEATURES_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_openthread_log_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_openthread_log_config.h new file mode 100644 index 000000000..420892125 --- /dev/null +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_openthread_log_config.h @@ -0,0 +1,89 @@ +/******************************************************************************* + * @file + * @brief OpenThread log configuration file. + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_OPENTHREAD_LOG_CONFIG_H +#define _SL_OPENTHREAD_LOG_CONFIG_H + +//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- +// Logging +// LOG_OUTPUT +// NONE +// APP +// PLATFORM_DEFINED +// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP +// OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT +#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#endif + +// DYNAMIC_LOG_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE +#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 +#endif + +// Enable Logging +#define OPENTHREAD_FULL_LOGS_ENABLE 0 +#if OPENTHREAD_FULL_LOGS_ENABLE +// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. +// LOG_LEVEL +// NONE +// CRIT +// WARN +// NOTE +// INFO +// DEBG +// Default: OT_LOG_LEVEL_DEBG +// OT_LOG_LEVEL_DEBG +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL +#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG +#endif +// CLI +#ifndef OPENTHREAD_CONFIG_LOG_CLI +#define OPENTHREAD_CONFIG_LOG_CLI 1 +#endif +// PKT_DUMP +#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP +#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 +#endif +// PLATFORM +#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM +#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 +#endif +// PREPEND_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL +#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 +#endif +// +#endif // OPENTHREAD_FULL_LOGS_ENABLE +// +// +// <<< end of configuration section >>> +#endif // _SL_OPENTHREAD_LOG_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_openthread_radio_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_openthread_radio_config.h index 478a72430..1735c91c6 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_openthread_radio_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_openthread_radio_config.h @@ -40,6 +40,11 @@ #define SL_OPENTHREAD_RSSI_AVERAGING_TIME 16 // us // RSSI Average Timeout [us] #define SL_OPENTHREAD_RSSI_AVERAGING_TIMEOUT 300 // us +// Debug Counters Support +#ifndef RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT +#define RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT 0 // Set to 1 to enable debug counters in radio.c +#endif // // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_RADIO_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_openthread_rtos_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_openthread_rtos_config.h index 6dc710fcc..16a2b1709 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_openthread_rtos_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_openthread_rtos_config.h @@ -72,18 +72,10 @@ #define SL_OPENTHREAD_APP_TASK_MEM_SIZE (4608) // OpenThread serial task stack size in bytes <1000-20000> -// Default: 3072 +// Default: 3840 // Defines the stack size of the OpenThread RTOS serial task. The value is in bytes and // and will be word aligned when it is applied at the task creation. -#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3072) - -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread serial task prority -// Default: 16 (CMSIS-RTOS2 osPriorityBelowNormal) -// Defines OpenThread serial task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_SERIAL_TASK_PRIORITY (16) +#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3840) // // App Task @@ -107,3 +99,4 @@ // // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_power_manager_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_power_manager_config.h index 86b9fef27..1c71950d9 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_power_manager_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_power_manager_config.h @@ -98,3 +98,4 @@ #endif /* SL_POWER_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_pa_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_pa_config.h index b72b54eb0..07ccf3287 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_pa_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_pa_config.h @@ -81,3 +81,4 @@ // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_PA_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_pa_tables_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_pa_tables_config.h index bd05ea57d..9a895fd24 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_pa_tables_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_pa_tables_config.h @@ -47,3 +47,4 @@ #include SL_RAIL_UTIL_PA_TABLE_HEADER #endif // SL_RAIL_UTIL_PA_TABLES_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_power_manager_init_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_power_manager_init_config.h index cbc69f24d..bcc7596c5 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_power_manager_init_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_power_manager_init_config.h @@ -42,3 +42,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_rssi_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_rssi_config.h index 128d705f5..d706e8785 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_rssi_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_rssi_config.h @@ -46,3 +46,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_RSSI_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_sequencer_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_sequencer_config.h index 640ef0c0d..02977b219 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_sequencer_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_rail_util_sequencer_config.h @@ -44,3 +44,4 @@ extern "C" { #endif #endif // SL_RAIL_UTIL_SEQUENCER_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_simple_button_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_simple_button_config.h index 531f4f208..4cd53a96b 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_simple_button_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_simple_button_config.h @@ -70,3 +70,4 @@ // <<< end of configuration section >>> #endif // SL_SIMPLE_BUTTON_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/sl_sleeptimer_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/sl_sleeptimer_config.h index 8344ef5f1..c638bfeed 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/sl_sleeptimer_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/sl_sleeptimer_config.h @@ -52,6 +52,7 @@ // WTIMER // TIMER // Selection of the Timer Peripheral Used by the Sleeptimer +// If BURTC is needed as an EM4 wake-up source, it must not be used by Sleeptimer. #define SL_SLEEPTIMER_PERIPHERAL SL_SLEEPTIMER_PERIPHERAL_DEFAULT // TIMER/WTIMER Instance Used by Sleeptimer (not applicable for other peripherals) @@ -80,3 +81,4 @@ #endif /* SLEEPTIMER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD4186C/config/uartdrv_config.h b/board-support/efr32/efr32mg24/BRD4186C/config/uartdrv_config.h index f41b347e1..b0fc7f703 100644 --- a/board-support/efr32/efr32mg24/BRD4186C/config/uartdrv_config.h +++ b/board-support/efr32/efr32mg24/BRD4186C/config/uartdrv_config.h @@ -121,3 +121,4 @@ /** @} (end addtogroup uartdrv) */ #endif /* __SILICON_LABS_UARTDRV_CONFIG_H__ */ + diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/RTE_Components.h b/board-support/efr32/efr32mg24/BRD4187A/autogen/RTE_Components.h deleted file mode 100644 index 6531f566c..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/RTE_Components.h +++ /dev/null @@ -1,34 +0,0 @@ -// 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 */ - diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/gatt_db.c b/board-support/efr32/efr32mg24/BRD4187A/autogen/gatt_db.c deleted file mode 100644 index bac66e37b..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/gatt_db.c +++ /dev/null @@ -1,149 +0,0 @@ -/******************************************************************** - * Autogenerated file, do not edit. - *******************************************************************/ - -#include -#include "sli_bt_gattdb_def.h" - -#define GATT_HEADER(F) F -#define GATT_DATA(F) F -GATT_DATA(const uint16_t gattdb_uuidtable_16_map[]) = -{ - 0x2800, - 0x2801, - 0x2803, - 0x2a00, - 0x2a01, - 0x2a29, - 0x2a24, - 0x2a23, - 0x2a05, - 0x2b2a, - 0x2b29, - 0x2902, -}; - -GATT_DATA(const uint8_t gattdb_uuidtable_128_map[]) = -{ - 0x11, 0x9d, 0x9f, 0x42, 0x9c, 0x4f, 0x9f, 0x95, 0x59, 0x45, 0x3d, 0x26, 0xf5, 0x2e, 0xee, 0x18, - 0x12, 0x9d, 0x9f, 0x42, 0x9c, 0x4f, 0x9f, 0x95, 0x59, 0x45, 0x3d, 0x26, 0xf5, 0x2e, 0xee, 0x18, - 0x04, 0x8f, 0x21, 0x83, 0x8a, 0x74, 0x7d, 0xb8, 0xf2, 0x45, 0x72, 0x87, 0x38, 0x02, 0x63, 0x64, -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_27) = { - .properties = 0x2e, - .max_len = 512, - .len = 1, - .data = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, } -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_24) = { - .properties = 0x2e, - .max_len = 247, - .len = 1, - .data = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, } -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_22) = { - .properties = 0x0a, - .max_len = 247, - .len = 1, - .data = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, } -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_20) = { - .len = 2, - .data = { 0xf6, 0xff, } -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_19) = { - .len = 6, - .data = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, } -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_17) = { - .len = 10, - .data = { 0x42, 0x6c, 0x75, 0x65, 0x20, 0x47, 0x65, 0x63, 0x6b, 0x6f, } -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_15) = { - .len = 12, - .data = { 0x53, 0x69, 0x6c, 0x69, 0x63, 0x6f, 0x6e, 0x20, 0x4c, 0x61, 0x62, 0x73, } -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_13) = { - .len = 2, - .data = { 0x0a, 0x18, } -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_12) = { - .len = 2, - .data = { 0x00, 0x00, } -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_10) = { - .properties = 0x0a, - .max_len = 13, - .data = { 0x45, 0x6d, 0x70, 0x74, 0x79, 0x20, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, }, -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_8) = { - .len = 2, - .data = { 0x00, 0x18, } -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_7) = { - .properties = 0x0a, - .max_len = 1, - .data = { 0x00, }, -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_5) = { - .properties = 0x02, - .max_len = 16, - .data = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }, -}; -GATT_DATA(sli_bt_gattdb_attribute_chrvalue_t gattdb_attribute_field_2) = { - .properties = 0x20, - .max_len = 4, - .data = { 0x00, 0x00, 0x00, 0x00, }, -}; -GATT_DATA(const sli_bt_gattdb_value_t gattdb_attribute_field_0) = { - .len = 2, - .data = { 0x01, 0x18, } -}; - -GATT_DATA(const sli_bt_gattdb_attribute_t gattdb_attributes_map[]) = { - { .handle = 0x01, .uuid = 0x0000, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_0 }, - { .handle = 0x02, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x20, .char_uuid = 0x0008 } }, - { .handle = 0x03, .uuid = 0x0008, .permissions = 0x800, .caps = 0xffff, .state = 0x00, .datatype = 0x01, .dynamicdata = &gattdb_attribute_field_2 }, - { .handle = 0x04, .uuid = 0x000b, .permissions = 0x803, .caps = 0xffff, .state = 0x00, .datatype = 0x03, .configdata = { .flags = 0x02, .clientconfig_index = 0x00 } }, - { .handle = 0x05, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x02, .char_uuid = 0x0009 } }, - { .handle = 0x06, .uuid = 0x0009, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x01, .dynamicdata = &gattdb_attribute_field_5 }, - { .handle = 0x07, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x0a, .char_uuid = 0x000a } }, - { .handle = 0x08, .uuid = 0x000a, .permissions = 0x803, .caps = 0xffff, .state = 0x00, .datatype = 0x01, .dynamicdata = &gattdb_attribute_field_7 }, - { .handle = 0x09, .uuid = 0x0000, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_8 }, - { .handle = 0x0a, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x0a, .char_uuid = 0x0003 } }, - { .handle = 0x0b, .uuid = 0x0003, .permissions = 0x803, .caps = 0xffff, .state = 0x00, .datatype = 0x01, .dynamicdata = &gattdb_attribute_field_10 }, - { .handle = 0x0c, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x02, .char_uuid = 0x0004 } }, - { .handle = 0x0d, .uuid = 0x0004, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_12 }, - { .handle = 0x0e, .uuid = 0x0000, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_13 }, - { .handle = 0x0f, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x02, .char_uuid = 0x0005 } }, - { .handle = 0x10, .uuid = 0x0005, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_15 }, - { .handle = 0x11, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x02, .char_uuid = 0x0006 } }, - { .handle = 0x12, .uuid = 0x0006, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_17 }, - { .handle = 0x13, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x02, .char_uuid = 0x0007 } }, - { .handle = 0x14, .uuid = 0x0007, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_19 }, - { .handle = 0x15, .uuid = 0x0000, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x00, .constdata = &gattdb_attribute_field_20 }, - { .handle = 0x16, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x0a, .char_uuid = 0x8000 } }, - { .handle = 0x17, .uuid = 0x8000, .permissions = 0x803, .caps = 0xffff, .state = 0x00, .datatype = 0x02, .dynamicdata = &gattdb_attribute_field_22 }, - { .handle = 0x18, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x2e, .char_uuid = 0x8001 } }, - { .handle = 0x19, .uuid = 0x8001, .permissions = 0x807, .caps = 0xffff, .state = 0x00, .datatype = 0x02, .dynamicdata = &gattdb_attribute_field_24 }, - { .handle = 0x1a, .uuid = 0x000b, .permissions = 0x803, .caps = 0xffff, .state = 0x00, .datatype = 0x03, .configdata = { .flags = 0x02, .clientconfig_index = 0x01 } }, - { .handle = 0x1b, .uuid = 0x0002, .permissions = 0x801, .caps = 0xffff, .state = 0x00, .datatype = 0x05, .characteristic = { .properties = 0x2e, .char_uuid = 0x8002 } }, - { .handle = 0x1c, .uuid = 0x8002, .permissions = 0x807, .caps = 0xffff, .state = 0x00, .datatype = 0x02, .dynamicdata = &gattdb_attribute_field_27 }, - { .handle = 0x1d, .uuid = 0x000b, .permissions = 0x803, .caps = 0xffff, .state = 0x00, .datatype = 0x03, .configdata = { .flags = 0x02, .clientconfig_index = 0x02 } }, -}; - -GATT_HEADER(const sli_bt_gattdb_t gattdb) = { - .attributes = gattdb_attributes_map, - .attribute_table_size = 29, - .attribute_num = 29, - .uuid16 = gattdb_uuidtable_16_map, - .uuid16_table_size = 12, - .uuid16_num = 12, - .uuid128 = gattdb_uuidtable_128_map, - .uuid128_table_size = 3, - .uuid128_num = 3, - .num_ccfg = 3, - .caps_mask = 0xffff, - .enabled_caps = 0xffff, -}; -const sli_bt_gattdb_t *static_gattdb = &gattdb; diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/gatt_db.h b/board-support/efr32/efr32mg24/BRD4187A/autogen/gatt_db.h deleted file mode 100644 index c179e6b28..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/gatt_db.h +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************** - * Autogenerated file, do not edit. - *******************************************************************/ - -#ifndef __GATT_DB_H -#define __GATT_DB_H - -#if __cplusplus -extern "C" { -#endif - -#include "sli_bt_gattdb_def.h" - -extern const sli_bt_gattdb_t gattdb; - -#define gattdb_generic_attribute 1 -#define gattdb_service_changed_char 3 -#define gattdb_database_hash 6 -#define gattdb_client_support_features 8 -#define gattdb_device_name 11 -#define gattdb_CHIPoBLEChar_Rx 23 -#define gattdb_CHIPoBLEChar_Tx 25 -#define gattdb_CHIPoBLEChar_C3 28 - -#define gattdb_generic_attribute_len 2 -#define gattdb_service_changed_char_len 4 -#define gattdb_database_hash_len 16 -#define gattdb_client_support_features_len 1 -#define gattdb_device_name_len 13 -#define gattdb_CHIPoBLEChar_Rx_len 247 -#define gattdb_CHIPoBLEChar_Tx_len 247 -#define gattdb_CHIPoBLEChar_C3_len 512 - -#if __cplusplus -} -#endif - -#endif // __GATT_DB_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_application_type.h b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_application_type.h deleted file mode 100644 index 4118ef4b9..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_application_type.h +++ /dev/null @@ -1,41 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Autogenerated configuration file for application properties - ******************************************************************************* - * # License - * Copyright 2021 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_APPLICATION_TYPE_H -#define SL_APPLICATION_TYPE_H - -#include "api/application_properties.h" - -// Bitfield representing type of application -#define APPLICATION_TYPE APPLICATION_TYPE_BLUETOOTH_APP | APPLICATION_TYPE_THREAD - - -#endif // SL_APPLICATION_TYPE_H - diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_bluetooth.c b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_bluetooth.c deleted file mode 100644 index 0a5f1a969..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_bluetooth.c +++ /dev/null @@ -1,94 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth initialization and event processing - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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 -#include "sl_bluetooth.h" -#include "sli_bt_api.h" -#include "sli_bgapi.h" -#include "sl_assert.h" -#include "sl_bt_stack_init.h" -#include "sl_component_catalog.h" - -void sl_bt_init(void) -{ - // Stack initialization could fail, e.g., due to out of memory. - // The failure could not be returned to user as the system initialization - // does not return an error code. Use the EFM_ASSERT to catch the failure, - // which requires either DEBUG_EFM or DEBUG_EFM_USER is defined. - sl_status_t err = sl_bt_stack_init(); - EFM_ASSERT(err == SL_STATUS_OK); -} - -SL_WEAK void sl_bt_on_event(sl_bt_msg_t* evt) -{ - (void)(evt); -} - -void sl_bt_process_event(sl_bt_msg_t *evt) -{ - sl_bt_on_event(evt); -} - -#if !defined(SL_CATALOG_KERNEL_PRESENT) -// When running in an RTOS, the stack events are processed in a dedicated -// event processing task, and these functions are not used at all. - -SL_WEAK bool sl_bt_can_process_event(uint32_t len) -{ - (void)(len); - return true; -} - -void sl_bt_step(void) -{ - sl_bt_msg_t evt; - - // Run the Bluetooth host stack processing step - sl_bt_run(); - - // Check the length of the next event, if any, and verify that the application - // can process it. To prevent data loss, the event will be kept in the stack's - // queue if the application cannot process it at the moment. - size_t event_len = sli_bgapi_device_peek_event_len(&sli_bt_bgapi_device); - if ((event_len == 0) || (!sl_bt_can_process_event(event_len))) { - return; - } - - // Pop the event and process it if successful - sl_status_t status = sli_bgapi_device_pop_event(&sli_bt_bgapi_device, - sizeof(evt), - &evt); - - if (status != SL_STATUS_OK) { - return; - } - sl_bt_process_event(&evt); -} -#endif // !defined(SL_CATALOG_KERNEL_PRESENT) diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_bluetooth.h b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_bluetooth.h deleted file mode 100644 index 2b284460f..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_bluetooth.h +++ /dev/null @@ -1,73 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth initialization and event processing - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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 BLUETOOTH_H -#define BLUETOOTH_H - -#include -#include "sl_power_manager.h" -#include "sl_bluetooth_config.h" -#include "sl_bt_stack_init.h" -#include "sl_bt_api.h" -#define SL_BT_COMPONENT_ADVERTISERS 0 - -#define SL_BT_COMPONENT_CONNECTIONS 0 - -// Initialize Bluetooth core functionality -void sl_bt_init(void); - -// Polls bluetooth stack for an event and processes it -void sl_bt_step(void); - -/** - * Tell if the application can process a new Bluetooth event in its current - * state, for example, based on resource availability status. - * If true is returned by this function, sl_bt_process_event will be called - * for event processing. Otherwise, the event will be kept in stack's event - * queue until the application can process it. - * - * @note Default implementation of this function returns true. - * Application can override it for own business logic. - * - * @param len Data length of the event - * @return ture if event can be processed; false otherwise - */ -bool sl_bt_can_process_event(uint32_t len); - -// Processes a single bluetooth event -void sl_bt_process_event(sl_bt_msg_t *evt); - -void sl_bt_on_event(sl_bt_msg_t* evt); - -// Power Manager related functions -bool sli_bt_is_ok_to_sleep(void); -sl_power_manager_on_isr_exit_t sli_bt_sleep_on_isr_exit(void); - -#endif // BLUETOOTH_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_board_default_init.c b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_board_default_init.c deleted file mode 100644 index bd43db368..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_board_default_init.c +++ /dev/null @@ -1,36 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Board Default Init - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_board_control.h" - -void sl_board_default_init(void) -{ - sl_board_disable_vcom(); - -} diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_component_catalog.h b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_component_catalog.h deleted file mode 100644 index fb05f93bb..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_component_catalog.h +++ /dev/null @@ -1,81 +0,0 @@ -#ifndef SL_COMPONENT_CATALOG_H -#define SL_COMPONENT_CATALOG_H - -// APIs present in project -#define SL_CATALOG_BGAPI_PROTOCOL_PRESENT -#define SL_CATALOG_BGAPI_PROTOCOL_RTOS_ADAPTATION_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_CONNECTION_ROLE_PERIPHERAL_PRESENT -#ifdef SL_BLE_SIDE_CHANNEL_ENABLED -#define SL_CATALOG_BLUETOOTH_FEATURE_DYNAMIC_GATTDB_PRESENT -#endif // SL_BLE_SIDE_CHANNEL_ENABLED -#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_CPP_SUPPORT_PRESENT -#define SL_CATALOG_DEVICE_INIT_PRESENT -#define SL_CATALOG_DEVICE_INIT_DCDC_PRESENT -#define SL_CATALOG_EMLIB_CORE_PRESENT -#define SL_CATALOG_EMLIB_RMU_PRESENT -#define SL_CATALOG_FREERTOS_KERNEL_PRESENT -#define SL_CATALOG_KERNEL_PRESENT -#define SL_CATALOG_GATT_CONFIGURATION_PRESENT -#define SL_CATALOG_GPIO_PRESENT -#define SL_CATALOG_GPIOINTERRUPT_PRESENT -#define SL_CATALOG_HAL_SYSTEM_PRESENT -#define SL_CATALOG_HFXO_MANAGER_PRESENT -#define SL_CATALOG_INTERRUPT_MANAGER_PRESENT -#define SL_CATALOG_IOSTREAM_PRESENT -#ifdef DISPLAY_ENABLED -#define SL_CATALOG_MEMLCD_USART_PRESENT -#define SL_CATALOG_DMD_MEMLCD_PRESENT -#endif -#define SL_CATALOG_MEMORY_MANAGER_PRESENT -#define SL_CATALOG_MEMORY_PROFILER_API_PRESENT -#define SL_CATALOG_MPU_PRESENT -#ifdef CONFIG_USE_EXTERNAL_FLASH -#define SL_CATALOG_MX25_FLASH_SHUTDOWN_USART_PRESENT -#endif // CONFIG_USE_EXTERNAL_FLASH -#define SL_CATALOG_NVM3_DEFAULT_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_POWER_MANAGER_DEEPSLEEP_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_SECURITY_MANAGER_PRESENT -#define SL_CATALOG_SEGGER_RTT_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_SL_CORE_PRESENT -#define SL_CATALOG_SL_MAIN_PRESENT -#define SL_CATALOG_SLEEPTIMER_PRESENT -#define SL_CATALOG_SLI_PROTOCOL_CRYPTO_PRESENT -#if defined(CONFIG_ENABLE_UART) -#define SL_CATALOG_UARTDRV_EUSART_PRESENT -#endif - -#endif // SL_COMPONENT_CATALOG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_event_handler.c b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_event_handler.c deleted file mode 100644 index 357a278f8..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_event_handler.c +++ /dev/null @@ -1,148 +0,0 @@ -#include "sl_event_handler.h" - -#include "sl_board_init.h" -#include "sl_clock_manager.h" -#include "sl_hfxo_manager.h" -#include "sl_rail_util_compatible_pa.h" -#if !(defined(SLI_SI91X_ENABLE_BLE) && SLI_SI91X_ENABLE_BLE) -#include "sl_bluetooth.h" -#include "sl_rail_util_power_manager_init.h" -#endif // !SLI_SI91X_ENABLE_BLE -#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 "platform-efr32.h" -#include "sl_bt_rtos_adaptation.h" -#include "sl_bluetooth.h" -#include "sl_debug_swo.h" -#include "sl_gpio.h" -#include "gpiointerrupt.h" -#if defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR -#include "sl_i2cspm_instances.h" -#endif // defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR -#include "sl_iostream_rtt.h" -#include "sl_mbedtls.h" -#include "sl_ot_rtos_adaptation.h" -#include "sl_simple_button_instances.h" - -#if (defined(SL_MATTER_RGB_LED_ENABLED) && SL_MATTER_RGB_LED_ENABLED == 1) -#include "sl_simple_rgb_pwm_led_instances.h" -#else -#include "sl_simple_led_instances.h" -#endif //(SL_MATTER_RGB_LED_ENABLED) && SL_MATTER_RGB_LED_ENABLED == 1) -#if defined(CONFIG_ENABLE_UART) -#include "sl_uartdrv_instances.h" -#endif // CONFIG_ENABLE_UART -#include "psa/crypto.h" -#include "sl_se_manager.h" -#include "sli_protocol_crypto.h" -#include "sli_crypto.h" -#include "sl_iostream_init_instances.h" -#include "cmsis_os2.h" -#include "nvm3_default.h" - -#include "sl_iostream_handles.h" - -void sli_driver_permanent_allocation(void) -{ -} - -void sli_service_permanent_allocation(void) -{ -} - -void sli_stack_permanent_allocation(void) -{ - sli_bt_stack_permanent_allocation(); - sl_ot_rtos_perm_allocation(); -} - -void sli_internal_permanent_allocation(void) -{ -} - -void sl_platform_init(void) -{ - sl_board_preinit(); - sl_clock_manager_runtime_init(); - sl_hfxo_manager_init_hardware(); - sl_board_init(); - bootloader_init(); - nvm3_initDefault(); -} - -void sli_internal_init_early(void) -{ -} - -void sl_kernel_start(void) -{ - sli_bt_rtos_adaptation_kernel_start(); - osKernelStart(); -} - -void sl_driver_init(void) -{ - sl_gpio_init(); - GPIOINT_Init(); -#if defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR - sl_i2cspm_init_instances(); -#endif // defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR - sl_simple_button_init_instances(); -#if (defined(SL_MATTER_RGB_LED_ENABLED) && SL_MATTER_RGB_LED_ENABLED == 1) - sl_simple_rgb_pwm_led_init_instances(); -#else - sl_simple_led_init_instances(); -#endif //(SL_MATTER_RGB_LED_ENABLED) && SL_MATTER_RGB_LED_ENABLED == 1) - #if defined(CONFIG_ENABLE_UART) - sl_uartdrv_init_instances(); -#endif // CONFIG_ENABLE_UART -} - -void sl_service_init(void) -{ - sl_board_configure_vcom(); - sl_hfxo_manager_init(); - sl_mbedtls_init(); - psa_crypto_init(); - sl_se_init(); - sli_protocol_crypto_init(); - sli_crypto_init(); - sli_aes_seed_mask(); - sl_iostream_init_instances_stage_1(); - sl_iostream_init_instances_stage_2(); -} - -void sl_stack_init(void) -{ -#if !SLI_SI91X_ENABLE_BLE - sl_rail_util_pa_init(); - sl_rail_util_power_manager_init(); - sl_rail_util_pti_init(); - sl_rail_util_rssi_init(); - sli_bt_stack_functional_init(); -#endif // !SLI_SI91X_ENABLE_BLE -#ifdef SL_OT_ENABLE - sl_ot_sys_init(); -#endif // SL_OT_ENABLE -} - -void sl_internal_app_init(void) -{ -#ifdef SL_OT_ENABLE - sl_ot_rtos_stack_init(); - sl_ot_rtos_app_init(); -#endif // SL_OT_ENABLE -} - -void sl_iostream_init_instances_stage_1(void) -{ - sl_iostream_rtt_init(); -} - -void sl_iostream_init_instances_stage_2(void) -{ - sl_iostream_set_console_instance(); -} diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_event_handler.h b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_event_handler.h deleted file mode 100644 index 1d0468d03..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_event_handler.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef SL_EVENT_HANDLER_H -#define SL_EVENT_HANDLER_H - -void sli_driver_permanent_allocation(void); -void sli_service_permanent_allocation(void); -void sli_stack_permanent_allocation(void); -void sli_internal_permanent_allocation(void); -void sl_platform_init(void); -void sli_internal_init_early(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); - -#endif // SL_EVENT_HANDLER_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_i2cspm_init.c b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_i2cspm_init.c deleted file mode 100644 index 247e557d7..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_i2cspm_init.c +++ /dev/null @@ -1,64 +0,0 @@ -/***************************************************************************//** - * @file - * @brief I2C simple poll-based master mode driver instance initialilization - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_i2cspm.h" -#include "sl_clock_manager.h" -// Include instance config -#include "sl_i2cspm_sensor_config.h" - -sl_i2cspm_t *sl_i2cspm_sensor = SL_I2CSPM_SENSOR_PERIPHERAL; - -#if SL_I2CSPM_SENSOR_SPEED_MODE == 0 -#define SL_I2CSPM_SENSOR_HLR i2cClockHLRStandard -#define SL_I2CSPM_SENSOR_MAX_FREQ I2C_FREQ_STANDARD_MAX -#elif SL_I2CSPM_SENSOR_SPEED_MODE == 1 -#define SL_I2CSPM_SENSOR_HLR i2cClockHLRAsymetric -#define SL_I2CSPM_SENSOR_MAX_FREQ I2C_FREQ_FAST_MAX -#elif SL_I2CSPM_SENSOR_SPEED_MODE == 2 -#define SL_I2CSPM_SENSOR_HLR i2cClockHLRFast -#define SL_I2CSPM_SENSOR_MAX_FREQ I2C_FREQ_FASTPLUS_MAX -#endif - -I2CSPM_Init_TypeDef init_sensor = { - .port = SL_I2CSPM_SENSOR_PERIPHERAL, - .sclPort = SL_I2CSPM_SENSOR_SCL_PORT, - .sclPin = SL_I2CSPM_SENSOR_SCL_PIN, - .sdaPort = SL_I2CSPM_SENSOR_SDA_PORT, - .sdaPin = SL_I2CSPM_SENSOR_SDA_PIN, - .i2cRefFreq = 0, - .i2cMaxFreq = SL_I2CSPM_SENSOR_MAX_FREQ, - .i2cClhr = SL_I2CSPM_SENSOR_HLR -}; - -void sl_i2cspm_init_instances(void) -{ - sl_clock_manager_enable_bus_clock(SL_BUS_CLOCK_GPIO); - I2CSPM_Init(&init_sensor); -} diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_i2cspm_instances.h b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_i2cspm_instances.h deleted file mode 100644 index 41ff115bf..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_i2cspm_instances.h +++ /dev/null @@ -1,52 +0,0 @@ -/***************************************************************************//** - * @file - * @brief I2C simple poll-based master mode driver instances - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_I2CSPM_INSTANCES_H -#define SL_I2CSPM_INSTANCES_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include "sl_i2cspm.h" - - -#define SL_I2CSPM_SENSOR_PRESENT - - -extern sl_i2cspm_t *sl_i2cspm_sensor; - -void sl_i2cspm_init_instances(void); - -#ifdef __cplusplus -} -#endif - -#endif // SL_I2CSPM_INSTANCES_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_iostream_handles.c b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_iostream_handles.c deleted file mode 100644 index dc69e48a7..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_iostream_handles.c +++ /dev/null @@ -1,63 +0,0 @@ -#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]); -sl_iostream_t *sl_iostream_recommended_console_stream = NULL; - - -/***************************************************************************//** - * Get iostream instance handle for a given name - * - * @return Instance handle if it exist, NULL otherwise. - ******************************************************************************/ -sl_iostream_t *sl_iostream_get_handle(const 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; -} - -/***************************************************************************//** - * Set iostream recommended instance for a console - ******************************************************************************/ -void sl_iostream_set_console_instance(void) -{ - sl_iostream_type_t console = SL_IOSTREAM_TYPE_UNDEFINED; - - for (uint32_t i = 0; i < sl_iostream_instances_count; i++) { - switch (sl_iostream_instances_info[i]->type) { - case SL_IOSTREAM_TYPE_UART: - case SL_IOSTREAM_TYPE_RTT: - if (console != SL_IOSTREAM_TYPE_UART) { - console = sl_iostream_instances_info[i]->type; - sl_iostream_recommended_console_stream = sl_iostream_instances_info[i]->handle; - } - break; - - case SL_IOSTREAM_TYPE_VUART: - if (console != SL_IOSTREAM_TYPE_UART && console != SL_IOSTREAM_TYPE_RTT) { - console = sl_iostream_instances_info[i]->type; - sl_iostream_recommended_console_stream = sl_iostream_instances_info[i]->handle; - } - break; - - case SL_IOSTREAM_TYPE_LOOPBACK: - // Ignore loopback interface - break; - - default: - break; - } - } -} diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_iostream_handles.h b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_iostream_handles.h deleted file mode 100644 index fcaee849d..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_iostream_handles.h +++ /dev/null @@ -1,24 +0,0 @@ -#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; - -extern sl_iostream_t *sl_iostream_recommended_console_stream; - -sl_iostream_t *sl_iostream_get_handle(const char *name); - -void sl_iostream_set_console_instance(void); - -#ifdef __cplusplus -} -#endif - -#endif // SL_IOSTREAM_HANDLES_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_iostream_init_instances.h b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_iostream_init_instances.h deleted file mode 100644 index 1e9df285f..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_iostream_init_instances.h +++ /dev/null @@ -1,17 +0,0 @@ -#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_stage_1(void); -void sl_iostream_init_instances_stage_2(void); - -#ifdef __cplusplus -} -#endif - -#endif // SL_IOSTREAM_INIT_INSTANCES_H \ No newline at end of file diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_ot_init.c b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_ot_init.c deleted file mode 100644 index 78eb35993..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_ot_init.c +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * @file - * @brief OpenThread initialization. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_ot_init.h" - -void sl_ot_init(void) -{ - sl_ot_create_instance(); - sl_ot_sleep_init(); - sl_ot_cli_init(); - sl_ot_custom_cli_init(); -} \ No newline at end of file diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_ot_init.h b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_ot_init.h deleted file mode 100644 index 4afeb49d9..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_ot_init.h +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * @file - * @brief This generated header includes declaration of all functions required - * during initialization that must be defined by the OpenThread application. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_OT_INIT_H -#define SL_OT_INIT_H - -void sl_ot_init(void); -extern void sl_ot_create_instance(void); -extern void sl_ot_sleep_init(void); -extern void sl_ot_cli_init(void); -extern void sl_ot_custom_cli_init(void); - -#endif // SL_OT_INIT_H \ No newline at end of file diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_simple_button_instances.c b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_simple_button_instances.c deleted file mode 100644 index 3991bd5e5..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_simple_button_instances.c +++ /dev/null @@ -1,86 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Button Driver Instances - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_simple_button.h" -#include "sl_simple_button_btn0_config.h" -#include "sl_simple_button_btn1_config.h" - -sl_simple_button_context_t simple_btn0_context = { - .state = 0, - .history = 0, - .port = SL_SIMPLE_BUTTON_BTN0_PORT, - .pin = SL_SIMPLE_BUTTON_BTN0_PIN, - .mode = SL_SIMPLE_BUTTON_BTN0_MODE, -}; - -const sl_button_t sl_button_btn0 = { - .context = &simple_btn0_context, - .init = sl_simple_button_init, - .get_state = sl_simple_button_get_state, - .poll = sl_simple_button_poll_step, - .enable = sl_simple_button_enable, - .disable = sl_simple_button_disable, -}; -sl_simple_button_context_t simple_btn1_context = { - .state = 0, - .history = 0, - .port = SL_SIMPLE_BUTTON_BTN1_PORT, - .pin = SL_SIMPLE_BUTTON_BTN1_PIN, - .mode = SL_SIMPLE_BUTTON_BTN1_MODE, -}; - -const sl_button_t sl_button_btn1 = { - .context = &simple_btn1_context, - .init = sl_simple_button_init, - .get_state = sl_simple_button_get_state, - .poll = sl_simple_button_poll_step, - .enable = sl_simple_button_enable, - .disable = sl_simple_button_disable, -}; - -// the table of buttons and button count are generated as a -// convenience for the application -const sl_button_t *sl_simple_button_array[] = { - &sl_button_btn0, - &sl_button_btn1 -}; -const uint8_t simple_button_count = 2; - -void sl_simple_button_init_instances(void) -{ - sl_button_init(&sl_button_btn0); - sl_button_init(&sl_button_btn1); -} - -void sl_simple_button_poll_instances(void) -{ - sl_button_poll_step(&sl_button_btn0); - sl_button_poll_step(&sl_button_btn1); -} diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_simple_button_instances.h b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_simple_button_instances.h deleted file mode 100644 index 1a5ddb293..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_simple_button_instances.h +++ /dev/null @@ -1,47 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Button Driver Instances - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_BUTTON_INSTANCES_H -#define SL_SIMPLE_BUTTON_INSTANCES_H - -#include "sl_simple_button.h" - -extern const sl_button_t sl_button_btn0; -extern const sl_button_t sl_button_btn1; - -extern const sl_button_t *sl_simple_button_array[]; - -#define SL_SIMPLE_BUTTON_COUNT 2 -#define SL_SIMPLE_BUTTON_INSTANCE(n) (sl_simple_button_array[n]) - -void sl_simple_button_init_instances(void); -void sl_simple_button_poll_instances(void); - -#endif // SL_SIMPLE_BUTTON_INSTANCES_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_simple_led_instances.c b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_simple_led_instances.c deleted file mode 100644 index 9958e20be..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_simple_led_instances.c +++ /dev/null @@ -1,75 +0,0 @@ -/***************************************************************************//** - * @file - * @brief LED Driver Instances - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_simple_led.h" -#include "sl_gpio.h" - -#include "sl_simple_led_led0_config.h" -#include "sl_simple_led_led1_config.h" - -sl_simple_led_context_t simple_led0_context = { - .port = SL_SIMPLE_LED_LED0_PORT, - .pin = SL_SIMPLE_LED_LED0_PIN, - .polarity = SL_SIMPLE_LED_LED0_POLARITY, -}; - -const sl_led_t sl_led_led0 = { - .context = &simple_led0_context, - .init = sl_simple_led_init, - .turn_on = sl_simple_led_turn_on, - .turn_off = sl_simple_led_turn_off, - .toggle = sl_simple_led_toggle, - .get_state = sl_simple_led_get_state, -}; -sl_simple_led_context_t simple_led1_context = { - .port = SL_SIMPLE_LED_LED1_PORT, - .pin = SL_SIMPLE_LED_LED1_PIN, - .polarity = SL_SIMPLE_LED_LED1_POLARITY, -}; - -const sl_led_t sl_led_led1 = { - .context = &simple_led1_context, - .init = sl_simple_led_init, - .turn_on = sl_simple_led_turn_on, - .turn_off = sl_simple_led_turn_off, - .toggle = sl_simple_led_toggle, - .get_state = sl_simple_led_get_state, -}; - -const sl_led_t *sl_simple_led_array[] = { - &sl_led_led0, - &sl_led_led1 -}; - -void sl_simple_led_init_instances(void) -{ - sl_led_init(&sl_led_led0); - sl_led_init(&sl_led_led1); -} diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_simple_led_instances.h b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_simple_led_instances.h deleted file mode 100644 index 928fbe942..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_simple_led_instances.h +++ /dev/null @@ -1,54 +0,0 @@ -/***************************************************************************//** - * @file - * @brief LED Driver Instances - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_LED_INSTANCES_H -#define SL_SIMPLE_LED_INSTANCES_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include "sl_simple_led.h" - -extern const sl_led_t sl_led_led0; -extern const sl_led_t sl_led_led1; - -extern const sl_led_t *sl_simple_led_array[]; - -#define SL_SIMPLE_LED_COUNT 2 -#define SL_SIMPLE_LED_INSTANCE(n) (sl_simple_led_array[n]) - -void sl_simple_led_init_instances(void); - -#ifdef __cplusplus -} -#endif - -#endif // SL_SIMPLE_LED_INIT_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_uartdrv_init.c b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_uartdrv_init.c deleted file mode 100644 index adab0fb5b..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_uartdrv_init.c +++ /dev/null @@ -1,74 +0,0 @@ -#include "uartdrv.h" -#include "sl_uartdrv_instances.h" -#include - -#include "sl_uartdrv_eusart_vcom_config.h" - -UARTDRV_HandleData_t sl_uartdrv_eusart_vcom_handle_data; -UARTDRV_Handle_t sl_uartdrv_eusart_vcom_handle = &sl_uartdrv_eusart_vcom_handle_data; - - -static UARTDRV_Handle_t sli_uartdrv_default_handle = NULL; - -/* If CTS and RTS not defined, define a default value to avoid errors */ -#ifndef SL_UARTDRV_EUSART_VCOM_CTS_PORT -#define SL_UARTDRV_EUSART_VCOM_CTS_PORT SL_GPIO_PORT_A -#define SL_UARTDRV_EUSART_VCOM_CTS_PIN 0 -#endif - -#ifndef SL_UARTDRV_EUSART_VCOM_RTS_PORT -#define SL_UARTDRV_EUSART_VCOM_RTS_PORT SL_GPIO_PORT_A -#define SL_UARTDRV_EUSART_VCOM_RTS_PIN 0 -#endif - - -/* Define RX and TX buffer queues */ -DEFINE_BUF_QUEUE(SL_UARTDRV_EUSART_VCOM_RX_BUFFER_SIZE, sl_uartdrv_eusart_vcom_rx_buffer); -DEFINE_BUF_QUEUE(SL_UARTDRV_EUSART_VCOM_TX_BUFFER_SIZE, sl_uartdrv_eusart_vcom_tx_buffer); - - -/* Create uartdrv initialization structs */ -UARTDRV_InitEuart_t sl_uartdrv_eusart_init_vcom = { - .port = SL_UARTDRV_EUSART_VCOM_PERIPHERAL, - .useLowFrequencyMode = SL_UARTDRV_EUSART_VCOM_LF_MODE, - .baudRate = SL_UARTDRV_EUSART_VCOM_BAUDRATE, - .txPort = SL_UARTDRV_EUSART_VCOM_TX_PORT, - .rxPort = SL_UARTDRV_EUSART_VCOM_RX_PORT, - .txPin = SL_UARTDRV_EUSART_VCOM_TX_PIN, - .rxPin = SL_UARTDRV_EUSART_VCOM_RX_PIN, - .uartNum = SL_UARTDRV_EUSART_VCOM_PERIPHERAL_NO, - .stopBits = SL_UARTDRV_EUSART_VCOM_STOP_BITS, - .parity = SL_UARTDRV_EUSART_VCOM_PARITY, - .oversampling = SL_UARTDRV_EUSART_VCOM_OVERSAMPLING, - .mvdis = SL_UARTDRV_EUSART_VCOM_MVDIS, - .fcType = SL_UARTDRV_EUSART_VCOM_FLOW_CONTROL_TYPE, - .ctsPort = SL_UARTDRV_EUSART_VCOM_CTS_PORT, - .ctsPin = SL_UARTDRV_EUSART_VCOM_CTS_PIN, - .rtsPort = SL_UARTDRV_EUSART_VCOM_RTS_PORT, - .rtsPin = SL_UARTDRV_EUSART_VCOM_RTS_PIN, - .rxQueue = (UARTDRV_Buffer_FifoQueue_t *)&sl_uartdrv_eusart_vcom_rx_buffer, - .txQueue = (UARTDRV_Buffer_FifoQueue_t *)&sl_uartdrv_eusart_vcom_tx_buffer, -}; - - -void sl_uartdrv_init_instances(void){ - UARTDRV_InitEuart(sl_uartdrv_eusart_vcom_handle, &sl_uartdrv_eusart_init_vcom); - sl_uartdrv_set_default(sl_uartdrv_eusart_vcom_handle); -} - -sl_status_t sl_uartdrv_set_default(UARTDRV_Handle_t handle) -{ - sl_status_t status = SL_STATUS_INVALID_HANDLE; - - if (handle != NULL) { - sli_uartdrv_default_handle = handle; - status = SL_STATUS_OK; - } - - return status; -} - -UARTDRV_Handle_t sl_uartdrv_get_default(void) -{ - return sli_uartdrv_default_handle; -} diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_uartdrv_instances.h b/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_uartdrv_instances.h deleted file mode 100644 index 83202285e..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sl_uartdrv_instances.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef SL_UARTDRV_INSTANCES_H -#define SL_UARTDRV_INSTANCES_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include "sl_status.h" -#include "uartdrv.h" - - -extern UARTDRV_Handle_t sl_uartdrv_eusart_vcom_handle; - -void sl_uartdrv_init_instances(void); - -/***************************************************************************//** - * Set the handle as the default UARTDRV handle. - * - * @param[in] handle UARTDRV handle to set as default. - * - * @return Status result - ******************************************************************************/ -sl_status_t sl_uartdrv_set_default(UARTDRV_Handle_t handle); - -/***************************************************************************//** - * Get the default UARTDRV handle configured. - * - * @return UARTDRV handle - ******************************************************************************/ -UARTDRV_Handle_t sl_uartdrv_get_default(void); - -#ifdef __cplusplus -} -#endif - -#endif // SL_UARTDRV_INSTANCES_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sli_mbedtls_config_autogen.h b/board-support/efr32/efr32mg24/BRD4187A/autogen/sli_mbedtls_config_autogen.h deleted file mode 100644 index 70ce043e0..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sli_mbedtls_config_autogen.h +++ /dev/null @@ -1,52 +0,0 @@ -// This is an autogenerated config file, any changes to this file will be overwritten - -#ifndef SLI_MBEDTLS_CONFIG_AUTOGEN_H -#define SLI_MBEDTLS_CONFIG_AUTOGEN_H - -// Added definition check because of DIC specific configs -#ifndef MBEDTLS_MPI_MAX_SIZE -#define MBEDTLS_MPI_MAX_SIZE 32 -#endif - -#define MBEDTLS_AES_C -#define MBEDTLS_ASN1_PARSE_C -#define MBEDTLS_ASN1_WRITE_C -#define MBEDTLS_BASE64_C -#define MBEDTLS_CIPHER_C -#define MBEDTLS_CMAC_C -#define MBEDTLS_BIGNUM_C -#define MBEDTLS_OID_C -#define MBEDTLS_PEM_PARSE_C -#define MBEDTLS_PEM_WRITE_C -#define MBEDTLS_PK_C -#define MBEDTLS_PK_PARSE_C -#define MBEDTLS_PK_WRITE_C -#define MBEDTLS_PLATFORM_C -#define MBEDTLS_PLATFORM_MEMORY -#define MBEDTLS_THREADING_C -#define MBEDTLS_THREADING_ALT -#define MBEDTLS_X509_USE_C -#define MBEDTLS_X509_CREATE_C -#define MBEDTLS_X509_CRT_PARSE_C -// Do not need this feature -// #define MBEDTLS_X509_CRT_WRITE_C -#define MBEDTLS_X509_CRL_PARSE_C -#define MBEDTLS_X509_CSR_PARSE_C -#define MBEDTLS_X509_CSR_WRITE_C -#define MBEDTLS_USE_PSA_CRYPTO -#define MBEDTLS_PSA_CRYPTO_C -#define MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS -#define MBEDTLS_PSA_CRYPTO_CONFIG -#define MBEDTLS_ECP_C -#define MBEDTLS_ECP_DP_SECP256R1_ENABLED -#define MBEDTLS_ECDSA_C -#define MBEDTLS_MD_C -#define MBEDTLS_PSA_CRYPTO_DRIVERS -#define MBEDTLS_PSA_CRYPTO_STORAGE_C - - - - - - -#endif // SLI_MBEDTLS_CONFIG_AUTOGEN_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sli_mbedtls_config_transform_autogen.h b/board-support/efr32/efr32mg24/BRD4187A/autogen/sli_mbedtls_config_transform_autogen.h deleted file mode 100644 index ccf963ce1..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sli_mbedtls_config_transform_autogen.h +++ /dev/null @@ -1,75 +0,0 @@ -// This is an autogenerated config file, any changes to this file will be overwritten - -#ifndef SLI_MBEDTLS_CONFIG_TRANSFORM_AUTOGEN_H -#define SLI_MBEDTLS_CONFIG_TRANSFORM_AUTOGEN_H - -// Convert CMSIS Markup config defines to mbedTLS specific config defines - -#if SL_MBEDTLS_RSA_NO_CRT - #define MBEDTLS_RSA_NO_CRT -#endif - -// Allow undefining the specified cipher suites -#if defined(SLI_MBEDTLS_AUTODETECT_CIPHERSUITES) - #undef MBEDTLS_SSL_CIPHERSUITES -#endif - -#if SL_MBEDTLS_SSL_MAX_FRAGMENT_LENGTH - #define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH -#endif -#if SL_MBEDTLS_SSL_EXPORT_KEYS - #define MBEDTLS_SSL_EXPORT_KEYS -#endif -#if SL_MBEDTLS_KEY_EXCHANGE_PSK_ENABLED - #define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED -#endif -#if SL_MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED - #define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED -#endif -#if SL_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED - #define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED -#endif -#if SL_MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED - #define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED -#endif -#if SL_MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED - #define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED -#endif -#if SL_MBEDTLS_ECP_ENABLE_COMPRESSED_CURVE_PARSING - #define MBEDTLS_ECP_ENABLE_COMPRESSED_CURVE_PARSING -#endif -#if SL_MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS - #define MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS -#endif - -#if !defined(MBEDTLS_SSL_IN_CONTENT_LEN) - #define MBEDTLS_SSL_IN_CONTENT_LEN SL_MBEDTLS_SSL_IN_CONTENT_LEN -#endif - -#if !defined(MBEDTLS_SSL_OUT_CONTENT_LEN) - #define MBEDTLS_SSL_OUT_CONTENT_LEN SL_MBEDTLS_SSL_OUT_CONTENT_LEN -#endif - - -#define SLI_SSL_IN_CONTENT_LEN_REQUIREMENT 900 - -// If the SDK requires a certain SSL buffer size, configure Mbed TLS -// to size the buffer to the highest of the user/default or SDK setting. -#if MBEDTLS_SSL_IN_CONTENT_LEN < SLI_SSL_IN_CONTENT_LEN_REQUIREMENT - #undef MBEDTLS_SSL_IN_CONTENT_LEN - #define MBEDTLS_SSL_IN_CONTENT_LEN SLI_SSL_IN_CONTENT_LEN_REQUIREMENT -#endif - - - -#define SLI_SSL_OUT_CONTENT_LEN_REQUIREMENT 900 - -// If the SDK requires a certain SSL buffer size, configure Mbed TLS -// to size the buffer to the highest of the user/default or SDK setting. -#if MBEDTLS_SSL_OUT_CONTENT_LEN < SLI_SSL_OUT_CONTENT_LEN_REQUIREMENT - #undef MBEDTLS_SSL_OUT_CONTENT_LEN - #define MBEDTLS_SSL_OUT_CONTENT_LEN SLI_SSL_OUT_CONTENT_LEN_REQUIREMENT -#endif - - -#endif // SLI_MBEDTLS_CONFIG_TRANSFORM_AUTOGEN_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sli_psa_builtin_config_autogen.h b/board-support/efr32/efr32mg24/BRD4187A/autogen/sli_psa_builtin_config_autogen.h deleted file mode 100644 index c8b70fad1..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sli_psa_builtin_config_autogen.h +++ /dev/null @@ -1,13 +0,0 @@ -// This is an autogenerated config file, any changes to this file will be overwritten - -#ifndef SLI_PSA_BUILTIN_CONFIG_AUTOGEN_H -#define SLI_PSA_BUILTIN_CONFIG_AUTOGEN_H - -// Do not need this feature - SLC imposed -// #define MBEDTLS_PSA_BUILTIN_KEY_TYPE_AES 1 -// #define MBEDTLS_PSA_BUILTIN_ALG_ECB_NO_PADDING 1 -// #define MBEDTLS_PSA_BUILTIN_ALG_CMAC 1 -// #define MBEDTLS_PSA_BUILTIN_ALG_PBKDF2_AES_CMAC_PRF_128 1 - - -#endif // SLI_PSA_BUILTIN_CONFIG_AUTOGEN_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/autogen/sli_psa_config_autogen.h b/board-support/efr32/efr32mg24/BRD4187A/autogen/sli_psa_config_autogen.h deleted file mode 100644 index f90dd6e9a..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/autogen/sli_psa_config_autogen.h +++ /dev/null @@ -1,37 +0,0 @@ -// This is an autogenerated config file, any changes to this file will be overwritten - -#ifndef SLI_PSA_CONFIG_AUTOGEN_H -#define SLI_PSA_CONFIG_AUTOGEN_H - -#define PSA_WANT_KEY_TYPE_AES 1 -#define PSA_WANT_ALG_CCM 1 -#define PSA_WANT_ALG_ECB_NO_PADDING 1 -#define PSA_WANT_ALG_CMAC 1 -#define PSA_WANT_ALG_SHA_256 1 -#define PSA_WANT_ALG_ECDSA 1 -#define PSA_WANT_ALG_ECDH 1 -#define PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY 1 -#define PSA_WANT_ECC_SECP_R1_256 1 -#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC 1 -#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT 1 -#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT 1 -#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE 1 -#define PSA_WANT_ALG_HKDF 1 -#define PSA_WANT_ALG_HMAC 1 -#define PSA_WANT_KEY_TYPE_HMAC 1 -#define PSA_WANT_ALG_PBKDF2_AES_CMAC_PRF_128 1 -#define PSA_WANT_ALG_TLS12_PRF 1 -#define PSA_WANT_ALG_TLS12_PSK_TO_MS 1 -#define MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG - -#if defined(KSU_MAX_KEY_SLOTS) -#include "sli_ksu_keyslots_config.h" -#define MBEDTLS_PSA_KEY_SLOT_COUNT (22 + 15 + 1 + SL_PSA_KEY_USER_SLOT_COUNT + SLI_KSU_MAX_KEY_SLOTS - SLI_KSU_KEY_SLOT_USER_START + 1) -#else -#define MBEDTLS_PSA_KEY_SLOT_COUNT (22 + 15 + 1 + SL_PSA_KEY_USER_SLOT_COUNT + 1) -#endif -#ifndef SL_PSA_ITS_MAX_FILES -#define SL_PSA_ITS_MAX_FILES (1 + SL_PSA_ITS_USER_MAX_FILES) -#endif - -#endif // SLI_PSA_CONFIG_AUTOGEN_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/app_properties_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/app_properties_config.h deleted file mode 100644 index 6a6b97666..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/app_properties_config.h +++ /dev/null @@ -1,65 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Application Properties Header File - ******************************************************************************* - * # License - * Copyright 2021 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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 APP_PROPERTIES_CONFIG_H -#define APP_PROPERTIES_CONFIG_H - -#include "sl_application_type.h" - -// <<< Use Configuration Wizard in Context Menu >>> - -// App Properties settings - -// Type of signature this application is signed with -// Default: APPLICATION_SIGNATURE_NONE(0) -#define SL_APPLICATION_SIGNATURE 0 - -// Location of the signature -// Default: 0xFFFFFFFF -#define SL_APPLICATION_SIGNATURE_LOCATION 0xFFFFFFFF - -// Bitfield representing type of application -#define SL_APPLICATION_TYPE APPLICATION_TYPE - -// Version number for this application -// <0-4294967295:1> -// Default: 1 [0-4294967295] -#define SL_APPLICATION_VERSION 1 - -// Capabilities of this application -// Default: 0 -#define SL_APPLICATION_CAPABILITIES 0 - -//Product ID of the device for which the application is built -#define SL_APPLICATION_PRODUCT_ID { 0 } - -// - -#endif // APP_PROPERTIES_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/btconf/gatt_configuration.btconf b/board-support/efr32/efr32mg24/BRD4187A/config/btconf/gatt_configuration.btconf deleted file mode 100644 index 4d1efd972..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/btconf/gatt_configuration.btconf +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - Abstract: The generic_access service contains generic information about the device. All available Characteristics are readonly. - - - - - Empty Example - - - - - - - - - Abstract: The external appearance of this device. The values are composed of a category (10-bits) and sub-categories (6-bits). - 0000 - - - - - - - - - Abstract: The Device Information Service exposes manufacturer and/or vendor information about a device. Summary: This service exposes manufacturer information about a device. The Device Information Service is instantiated as a Primary Service. Only one instance of the Device Information Service is exposed on a device. - - - - Abstract: The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device. - Silicon Labs - - - - - - - - Abstract: The value of this characteristic is a UTF-8 string representing the model number assigned by the device vendor. - Blue Gecko - - - - - - - - Abstract: The SYSTEM ID characteristic consists of a structure with two fields. The first field are the LSOs and the second field contains the MSOs. This is a 64-bit structure which consists of a 40-bit manufacturer-defined identifier concatenated with a 24 bit unique Organizationally Unique Identifier (OUI). The OUI is issued by the IEEE Registration Authority (http://standards.ieee.org/regauth/index.html) and is required to be used in accordance with IEEE Standard 802-2001.6 while the least significant 40 bits are manufacturer defined. If System ID generated based on a Bluetooth Device Address, it is required to be done as follows. System ID and the Bluetooth Device Address have a very similar structure: a Bluetooth Device Address is 48 bits in length and consists of a 24 bit Company Assigned Identifier (manufacturer defined identifier) concatenated with a 24 bit Company Identifier (OUI). In order to encapsulate a Bluetooth Device Address as System ID, the Company Identifier is concatenated with 0xFFFE followed by the Company Assigned Identifier of the Bluetooth Address. For more guidelines related to EUI-64, refer to http://standards.ieee.org/develop/regauth/tut/eui64.pdf. Examples: If the system ID is based of a Bluetooth Device Address with a Company Identifier (OUI) is 0x123456 and the Company Assigned Identifier is 0x9ABCDE, then the System Identifier is required to be 0x123456FFFE9ABCDE. - 000102030405 - - - - - - - - - Custom service - - - - Custom characteristic - 00 - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/buffer_pool_allocator_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/buffer_pool_allocator_config.h deleted file mode 100644 index 2c3fd2e67..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/buffer_pool_allocator_config.h +++ /dev/null @@ -1,29 +0,0 @@ -/***************************************************************************//** - * @file buffer_pool_allocator_config.h - * @brief Configuration file for buffer pool allocator. - * @copyright Copyright 2015 Silicon Laboratories, Inc. www.silabs.com - ******************************************************************************/ - -#ifndef __BUFFER_POOL_ALLOCATOR_CONFIG_H__ -#define __BUFFER_POOL_ALLOCATOR_CONFIG_H__ - -// <<< Use Configuration Wizard in Context Menu >>> -// Memory Manager Configuration - -// Number Buffer Pools -// <0-256:1> -// Default: 5 -#define BUFFER_POOL_ALLOCATOR_POOL_SIZE 5 - -// Length of Each Buffer Pool -// <0-1024:1> -// Default: 256 -#define BUFFER_POOL_ALLOCATOR_BUFFER_SIZE_MAX 256 - -// Clear Each Newly Allocated Buffer -#define BUFFER_POOL_ALLOCATOR_CLEAR_ON_INIT 0 - -// -// <<< end of configuration section >>> - -#endif // __BUFFER_POOL_ALLOCATOR_CONFIG_H__ diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/circular_queue_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/circular_queue_config.h deleted file mode 100644 index 81a7173d6..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/circular_queue_config.h +++ /dev/null @@ -1,23 +0,0 @@ -/***************************************************************************//** - * @file circular_queue_config.h - * @brief Configuration file for circular queue. - * @copyright Copyright 2015 Silicon Laboratories, Inc. www.silabs.com - ******************************************************************************/ - -#ifndef __CIRCULAR_QUEUE_CONFIG_H__ -#define __CIRCULAR_QUEUE_CONFIG_H__ - -// <<< Use Configuration Wizard in Context Menu >>> -// Circular Queue Configuration - -// Max Queue Length -// <0-256:1> -// Default: 5 -#ifndef CIRCULAR_QUEUE_LEN_MAX -#define CIRCULAR_QUEUE_LEN_MAX 16 -#endif - -// -// <<< end of configuration section >>> - -#endif // __CIRCULAR_QUEUE_CONFIG_H__ diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/dmadrv_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/dmadrv_config.h deleted file mode 100644 index ed105e4f3..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/dmadrv_config.h +++ /dev/null @@ -1,26 +0,0 @@ -#ifndef DMADRV_CONFIG_H -#define DMADRV_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// DMA interrupt priority <0-15> -// Priority of the DMA interrupt. Smaller number equals higher priority. -// Default: 8 -#define EMDRV_DMADRV_DMA_IRQ_PRIORITY 8 - -// Number of available channels <1-8> -// Number of DMA channels supported by the driver. A lower channel count -// will reduce RAM memory footprint. The default is to support all channels -// on the device. -// Default: 8 -#define EMDRV_DMADRV_DMA_CH_COUNT 8 - -// Number of fixed priority channels -// This will configure channels [0, CH_PRIORITY - 1] as fixed priority, -// and channels [CH_PRIORITY, CH_COUNT] as round-robin. -// Default: 0 -#define EMDRV_DMADRV_DMA_CH_PRIORITY 0 - -// <<< end of configuration section >>> - -#endif // DMADRV_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/nvm3_default_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/nvm3_default_config.h deleted file mode 100644 index 2bf415f94..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/nvm3_default_config.h +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef NVM3_DEFAULT_CONFIG_H -#define NVM3_DEFAULT_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// NVM3 Default Instance Configuration - -#ifndef NVM3_DEFAULT_CACHE_SIZE -// NVM3 Default Instance Cache Size -// Number of NVM3 objects to cache. To reduce access times this number -// should be equal to or higher than the number of NVM3 objects in the -// default NVM3 instance. -// Default: 200 -#define NVM3_DEFAULT_CACHE_SIZE 200 -#endif - -#ifndef NVM3_DEFAULT_MAX_OBJECT_SIZE -// NVM3 Default Instance Max Object Size -// Max NVM3 object size that can be stored. -// Default: 254 -#define NVM3_DEFAULT_MAX_OBJECT_SIZE 4092 -#endif - -#ifndef NVM3_DEFAULT_REPACK_HEADROOM -// NVM3 Default Instance User Repack Headroom -// Headroom determining how many bytes below the forced repack limit the user -// repack limit should be placed. The default is 0, which means the user and -// forced repack limits are equal. -// Default: 0 -#define NVM3_DEFAULT_REPACK_HEADROOM 0 -#endif - -#ifndef NVM3_DEFAULT_NVM_SIZE -// NVM3 Default Instance Size -// Size of the NVM3 storage region in flash. This size should be aligned with -// the flash page size of the device. -// Default: 40960 -#define NVM3_DEFAULT_NVM_SIZE 40960 -#endif - -// - -// <<< end of configuration section >>> - -#endif // NVM3_DEFAULT_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/pin_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/pin_config.h deleted file mode 100644 index 5f72d8949..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/pin_config.h +++ /dev/null @@ -1,252 +0,0 @@ -#ifndef PIN_CONFIG_H -#define PIN_CONFIG_H - -// $[CMU] -// [CMU]$ - -// $[LFXO] -// [LFXO]$ - -// $[PRS.ASYNCH0] -// [PRS.ASYNCH0]$ - -// $[PRS.ASYNCH1] -// [PRS.ASYNCH1]$ - -// $[PRS.ASYNCH2] -// [PRS.ASYNCH2]$ - -// $[PRS.ASYNCH3] -// [PRS.ASYNCH3]$ - -// $[PRS.ASYNCH4] -// [PRS.ASYNCH4]$ - -// $[PRS.ASYNCH5] -// [PRS.ASYNCH5]$ - -// $[PRS.ASYNCH6] -// [PRS.ASYNCH6]$ - -// $[PRS.ASYNCH7] -// [PRS.ASYNCH7]$ - -// $[PRS.ASYNCH8] -// [PRS.ASYNCH8]$ - -// $[PRS.ASYNCH9] -// [PRS.ASYNCH9]$ - -// $[PRS.ASYNCH10] -// [PRS.ASYNCH10]$ - -// $[PRS.ASYNCH11] -// [PRS.ASYNCH11]$ - -// $[PRS.ASYNCH12] -// [PRS.ASYNCH12]$ - -// $[PRS.ASYNCH13] -// [PRS.ASYNCH13]$ - -// $[PRS.ASYNCH14] -// [PRS.ASYNCH14]$ - -// $[PRS.ASYNCH15] -// [PRS.ASYNCH15]$ - -// $[PRS.SYNCH0] -// [PRS.SYNCH0]$ - -// $[PRS.SYNCH1] -// [PRS.SYNCH1]$ - -// $[PRS.SYNCH2] -// [PRS.SYNCH2]$ - -// $[PRS.SYNCH3] -// [PRS.SYNCH3]$ - -// $[GPIO] -// GPIO SWV on PA03 -#ifndef GPIO_SWV_PORT -#define GPIO_SWV_PORT SL_GPIO_PORT_A -#endif -#ifndef GPIO_SWV_PIN -#define GPIO_SWV_PIN 3 -#endif - -// [GPIO]$ - -// $[TIMER0] -// [TIMER0]$ - -// $[TIMER1] -// [TIMER1]$ - -// $[TIMER2] -// [TIMER2]$ - -// $[TIMER3] -// [TIMER3]$ - -// $[TIMER4] -// [TIMER4]$ - -// $[USART0] -// USART0 CLK on PC03 -#ifndef USART0_CLK_PORT -#define USART0_CLK_PORT SL_GPIO_PORT_C -#endif -#ifndef USART0_CLK_PIN -#define USART0_CLK_PIN 3 -#endif - -// USART0 TX on PC01 -#ifndef USART0_TX_PORT -#define USART0_TX_PORT SL_GPIO_PORT_C -#endif -#ifndef USART0_TX_PIN -#define USART0_TX_PIN 1 -#endif - -// [USART0]$ - -// $[I2C1] -// I2C1 SCL on PC05 -#ifndef I2C1_SCL_PORT -#define I2C1_SCL_PORT SL_GPIO_PORT_C -#endif -#ifndef I2C1_SCL_PIN -#define I2C1_SCL_PIN 5 -#endif - -// I2C1 SDA on PC07 -#ifndef I2C1_SDA_PORT -#define I2C1_SDA_PORT SL_GPIO_PORT_C -#endif -#ifndef I2C1_SDA_PIN -#define I2C1_SDA_PIN 7 -#endif - -// [I2C1]$ - -// $[EUSART1] -// [EUSART1]$ - -// $[KEYSCAN] -// [KEYSCAN]$ - -// $[LETIMER0] -// [LETIMER0]$ - -// $[IADC0] -// [IADC0]$ - -// $[ACMP0] -// [ACMP0]$ - -// $[ACMP1] -// [ACMP1]$ - -// $[VDAC0] -// [VDAC0]$ - -// $[VDAC1] -// [VDAC1]$ - -// $[PCNT0] -// [PCNT0]$ - -// $[HFXO0] -// [HFXO0]$ - -// $[I2C0] -// [I2C0]$ - -// $[EUSART0] -// EUSART0 CTS on PB05 -#ifndef EUSART0_CTS_PORT -#define EUSART0_CTS_PORT SL_GPIO_PORT_B -#endif -#ifndef EUSART0_CTS_PIN -#define EUSART0_CTS_PIN 5 -#endif - -// EUSART0 RTS on PA00 -#ifndef EUSART0_RTS_PORT -#define EUSART0_RTS_PORT SL_GPIO_PORT_A -#endif -#ifndef EUSART0_RTS_PIN -#define EUSART0_RTS_PIN 0 -#endif - -// EUSART0 RX on PA09 -#ifndef EUSART0_RX_PORT -#define EUSART0_RX_PORT SL_GPIO_PORT_A -#endif -#ifndef EUSART0_RX_PIN -#define EUSART0_RX_PIN 9 -#endif - -// EUSART0 TX on PA08 -#ifndef EUSART0_TX_PORT -#define EUSART0_TX_PORT SL_GPIO_PORT_A -#endif -#ifndef EUSART0_TX_PIN -#define EUSART0_TX_PIN 8 -#endif - -// [EUSART0]$ - -// $[PTI] -// [PTI]$ - -// $[MODEM] -// [MODEM]$ - -// $[CUSTOM_PIN_NAME] -#ifndef _PORT -#define _PORT SL_GPIO_PORT_A -#endif -#ifndef _PIN -#define _PIN 0 -#endif - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -// [CUSTOM_PIN_NAME]$ - - -#endif // PIN_CONFIG_H - - diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/psa_crypto_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/psa_crypto_config.h deleted file mode 100644 index 773ce99e0..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/psa_crypto_config.h +++ /dev/null @@ -1,176 +0,0 @@ -#ifndef PSA_CRYPTO_CONFIG_H -#define PSA_CRYPTO_CONFIG_H - -// ----------------------------------------------------------------------------- -// User exposed config options - -// <<< Use Configuration Wizard in Context Menu >>> - -// Key management configuration - -// PSA User Maximum Open Keys Count <0-128> -// Maximum amount of keys that the user application will have open -// simultaneously. In context of PSA Crypto, an open key means any key -// either stored in RAM (lifetime set to PSA_KEY_LIFETIME_VOLATILE), or -// used as part of a cryptographic operation. -// When using a key for a multi-part (setup/update/finish) operation, a key -// is considered to be open from the moment the operation is successfully -// setup, until it finishes or aborts. -// When an application tries to open more keys than this value accounts for, -// the PSA API may return PSA_ERROR_INSUFFICIENT_MEMORY. Keep in mind that -// other software included in the application (e.g. wireless protocol stacks) -// also can have a need to have open keys in PSA Crypto. This could lead to -// a race condition when the application key slot count is set too low for -// the actual usage of the application, as a software stack may not fail -// gracefully in case an application opens more than its declared amount of -// keys, thereby precluding the stack from functioning. -// Default: 4 -#define SL_PSA_KEY_USER_SLOT_COUNT (4) - -// Maximum User Persistent PSA Key Count <0-1024> -// Maximum amount of keys (or other files) that can be stored persistently -// by the user application, when PSA ITS (Internal Trusted Storage) support -// is included in the project. -// NOTE: -// In addition to SL_PSA_ITS_USER_MAX_FILES (number of user keys) the -// application may be configured to include SDK components that require an -// additional number of keys. The sum of user keys and SDK component keys -// is computed and the result, called SL_PSA_ITS_MAX_FILES, is used -// internally in the PSA ITS driver. -// -// WARNING: -// For applications using PSA ITS driver version 1 or 2, when changing the -// SL_PSA_ITS_USER_MAX_FILES in an application that is already depeloyed, -// and thus will get the change through an application upgrade, care should -// be taken to ensure that the total sum of keys SL_PSA_ITS_MAX_FILES is -// only ever equal or increased, and never decreased. Decreasing this -// setting might cause previously stored keys/files to become inaccessible, -// ITS should be cleared and all files need to be stored again. -// -// For applications using PSA ITS driver version 3, it is not possible to -// change this setting because the file-storage indexing is dependent on the -// maximum number of files (SL_PSA_ITS_MAX_FILES) being consistent, and if -// the sum of SDK component keys and user keys (SL_PSA_ITS_USER_MAX_FILES) -// is changed, may cause previously stored keys/files to become inaccessible -// ITS should be cleared and all files need to be stored again. -// Default: 128 -#define SL_PSA_ITS_USER_MAX_FILES (128) - -// Enable V1 Format Support For ITS Files <0-1> -// Devices that used PSA ITS together with gecko_sdk_3.1.x or earlier -// might have keys (or other files) stored in V1 format. -// If no v1 files are used, its support can be disabled for space -// optimization. -// Default: 0 -#define SL_PSA_ITS_SUPPORT_V1_DRIVER 0 - -// Enable V2 ITS Driver Support <0-1> -// Devices that have used GSDK 4.1.x and earlier, and used ITS have the keys -// (or other files) stored using different address range. Enabling this -// config option adds upgrade code which converts V2 (and V1 if -// supported) format ITS keys/files to the latest V3 format. Update is -// fully automatic, needs to be run once and require extra flash space of -// approximately the size of the largest key. -// V1 ITS driver support can be disabled if the device has never used ITS -// driver before in GSDK 4.1.x and earlier, or the keys has been already -// migrated. -// Default: 0 -#define SL_PSA_ITS_SUPPORT_V2_DRIVER 0 - -// Enable support for V3 ITS Driver <0-1> -// Devices that have used GSDK 4.1.x and earlier, and used ITS have the keys -// (or other files) stored using different address range. In rare case -// that those devices have full nvm3 and not enough space for the -// upgrade, (that requires an extra space to store largest key in memory -// twice), this config option can disable v3 driver and use v2 one. -// To upgrade the device, make space for the upgrade, and enable v3 driver again. -// -// WARNING: When using V3 driver, it is not possible to increase or decrease -// the value of SL_PSA_ITS_USER_MAX_FILES. If the change of -// SL_PSA_ITS_USER_MAX_FILES is required, ITS should be cleared and -// all files need to be stored again. -// Default: 1 -#define SL_PSA_ITS_SUPPORT_V3_DRIVER 1 - -// Built-in AES Key Mode of Operation -// CTR Mode -// CFB Mode -// OFB Mode -// ECB Mode -// CBC Mode (no padding) -// CBC Mode (PKCS#7 padding) -// PSA Crypto only allows one specific usage algorithm per built-in key ID. -// Default: PSA_ALG_CTR -#define SL_SE_BUILTIN_KEY_AES128_ALG_CONFIG (PSA_ALG_CTR) - -#ifndef SL_CRYPTOACC_BUILTIN_KEY_PUF_ALG -// Built-in PUF Key Algorithm -// PBKDF2 (CMAC-AES-128-PRF) -// CMAC -// PSA Crypto only allows one specific usage algorithm per built-in key ID. -// It is recommended to only use the PUF key for deriving further key -// material. -// Default: PSA_ALG_PBKDF2_AES_CMAC_PRF_128 -#define SL_CRYPTOACC_BUILTIN_KEY_PUF_ALG (PSA_ALG_PBKDF2_AES_CMAC_PRF_128) -#endif // SL_CRYPTOACC_BUILTIN_KEY_PUF_ALG - -// - -// Power optimization configuration - -// Store already-generated random bytes before putting the device to sleep -// Using the hardware TRNG (for example through psa_generate_random()) will -// consume a non-negligible amount of power. A start-up routine must pass -// and a relatively large minimum amount of random bytes will be generated. -// Use cases where the device is frequently entering EM2/EM3 and thereafter -// consumes a small amount of data from the TRNG may benefit from buffering -// the existing random bytes before putting the device to sleep. These -// buffered bytes are then consumed until exhaustion before the TRNG needs -// to be initialized and used again. -// -// NOTE: this configuration option is only applicable for devices with a -// Virtual Secure Engine (VSE), and requires the 'Power Manager' component -// to be included in the project. -// -// Default: 0 -#define SL_VSE_BUFFER_TRNG_DATA_DURING_SLEEP (0) - -// Number of random words to buffer before putting the device to sleep <1-63> -// This option can be used to decrease the amount of random words that -// (if enabled) are buffered before the device enters EM2/EM3. Lowering this -// number will result in less static RAM usage, but also means that the TRNG -// potentially has to be initialized more times--leading to increased power -// consumption. By default this option in configured to buffer as much TRNG -// data as possible (limited by the depth of the TRNG FIFO). -// -// NOTE: this configuration option is only applicable when -// SL_VSE_BUFFER_TRNG_DATA_DURING_SLEEP is enabled. -// -// Default: 63 -#define SL_VSE_MAX_TRNG_WORDS_BUFFERED_DURING_SLEEP (63) -// - -// - -// <<< end of configuration section >>> - -// ----------------------------------------------------------------------------- -// Sub-files - -#if defined(SLI_PSA_CONFIG_AUTOGEN_OVERRIDE_FILE) - #include SLI_PSA_CONFIG_AUTOGEN_OVERRIDE_FILE -#else - #include "sli_psa_config_autogen.h" -#endif - -#if defined(TFM_CONFIG_SL_SECURE_LIBRARY) - #include "sli_psa_tfm_translation.h" -#endif - -#if SL_MBEDTLS_DRIVERS_ENABLED - #include "sli_psa_acceleration.h" -#endif - -#include "sli_psa_builtin_config_autogen.h" - -#endif // PSA_CRYPTO_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_802154_radio_priority_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_802154_radio_priority_config.h deleted file mode 100644 index 77334ba2c..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_802154_radio_priority_config.h +++ /dev/null @@ -1,57 +0,0 @@ -/***************************************************************************//** - * @brief Unified radio scheduler priority configuration for 802.15.4 stacks - * - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * The licensor of this software is Silicon Laboratories Inc. Your use of this - * software is governed by the terms of Silicon Labs Master Software License - * Agreement (MSLA) available at - * www.silabs.com/about-us/legal/master-software-license-agreement. This - * software is distributed to you in Source Code format and is governed by the - * sections of the MSLA applicable to Source Code. - * - ******************************************************************************/ -#ifndef __SL_802154_RADIO_PRIORITY_CONFIG_H__ -#define __SL_802154_RADIO_PRIORITY_CONFIG_H__ - -// <<< Use Configuration Wizard in Context Menu >>> - -// 802.15.4 Radio Priorities - -// TX priority minimum -// <1-255:1> -// Default: 100 -// The 802.15.4 TX priority for the first try of a TX message -#define SL_802154_RADIO_PRIO_TX_MIN 100 - -// TX priority step -// <1-50:1> -// Default: 2 -// The delta by which the TX priority for 802.15.4 stacks decrements for each retry of the packet -#define SL_802154_RADIO_PRIO_TX_STEP 2 - -// TX priority maximum -// <1-255:1> -// Default: 80 -// The highest 802.15.4 TX priority of a message. TX priorities are elevated based on number of retries and the step value specified -#define SL_802154_RADIO_PRIO_TX_MAX 80 - -// Active RX priority -// <1-255:1> -// Default: 255 -// The 802.15.4 active RX priority. Active RX is when the device is receiving a packet -#define SL_802154_RADIO_PRIO_ACTIVE_RX_VALUE 255 - -// Background RX priority -// <1-255:1> -// Default: 255 -// The 802.15.4 background RX priority. Background RX is the general, passive receive state when the device is not transmitting anything -#define SL_802154_RADIO_PRIO_BACKGROUND_RX_VALUE 255 - -// - -// <<< end of configuration section >>> -#endif //__SL_802154_RADIO_PRIORITY_CONFIG_H__ diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_bgapi_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_bgapi_config.h deleted file mode 100644 index 1ae43b6b5..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_bgapi_config.h +++ /dev/null @@ -1,43 +0,0 @@ -/***************************************************************************//** - * @file - * @brief BGAPI Protocol configuration - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BGAPI_CONFIG_H -#define SL_BGAPI_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// The maximum BGAPI payload size <256-2047> -// Default: 256 -// Define the maximum payload size for BGAPI commands, responses, and events. The setting impacts all protocol stacks that use the BGAPI, i.e. Bluetooth host and Bluetooth mesh. -#define SL_BGAPI_MAX_PAYLOAD_SIZE (256) - -// <<< end of configuration section >>> - -#endif // SL_BGAPI_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_bluetooth_advertiser_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_bluetooth_advertiser_config.h deleted file mode 100644 index 00163cd9a..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_bluetooth_advertiser_config.h +++ /dev/null @@ -1,45 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth Advertiser configuration - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BT_ADVERTISER_CONFIG_H -#define SL_BT_ADVERTISER_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> -// Max number of advertising sets reserved for user <0-255> -// Default: 1 -// Define the number of advertising sets that the application needs to use concurrently. Note that all types of advertising uses the same pool of advertising sets, but periodic advertising has extra configuration to define the number of advertising sets that are capable of periodic advertising. -// -// Specifically, if the component "bluetooth_feature_periodic_advertiser" is used, its configuration SL_BT_CONFIG_MAX_PERIODIC_ADVERTISERS specifies how many of the SL_BT_CONFIG_USER_ADVERTISERS advertising sets are capable of periodic advertising. Similarly, if the component bluetooth_feature_pawr_advertiser is used, its configuration SL_BT_CONFIG_MAX_PAWR_ADVERTISERS specifies how many of the periodic advertising sets are capable of Periodic Advertising with Responses. -// -// The configuration values must satisfy the condition SL_BT_CONFIG_USER_ADVERTISERS >= SL_BT_CONFIG_MAX_PERIODIC_ADVERTISERS >= SL_BT_CONFIG_MAX_PAWR_ADVERTISERS. -#define SL_BT_CONFIG_USER_ADVERTISERS (1) -// <<< end of configuration section >>> - -#endif diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_bluetooth_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_bluetooth_config.h deleted file mode 100644 index 93bfbbcc4..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_bluetooth_config.h +++ /dev/null @@ -1,181 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth Stack configuration - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BLUETOOTH_CONFIG_H -#define SL_BLUETOOTH_CONFIG_H -#if defined(SL_COMPONENT_CATALOG_PRESENT) -#include "sl_component_catalog.h" -#endif - -// <<< Use Configuration Wizard in Context Menu >>> - -// Bluetooth Stack Configuration - -#ifdef SL_CATALOG_BLUETOOTH_FEATURE_CONNECTION_PRESENT -#include "sl_bluetooth_connection_config.h" -#else -#define SL_BT_CONFIG_MAX_CONNECTIONS (0) -#endif - -// Max number of connections reserved by user application and components -#define SL_BT_CONFIG_MAX_CONNECTIONS_SUM (SL_BT_CONFIG_MAX_CONNECTIONS + SL_BT_COMPONENT_CONNECTIONS) - -#ifdef SL_CATALOG_BLUETOOTH_FEATURE_ADVERTISER_PRESENT -#include "sl_bluetooth_advertiser_config.h" -#else -#define SL_BT_CONFIG_USER_ADVERTISERS (0) -#endif - -#define SL_BT_CONFIG_MAX_ADVERTISERS (SL_BT_CONFIG_USER_ADVERTISERS + SL_BT_COMPONENT_ADVERTISERS) - -// Max number of software timers <0-16> -// Default: 4 -// Define the number of software timers the application needs. Each timer needs resources from the stack to be implemented. Increasing amount of soft timers may cause degraded performance in some use cases. -#define SL_BT_CONFIG_MAX_SOFTWARE_TIMERS (4) - -// Buffer memory size for Bluetooth stack -// Default: 3150 -// Define buffer memory size for running Bluetooth stack and buffering data over Bluetooth connections, -// advertising and scanning. The default value is an estimation for achieving adequate throughput -// and supporting multiple simultaneous connections. Consider increasing this value for -// higher data throughput over connections, advertising or scanning long advertisement data. -#define SL_BT_CONFIG_BUFFER_SIZE (3150) - -// Enable using a custom Bluetooth address stored in NVM3 -// Enable or disable using a custom Bluetooth address stored the Bluetooth space of NVM3. When enabled, -// the Bluetooth stack sets the address as the Bluetooth identity address of the device if a valid address -// is found in NVM3. -// Default: 1 -#define SL_BT_CONFIG_SET_CUSTOM_ADDRESS_FROM_NVM3 (1) -// - -// Enable setting the HFXO CTUNE with a value stored in the Bluetooth space of NVM3. -// Enable or disable setting the HFXO CTUNE with a value stored in the Bluetooth space of NVM3. When enabled, the -// Bluetooth stack sets the HFXO CTUNE at Bluetooth starting phase if a CTUNE value is found in NVM3. This -// operation will override the CTUNE that is set to with the value stored in the MFG_CTUNE token or the -// configuration value in the Clock Manager. -// Setting the HFXO CTUNE with this method is deprecated. Currently the functionality is provided for keeping -// backwards compatibility with legacy SDKs, and the support will be discontinued in future SDK releases. -// The recommended method is to store CTUNE value in the MFG_CTUNE token. -// Default: 0 -#define SL_BT_CONFIG_SET_CTUNE_FROM_NVM3 (0) -// - -// End Bluetooth Stack Configuration - -// TX Power Levels - -// Minimum radiated TX power level in 0.1dBm unit -// Default: -30 (-3 dBm) -// Configure the minimum radiated TX power level for Bluetooth connections and DTM testing. -// This configuration is used for power control on Bluetooth connections -// if the LE Power Control feature is enabled. -// When this configuration is passed into stack initialization, the stack -// will select the closest value that the device supports. -// API sl_bt_system_set_tx_power() can be used to set the minimum TX power at runtime. -// API sl_bt_system_get_tx_power_setting() can be used to query the selected value. -#define SL_BT_CONFIG_MIN_TX_POWER (-30) - -// Maximum radiated TX power level in 0.1dBm unit -// Default: 80 (8 dBm) -// Configure the maximum radiated TX power level for Bluetooth connections, -// advertising, scanning and DTM testing. -// When this configuration is passed into stack initialization, the stack -// will select the closest value that the device supports. -// API sl_bt_system_set_tx_power() can be used to set the maximum TX power at runtime. -// API sl_bt_system_get_tx_power_setting() can be used to query the selected value. -#define SL_BT_CONFIG_MAX_TX_POWER (80) - -// End TX Power Levels - -// RF Path - -// RF TX path gain in 0.1dBm unit -// Default: 0 -// The Bluetooth stack takes TX RF path gain into account when adjusting transmitter -// output power. Power radiated from the antenna then matches the application request. -// A negative value indicates some power loss in the path. For example, -// with radiated TX power set to +10 dBm and this configuration to -10 -// (i.e., 1 dBm loss), the transmitter output power will be set to +11 dBm. -#define SL_BT_CONFIG_RF_PATH_GAIN_TX (0) - -// RF RX path gain in 0.1dBm unit -// Default: 0 -// RX RF path gain is used to compensate the RSSI reports from the Bluetooth Stack. -#define SL_BT_CONFIG_RF_PATH_GAIN_RX (0) - -// End RF Path - -// <<< end of configuration section >>> - -/** - * By default, Bluetooth requires accurate LF clock for EM2. If the component - * catalog presents, an inaccurate LF clock for EM2 can be used if the Bluetooth - * connection, periodic advertising and periodic advertising synchronization - * features are known to not present. - */ -#define BT_EM2_LFCLK_REQ_FLAG 0 - -#if defined(SL_COMPONENT_CATALOG_PRESENT) -#if !defined(SL_CATALOG_BLUETOOTH_FEATURE_CONNECTION_PRESENT) \ - && !defined(SL_CATALOG_BLUETOOTH_FEATURE_PERIODIC_ADV_PRESENT) \ - && !defined(SL_CATALOG_BLUETOOTH_FEATURE_SYNC_PRESENT) - #undef BT_EM2_LFCLK_REQ_FLAG - #define BT_EM2_LFCLK_REQ_FLAG SL_BT_CONFIG_FLAG_INACCURATE_LFCLK_EM2 -#endif -#endif // SL_COMPONENT_CATALOG_PRESENT - -#ifdef SL_CATALOG_KERNEL_PRESENT - #define SL_BT_CONFIG_FLAGS (SL_BT_CONFIG_FLAG_RTOS | BT_EM2_LFCLK_REQ_FLAG) -#else - #define SL_BT_CONFIG_FLAGS (BT_EM2_LFCLK_REQ_FLAG) -#endif // SL_CATALOG_KERNEL_PRESENT - -#include "sl_bt_stack_config.h" -#include "sl_bgapi_config.h" // For SL_BGAPI_MAX_PAYLOAD_SIZE - -// NOTE: Struct sl_btctrl_ll_priorities is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// The Link Layer scheduler priority configuration is initialized via the Bluetooth Low Energy Controller component. -#define SL_BT_CONFIG_DEFAULT \ - { \ - .config_flags = SL_BT_CONFIG_FLAGS, \ - .bluetooth.max_buffer_memory = SL_BT_CONFIG_BUFFER_SIZE, \ - .scheduler_callback = NULL, \ - .stack_schedule_callback = NULL, \ - .gattdb = &gattdb, \ - .max_timers = SL_BT_CONFIG_MAX_SOFTWARE_TIMERS, \ - .rf.tx_gain = SL_BT_CONFIG_RF_PATH_GAIN_TX, \ - .rf.rx_gain = SL_BT_CONFIG_RF_PATH_GAIN_RX, \ - .rf.tx_min_power = SL_BT_CONFIG_MIN_TX_POWER, \ - .rf.tx_max_power = SL_BT_CONFIG_MAX_TX_POWER, \ - .max_bgapi_payload_size = SL_BGAPI_MAX_PAYLOAD_SIZE, \ - } - -#endif // SL_BLUETOOTH_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_board_control_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_board_control_config.h deleted file mode 100644 index f474c7408..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_board_control_config.h +++ /dev/null @@ -1,88 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Board Control - ******************************************************************************* - * # License - * Copyright 2022 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BOARD_CONTROL_CONFIG_H -#define SL_BOARD_CONTROL_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Enable Virtual COM UART -// Default: 0 -#define SL_BOARD_ENABLE_VCOM 0 - -// Enable Display -// Default: 0 -#define SL_BOARD_ENABLE_DISPLAY 0 - -// Enable Relative Humidity and Temperature sensor -// Default: 0 -#define SL_BOARD_ENABLE_SENSOR_RHT 0 - -// Disable SPI Flash -// Default: 1 -#define SL_BOARD_DISABLE_MEMORY_SPI 1 - -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_BOARD_ENABLE_VCOM -// $[GPIO_SL_BOARD_ENABLE_VCOM] -#ifndef SL_BOARD_ENABLE_VCOM_PORT -#define SL_BOARD_ENABLE_VCOM_PORT SL_GPIO_PORT_B -#endif -#ifndef SL_BOARD_ENABLE_VCOM_PIN -#define SL_BOARD_ENABLE_VCOM_PIN 0 -#endif -// [GPIO_SL_BOARD_ENABLE_VCOM]$ - -// SL_BOARD_ENABLE_DISPLAY -// $[GPIO_SL_BOARD_ENABLE_DISPLAY] -#ifndef SL_BOARD_ENABLE_DISPLAY_PORT -#define SL_BOARD_ENABLE_DISPLAY_PORT SL_GPIO_PORT_C -#endif -#ifndef SL_BOARD_ENABLE_DISPLAY_PIN -#define SL_BOARD_ENABLE_DISPLAY_PIN 9 -#endif -// [GPIO_SL_BOARD_ENABLE_DISPLAY]$ - -// SL_BOARD_ENABLE_SENSOR_RHT -// $[GPIO_SL_BOARD_ENABLE_SENSOR_RHT] -#ifndef SL_BOARD_ENABLE_SENSOR_RHT_PORT -#define SL_BOARD_ENABLE_SENSOR_RHT_PORT SL_GPIO_PORT_D -#endif -#ifndef SL_BOARD_ENABLE_SENSOR_RHT_PIN -#define SL_BOARD_ENABLE_SENSOR_RHT_PIN 3 -#endif -// [GPIO_SL_BOARD_ENABLE_SENSOR_RHT]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_BOARD_CONTROL_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_bt_host_adaptation_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_bt_host_adaptation_config.h deleted file mode 100644 index 4ba5a3dc8..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_bt_host_adaptation_config.h +++ /dev/null @@ -1,59 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Configuration of the Bluetooth host stack system adaptation layer - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BT_HOST_ADAPTATION_CONFIG_H -#define SL_BT_HOST_ADAPTATION_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Bluetooth Host Adaptation Configuration - -// Radio interrupt priority in baremetal applications <1..7:1> -// Default: 4 -// Define the ISR priority for radio interrupts in baremetal applications. The Bluetooth host stack sets this priority when the Bluetooth stack is started. -// -// NOTE: SL_BT_HOST_ADAPTATION_RADIO_IRQ_PRIORITY is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// Please use SL_BT_CONTROLLER_RADIO_IRQ_PRIORITY instead, provided by the Bluetooth Low Energy Controller component. -#define SL_BT_HOST_ADAPTATION_RADIO_IRQ_PRIORITY (4) - -// Linklayer interrupt priority in baremetal applications <1..7:1> -// Default: 5 -// Define the ISR priority for linklayer interrupts in baremetal applications. The Bluetooth host stack sets this priority when the Bluetooth stack is started. -// The value of SL_BT_HOST_ADAPTATION_LINKLAYER_IRQ_PRIORITY must be higher than SL_BT_HOST_ADAPTATION_RADIO_IRQ_PRIORITY. -// -// NOTE: SL_BT_HOST_ADAPTATION_LINKLAYER_IRQ_PRIORITY is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// Please use SL_BT_CONTROLLER_LINKLAYER_IRQ_PRIORITY instead, provided by the Bluetooth Low Energy Controller component. -#define SL_BT_HOST_ADAPTATION_LINKLAYER_IRQ_PRIORITY (5) - -// Bluetooth Host Adaptation Configuration - -// <<< end of configuration section >>> - -#endif // SL_BT_HOST_ADAPTATION_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_bt_rtos_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_bt_rtos_config.h deleted file mode 100644 index b80c07967..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_bt_rtos_config.h +++ /dev/null @@ -1,44 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth RTOS configuration - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BT_RTOS_CONFIG_H -#define SL_BT_RTOS_CONFIG_H - -#include - -#if defined(_SILICON_LABS_32B_SERIES_2) -#include "sl_bt_rtos_config_s2.h" -#elif defined(_SILICON_LABS_32B_SERIES_3) -#include "sl_bt_rtos_config_s3.h" -#else -#error "Device not supported" -#endif - -#endif // SL_BT_RTOS_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_bt_rtos_config_s2.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_bt_rtos_config_s2.h deleted file mode 100644 index eb4fe3ea2..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_bt_rtos_config_s2.h +++ /dev/null @@ -1,84 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth RTOS configuration - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BT_RTOS_CONFIG_S2_H -#define SL_BT_RTOS_CONFIG_S2_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Priority Configuration for Bluetooth RTOS Tasks - -// Bluetooth link layer task priority -// Default: 52 (CMSIS-RTOS2 osPriorityRealtime4) -// Define the priority of the Bluetooth link layer task. This must be a valid -// priority value from CMSIS-RTOS2 osPriority_t definition. The link layer -// task must have the highest priority in these three Bluetooth RTOS tasks. -#define SL_BT_RTOS_LINK_LAYER_TASK_PRIORITY (52) - -// Bluetooth link layer task stack size in bytes -// Default: 1000 -// Define the stack size of the Bluetooth link layer task. The value is in bytes -// and will be word aligned when it is applied at the task creation. -#define SL_BT_RTOS_LINK_LAYER_TASK_STACK_SIZE 1024 - -// Bluetooth host stack task priority -// Default: 51 (CMSIS-RTOS2 osPriorityRealtime3) -// Define the priority of the Bluetooth host stack task. This must be a -// valid priority value from CMSIS-RTOS2 osPriority_t definition. -#define SL_BT_RTOS_HOST_STACK_TASK_PRIORITY (51) - -// Bluetooth host stack task stack size in bytes -// Default: 2000 -// Define the stack size of the Bluetooth host stack task. The value is in bytes -// and will be word aligned when it is applied at the task creation. -#define SL_BT_RTOS_HOST_STACK_TASK_STACK_SIZE 2048 - -// Bluetooth event handler task priority -// Default: 50 (CMSIS-RTOS2 osPriorityRealtime2) -// Define the priority of the Bluetooth event handler task. This must be a -// valid priority value from CMSIS-RTOS2 osPriority_t definition. The event -// handler task must have the lowest priority in these three Bluetooth RTOS tasks. -// The event task is not created and this configuration is unused if the -// Bluetooth Event System IPC component is included in the application -#define SL_BT_RTOS_EVENT_HANDLER_TASK_PRIORITY (50) - -// Bluetooth event handler task stack size in bytes -// Default: 1000 -// Define the stack size of the Bluetooth event handler task. The value is in bytes -// and will be word aligned when it is applied at the task creation. -// The event task is not created and this configuration is unused if the -// Bluetooth Event System IPC component is included in the application -#define SL_BT_RTOS_EVENT_HANDLER_STACK_SIZE 1536 - -// End Priority Configuration for Bluetooth RTOS Tasks - -// <<< end of configuration section >>> - -#endif // SL_BT_RTOS_CONFIG_S2_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_btctrl_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_btctrl_config.h deleted file mode 100644 index 403df1ffe..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_btctrl_config.h +++ /dev/null @@ -1,174 +0,0 @@ -#ifndef SL_BTCTRL_CONFIG_H -#define SL_BTCTRL_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Bluetooth Controller Configuration - -// Bluetooth Controller Buffer Memory -// Default: SL_BT_CONTROLLER_BUFFER_MEMORY -// Define the Amount of memory to allocate for tx/rx buffers in Bluetooth Controller -#ifndef SL_BT_CONTROLLER_BUFFER_MEMORY -#define SL_BT_CONTROLLER_BUFFER_MEMORY (8192) -#endif - -// Bluetooth Controller ACL data packets that can be stored -// Default: SL_BT_CONTROLLER_LE_BUFFER_SIZE_MAX -// Define the total number of the maximum sized ACL data packets that can be received from the host -#ifndef SL_BT_CONTROLLER_LE_BUFFER_SIZE_MAX -#define SL_BT_CONTROLLER_LE_BUFFER_SIZE_MAX (3) -#endif - -// Maximum number of queued advertisement reports <1-255> -// Default: 10 -// Define the maximum number of queued advertisement reports. Additional advertisement reports are dropped. -#ifndef SL_BT_CONFIG_MAX_QUEUED_ADV_REPORTS -#define SL_BT_CONFIG_MAX_QUEUED_ADV_REPORTS (10) -#endif - -// Bluetooth Controller Scanner Reception Early Abort. -// Default: Disabled -// Enable or disable the scanner reception early abort feature. -// This feature allows the controller to control the scanner to abort the reception of a packet if it will conflinct with another scheduled higher priority task. -#ifndef SL_BT_CONTROLLER_SCANNER_RECEPTION_EARLY_ABORT -#define SL_BT_CONTROLLER_SCANNER_RECEPTION_EARLY_ABORT (0) -#endif - -// Linklayer interrupt priority in baremetal applications <1..7:1> -// Default: 5 -// Define the ISR priority for linklayer interrupts in baremetal applications. -// The value of SL_BT_CONTROLLER_LINKLAYER_IRQ_PRIORITY must be higher than SL_BT_CONTROLLER_RADIO_IRQ_PRIORITY. -// -// NOTE: SL_BT_CONTROLLER_LINKLAYER_IRQ_PRIORITY is only applicable in baremetal applications. -// For RCP applications that include an RTOS, Link Layer thread priority is determined by SL_BTCTRL_RTOS_LINK_LAYER_TASK_PRIORITY, -// defined in config/sl_btctrl_rtos_config.h. -// For NCP/SoC applications that include an RTOS, Link Layer thread priority is determined by SL_BT_RTOS_LINK_LAYER_TASK_PRIORITY, -// defined in config/sl_bt_rtos_config.h. -#ifndef SL_BT_CONTROLLER_LINKLAYER_IRQ_PRIORITY -#define SL_BT_CONTROLLER_LINKLAYER_IRQ_PRIORITY (5) -#endif - -// Radio interrupt priority <1..7:1> -// Default: 4 -// Define the ISR priority for radio interrupts. -#ifndef SL_BT_CONTROLLER_RADIO_IRQ_PRIORITY -#define SL_BT_CONTROLLER_RADIO_IRQ_PRIORITY (4) -#endif - -// TX Power Levels - -// Override Default Minimum Supported TX Power Level -// Default: 0 -// Define the minimum radiated TX power level. -#ifndef SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE -#define SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE (0) -#endif - -// Minimum radiated TX power level in 0.1dBm unit -// Default: 0 -// Define the minimum radiated TX power level. -// If the configured power level is lower than what the radio supports, the minimum supported level will be used. -// For NCP and SoC applications, the TX power configuration is located in the Bluetooth Core component. -// This value will nonetheless be applied, provided that SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE is enabled, and the corresponding minimum TX power value in the Bluetooth Core component remains at the default value. -// For RCP applications, this value will be applied if SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE is enabled. If SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE is disabled, this value will be ignored and the minimum supported TX power level will be used. -#ifndef SL_BT_CONTROLLER_MIN_POWER_LEVEL -#define SL_BT_CONTROLLER_MIN_POWER_LEVEL (0) -#endif -// - -// Override Default Maximum Supported TX Power Level -// Default: 0 -// Define the maximum radiated TX power level. -#ifndef SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE -#define SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE (0) -#endif - -// Maximum radiated TX power level in 0.1dBm unit -// Default: 0 -// Define the maximum radiated TX power level. -// If the configured power level is higher than what the radio supports, the maximum supported level will be used. -// For NCP and SoC applications, the TX power configuration is located in the Bluetooth Core component. -// This value will nonetheless be applied, provided that SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE is enabled, and the corresponding maximum TX power value in the Bluetooth Core component remains at the default value. -// For RCP applications, this value will be applied if SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE is enabled. If SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE is disabled, this value will be ignored and the maximum supported TX power level will be used. -#ifndef SL_BT_CONTROLLER_MAX_POWER_LEVEL -#define SL_BT_CONTROLLER_MAX_POWER_LEVEL (0) -#endif -// - -// End TX Power Levels - -// Bluetooth Controller Configuration for LE Connection -// Total transmitted packets threshold for all connections to send the Number Of Completed Packets HCI event to the host <1-255> -// Default: 4 -// Define the number of transmitted air interface ACL packets to trigger the Number Of Completed Packets HCI event. -#ifndef SL_BT_CONTROLLER_COMPLETED_PACKETS_THRESHOLD -#define SL_BT_CONTROLLER_COMPLETED_PACKETS_THRESHOLD (4) -#endif - -// Number of connection events to send the Number Of Completed Packets HCI event to the host <1-255> -// Default: 3 -// Define the maximum number of connection events since the previous Number Of Completed Packets HCI event to trigger reporting of any unreported completed ACL packets. -#ifndef SL_BT_CONTROLLER_COMPLETED_PACKETS_EVENTS_TIMEOUT -#define SL_BT_CONTROLLER_COMPLETED_PACKETS_EVENTS_TIMEOUT (3) -#endif - -// Bluetooth Controller Minimum Connection Event Duration -// Default: SL_BT_CONTROLLER_CONN_EVENT_LENGTH_MIN -// Define the minimum connection event length in 0.625 ms units. This value is used to provide a hint to the linklayer scheduler. -// User could set a larger minimum connection event length when creating a connection or when updating connection parameters. -#ifndef SL_BT_CONTROLLER_CONN_EVENT_LENGTH_MIN -#define SL_BT_CONTROLLER_CONN_EVENT_LENGTH_MIN (3) -#endif - -// Bluetooth Controller Connection Event Extension -// Default: Disabled -// Enable or disable the connection event extension feature. -// This allows connections to overrun lower priority tasks as long as there is data to transmit or receive on the connection, -// and the maximum connection event length is not reached. -#ifndef SL_BT_CONTROLLER_CONN_EVENT_LENGTH_EXTENSION -#define SL_BT_CONTROLLER_CONN_EVENT_LENGTH_EXTENSION (0) -#endif -// Bluetooth Controller Configuration for LE Connection - -// Use legacy event code 0x3e for vendor specific events -// Default: 0 -#ifndef SL_BT_CONTROLLER_USE_LEGACY_VENDOR_SPECIFIC_EVENT_CODE -#define SL_BT_CONTROLLER_USE_LEGACY_VENDOR_SPECIFIC_EVENT_CODE (0) -#endif - -// Adaptive Frequency Hopping operation mode -// Active AFH -// Passive AFH -// Choose between active AFH and passive AFH -// Default: Active AFH -// SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY -#ifndef SL_BT_CONTROLLER_ADAPTIVITY_MODE -#define SL_BT_CONTROLLER_ADAPTIVITY_MODE (SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY) -#endif - -// Advertising Configuration -// Include TX Power in the extended header of primary extended advertising packets -// This is default setting to all advertising sets unless it is specifically overridden by VS_SiliconLabs_Set_Advertising_Config_Bits. -// Default: 0 -// Enabling this option takes effect only if permitted by Le_Set_Extended_Advertising_Parameters -// According to Link Layer specification, Vol 6, Part B, Table 2.4 and Table 2.5: -// Optional in 1M PHY when the advertiser is connectable or scannable, or with auxiliary pointer. -// In other cases, the Extended Advertising TX Power is always optional by settings. -#define SL_BT_CONTROLLER_PRIMARY_EXT_PACKET_INCLUDE_TX_POWER (0) -// -// Include Advertiser Address in the header of primary extended advertising packets -// This is default setting to all advertising sets unless it is specifically overridden by VS_SiliconLabs_Set_Advertising_Config_Bits. -// Default: 0 -// Enabling this option takes effect only if permitted by Le_Set_Extended_Advertising_Parameters -// According to Link Layer specification, Vol 6, Part B, Table 2.4 and Table 2.5: -// Optional in 1M PHY when the advertiser is non-connectable and non-scannable, with auxiliary pointer. -// Mandatory when the advertiser is non-connectable and non-scannable, without auxiliary pointer. -// Forbidden when the advertiser is connectable or scannable. -#define SL_BT_CONTROLLER_PRIMARY_EXT_PACKET_INCLUDE_ADDRESS (0) -// -// Advertising Configuration -// Bluetooth Controller Configuration - -// <<< end of configuration section >>> - -#endif // SL_BTCTRL_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_btctrl_scheduler_priority_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_btctrl_scheduler_priority_config.h deleted file mode 100644 index 0eec28095..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_btctrl_scheduler_priority_config.h +++ /dev/null @@ -1,235 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Bluetooth Scheduler Priority configuration - ******************************************************************************* - * # License - * Copyright 2025 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H -#define SL_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H -#include "sl_btctrl_linklayer_defs.h" - -// <<< Use Configuration Wizard in Context Menu >>> - -// Bluetooth Low Energy Scheduler Priorities - -// Scan - Min -// <0-255:1> -// Default: 191 -// Define the lowest permitted BLE scan priority. [0-255] -// A lower value indicates a higher priority. -// Scanning is typically considered to be a low priority -// operation, and the default values are set to reflect that. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MIN 191 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MIN - -// Scan - Max -// <0-255:1> -// Default: 143 -// Define the highest permitted BLE scan priority. [0-255] -// A lower value indicates a higher priority. -// Scanning is typically considered to be a low priority -// operation, and the default values are set to reflect that. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MAX 143 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MAX - -// Scan - Step -// <1-255:1> -// Default: 4 -// Define the step size of an increment or decrement of the scan priority. -// This defines how quickly the scanner adjusts the task priority -// in the event of a scheduling conflict. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP -#define SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP 4 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP - -// Advertisement - Min -// <0-255:1> -// Default: 175 -// Define the lowest permitted BLE advertisement priority. [0-255] -// A lower value indicates a higher priority. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MIN 175 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MIN - -// Advertisement - Max -// <0-255:1> -// Default: 127 -// Define the highest permitted BLE advertisement priority. [0-255] -// A lower value indicates a higher priority. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MAX 127 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MAX - -// Advertisement - Step -// <1-255:1> -// Default: 4 -// Define the step size of an increment or decrement of the advertisement priority. -// This defines how quickly the advertiser adjusts the task priority -// in the event of a scheduling conflict. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP -#define SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP 4 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP - -// Connection - Min -// <0-255:1> -// Default: 135 -// Define the lowest permitted BLE connection priority. [0-255] -// A lower value indicates a higher priority. -// The minimum connection priority is by default above the priority of scanning -// and advertising. Connection priority is calculated by how close to the -// supervision timeout the connection is. In good link conditions, the -// connection priority is close to the minimum specified value. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MIN 135 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MIN - -// Connection - Max -// <0-255:1> -// Default: 0 -// Define the highest permitted BLE connection priority. [0-255] -// A lower value indicates a higher priority. -// The default is equal to the maximum possible value. If the connection -// priority has risen to the maximum value then this is likely the last connection -// event before the supervision timeout. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX 0 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX - -// Connection Initiation - Min -// <0-255:1> -// Default: 55 -// Define the lowest permitted BLE connection initiation priority. [0-255] -// A lower value indicates a higher priority. -// The scanning priority during connection establishment. -// The default value gives a relatively high minimum priority to connection -// establishment. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN 55 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN - -// Connection Initiation - Max -// <0-255:1> -// Default: 15 -// Define the highest permitted BLE connection initiation priority. [0-255] -// A lower value indicates a higher priority. -// This default value prevents the initiation task from consuming too much -// high priority connection task time. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX 15 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX - -// Rail Mapping Window Min -// <0-255:1> -// Default: 16 -// Define the minimum value of RAIL mapping window. -// This parameter specifies how task priorities are passed to radio -// coexistence and multiprotocol schedulers. -// Internal task priorities in Bluetooth should always use maximum range of 0-255, -// and use this mapping window to adapt to other protocols. -// Internal task priorities are linear scaled to the window before passing -// to RAIL. -// If coexistence or multiprotocol configuration is not used, then these -// parameters have no effect. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 16 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN - -// Rail Mapping Window Range -// <0-255:1> -// Default: 32 -// Define the maximum value of the RAIL mapping window. -// See SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN for a description of -// this parameter. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 32 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX - -// PAwR Tx - Min -// <0-255:1> -// Default: 15 -// Define the lowest permitted BLE PAwR transmission priority. [0-255] -// A lower value indicates a higher priority. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MIN 15 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MIN - -// PAwR Tx - Max -// <0-255:1> -// Default: 5 -// Define the highest permitted BLE PAwR transmission priority. [0-255] -// A lower value indicates a higher priority. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MAX 5 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MAX - -// PAwR Rx - Min -// <0-255:1> -// Default: 20 -// Define the lowest permitted BLE PAwR reception priority. [0-255] -// A lower value indicates a higher priority. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MIN 20 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MIN - -// PAwR Rx - Max -// <0-255:1> -// Default: 10 -// Define the highest permitted BLE PAwR reception priority. [0-255] -// A lower value indicates a higher priority. -#ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MAX 10 -#endif // SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MAX - -// - -// <<< end of configuration section >>> - -//Default priority configuration -#define SL_BTCTRL_SCHEDULER_PRIORITIES { \ - .scan_min = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MIN, \ - .scan_max = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_MAX, \ - .adv_min = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MIN, \ - .adv_max = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_MAX, \ - .conn_min = SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MIN, \ - .conn_max = SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX, \ - .init_min = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN, \ - .init_max = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX, \ - .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN, \ - .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX \ - - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN), \ - 0, \ - .adv_step = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP, \ - .scan_step = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP, \ - .pawr_tx_min = SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MIN, \ - .pawr_tx_max = SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_TX_MAX, \ - .pawr_rx_min = SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MIN, \ - .pawr_rx_max = SL_BT_CONTROLLER_SCHEDULER_PRI_PAWR_RX_MAX \ -} - -#endif // SL_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_clock_manager_oscillator_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_clock_manager_oscillator_config.h deleted file mode 100644 index ae4127646..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_clock_manager_oscillator_config.h +++ /dev/null @@ -1,376 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Clock Manager - Oscillators configuration file. - ******************************************************************************* - * # License - * Copyright 2025 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_CLOCK_MANAGER_OSCILLATOR_CONFIG_H -#define SL_CLOCK_MANAGER_OSCILLATOR_CONFIG_H - -#if defined(SL_COMPONENT_CATALOG_PRESENT) -#include "sl_component_catalog.h" - -#endif - -// Internal Defines: DO NOT MODIFY -#define SL_CLOCK_MANAGER_HFXO_EN_ENABLE 1 -#define SL_CLOCK_MANAGER_HFXO_EN_DISABLE 0 - -#if defined(SL_CATALOG_RAIL_LIB_PRESENT) -#define SL_CLOCK_MANAGER_HFXO_EN_AUTO SL_CLOCK_MANAGER_HFXO_EN_ENABLE -#else -#define SL_CLOCK_MANAGER_HFXO_EN_AUTO SL_CLOCK_MANAGER_HFXO_EN_DISABLE -#endif - -// <<< Use Configuration Wizard in Context Menu >>> - -// Oscillators Settings - -// HFXO Settings (if High Frequency crystal is used) - -// Enable -// Enable to configure HFXO -// AUTO enables HFXO if a radio is used -// AUTO -// ENABLE -// DISABLE -// SL_CLOCK_MANAGER_HFXO_EN_AUTO -#ifndef SL_CLOCK_MANAGER_HFXO_EN -#define SL_CLOCK_MANAGER_HFXO_EN SL_CLOCK_MANAGER_HFXO_EN_ENABLE -#endif - -// Mode -// -// XTAL -// EXTCLK -// EXTCLKPKDET -// HFXO_CFG_MODE_XTAL -#ifndef SL_CLOCK_MANAGER_HFXO_MODE -#define SL_CLOCK_MANAGER_HFXO_MODE HFXO_CFG_MODE_XTAL -#endif - -// Frequency in Hz <38000000-40000000> -// 39000000 -#ifndef SL_CLOCK_MANAGER_HFXO_FREQ -#define SL_CLOCK_MANAGER_HFXO_FREQ 39000000 -#endif - -// CTUNE <0-255> -// 140 -#ifndef SL_CLOCK_MANAGER_HFXO_CTUNE -#define SL_CLOCK_MANAGER_HFXO_CTUNE 87 -#endif - -// Precision in PPM <0-65535> -// 50 -#ifndef SL_CLOCK_MANAGER_HFXO_PRECISION -#define SL_CLOCK_MANAGER_HFXO_PRECISION 50 -#endif - -// CTUNE HXFO manufacturing -// Enable to use CTUNE HFXO manufacturing value for calibration -// 1 -#ifndef SL_CLOCK_MANAGER_CTUNE_MFG_HFXO_EN -#define SL_CLOCK_MANAGER_CTUNE_MFG_HFXO_EN 1 -#endif - -// HFXO crystal sharing feature -// Enable to configure HFXO crystal sharing leader or follower -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_EN -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_EN 0 -#endif - -// Crystal sharing leader -// Enable to configure HFXO crystal sharing leader -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_EN -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_EN 0 -#endif - -// Crystal sharing leader minimum startup delay -// If enabled, BUFOUT does not start until timeout set in -// SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_TIMEOUT_STARTUP expires. -// This prevents waste of power if BUFOUT is ready too early. -// 1 -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_MIN_STARTUP_DELAY_EN -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_MIN_STARTUP_DELAY_EN 1 -#endif - -// Wait duration of oscillator startup sequence -// -// T42US -// T83US -// T108US -// T133US -// T158US -// T183US -// T208US -// T233US -// T258US -// T283US -// T333US -// T375US -// T417US -// T458US -// T500US -// T667US -// HFXO_BUFOUTCTRL_TIMEOUTSTARTUP_T208US -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_TIMEOUT_STARTUP -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_TIMEOUT_STARTUP HFXO_BUFOUTCTRL_TIMEOUTSTARTUP_T208US -#endif -// -// - -// Crystal sharing follower -// Enable to configure HFXO crystal sharing follower -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_FOLLOWER_EN -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_FOLLOWER_EN 0 -#endif -// - -// GPIO Port -// Bufout request GPIO port. If SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_EN -// is enabled, this port will be used to receive the BUFOUT request. If -// SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_FOLLOWER_EN is enabled this port -// will be used to request BUFOUT from the crystal sharing leader. -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_GPIO_PORT -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_GPIO_PORT 0 -#endif - -// GPIO Pin -// Bufout request GPIO pin. If SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_LEADER_EN -// is enabled, this pin will be used to receive the BUFOUT request. If -// SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_FOLLOWER_EN is enabled this pin -// will be used to request BUFOUT from the crystal sharing leader. -#ifndef SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_GPIO_PIN -#define SL_CLOCK_MANAGER_HFXO_CRYSTAL_SHARING_GPIO_PIN 10 -#endif -// -// - -// LFXO Settings (if Low Frequency crystal is used) -// Enable to configure LFXO -#ifndef SL_CLOCK_MANAGER_LFXO_EN -#define SL_CLOCK_MANAGER_LFXO_EN 1 -#endif - -// Mode -// -// XTAL -// BUFEXTCLK -// DIGEXTCLK -// LFXO_CFG_MODE_XTAL -#ifndef SL_CLOCK_MANAGER_LFXO_MODE -#define SL_CLOCK_MANAGER_LFXO_MODE LFXO_CFG_MODE_XTAL -#endif - -// CTUNE <0-127> -// 63 -#ifndef SL_CLOCK_MANAGER_LFXO_CTUNE -#define SL_CLOCK_MANAGER_LFXO_CTUNE 36 -#endif - -// LFXO precision in PPM <0-65535> -// 50 -#ifndef SL_CLOCK_MANAGER_LFXO_PRECISION -#define SL_CLOCK_MANAGER_LFXO_PRECISION 50 -#endif - -// Startup Timeout Delay -// -// CYCLES2 -// CYCLES256 -// CYCLES1K -// CYCLES2K -// CYCLES4K -// CYCLES8K -// CYCLES16K -// CYCLES32K -// LFXO_CFG_TIMEOUT_CYCLES4K -#ifndef SL_CLOCK_MANAGER_LFXO_TIMEOUT -#define SL_CLOCK_MANAGER_LFXO_TIMEOUT LFXO_CFG_TIMEOUT_CYCLES4K -#endif - -// CTUNE LXFO manufacturing -// Enable to use CTUNE LFXO manufacturing value for calibration -// 1 -#ifndef SL_CLOCK_MANAGER_CTUNE_MFG_LFXO_EN -#define SL_CLOCK_MANAGER_CTUNE_MFG_LFXO_EN 1 -#endif -// - -// HFRCO and DPLL Settings -// Frequency Band -// RC Oscillator Frequency Band -// 1 MHz -// 2 MHz -// 4 MHz -// 7 MHz -// 13 MHz -// 16 MHz -// 19 MHz -// 26 MHz -// 32 MHz -// 38 MHz -// 48 MHz -// 56 MHz -// 64 MHz -// 80 MHz -// cmuHFRCODPLLFreq_80M0Hz -#ifndef SL_CLOCK_MANAGER_HFRCO_BAND -#define SL_CLOCK_MANAGER_HFRCO_BAND cmuHFRCODPLLFreq_80M0Hz -#endif - -// Use DPLL -// Enable to use the DPLL with HFRCO -#ifndef SL_CLOCK_MANAGER_HFRCO_DPLL_EN -#define SL_CLOCK_MANAGER_HFRCO_DPLL_EN 1 -#endif - -// Target Frequency in Hz <1000000-80000000> -// DPLL target frequency -// 78000000 -#ifndef SL_CLOCK_MANAGER_DPLL_FREQ -#define SL_CLOCK_MANAGER_DPLL_FREQ 78000000 -#endif - -// Numerator (N) <300-4095> -// Value of N for output frequency calculation fout = fref * (N+1) / (M+1) -// 3839 -#ifndef SL_CLOCK_MANAGER_DPLL_N -#define SL_CLOCK_MANAGER_DPLL_N 3839 -#endif - -// Denominator (M) <0-4095> -// Value of M for output frequency calculation fout = fref * (N+1) / (M+1) -// 1919 -#ifndef SL_CLOCK_MANAGER_DPLL_M -#define SL_CLOCK_MANAGER_DPLL_M 1919 -#endif - -// Reference Clock -// Reference clock source for DPLL -// DISABLED -// HFXO -// LFXO -// CLKIN0 -// CMU_DPLLREFCLKCTRL_CLKSEL_HFXO -#ifndef SL_CLOCK_MANAGER_DPLL_REFCLK -#define SL_CLOCK_MANAGER_DPLL_REFCLK CMU_DPLLREFCLKCTRL_CLKSEL_HFXO -#endif - -// Reference Clock Edge Detect -// Edge detection for reference clock -// Falling Edge -// Rising Edge -// cmuDPLLEdgeSel_Fall -#ifndef SL_CLOCK_MANAGER_DPLL_EDGE -#define SL_CLOCK_MANAGER_DPLL_EDGE cmuDPLLEdgeSel_Fall -#endif - -// DPLL Lock Mode -// Lock mode -// Frequency-Lock Loop -// Phase-Lock Loop -// cmuDPLLLockMode_Freq -#ifndef SL_CLOCK_MANAGER_DPLL_LOCKMODE -#define SL_CLOCK_MANAGER_DPLL_LOCKMODE cmuDPLLLockMode_Phase -#endif - -// Automatic Lock Recovery -// 1 -#ifndef SL_CLOCK_MANAGER_DPLL_AUTORECOVER -#define SL_CLOCK_MANAGER_DPLL_AUTORECOVER 1 -#endif - -// Enable Dither -// 0 -#ifndef SL_CLOCK_MANAGER_DPLL_DITHER -#define SL_CLOCK_MANAGER_DPLL_DITHER 0 -#endif -// -// - -// HFRCOEM23 Settings -// Frequency Band -// RC Oscillator Frequency Band -// 1 MHz -// 2 MHz -// 4 MHz -// 13 MHz -// 16 MHz -// 19 MHz -// 26 MHz -// 32 MHz -// 40 MHz -// cmuHFRCOEM23Freq_19M0Hz -#ifndef SL_CLOCK_MANAGER_HFRCOEM23_BAND -#define SL_CLOCK_MANAGER_HFRCOEM23_BAND cmuHFRCOEM23Freq_19M0Hz -#endif -// - -// LFRCO Settings -// Precision Mode -// Precision mode uses hardware to automatically re-calibrate the LFRCO -// against a crystal driven by the HFXO. Hardware detects temperature -// changes and initiates a re-calibration of the LFRCO as needed when -// operating in EM0, EM1, or EM2. If a re-calibration is necessary and the -// HFXO is not active, the precision mode hardware will automatically -// enable HFXO for a short time to perform the calibration. EM4 operation is -// not allowed while precision mode is enabled. -// If high precision is selected on devices that do not support it, default -// precision will be used. -// Default precision -// High precision -// cmuPrecisionDefault -#ifndef SL_CLOCK_MANAGER_LFRCO_PRECISION -#define SL_CLOCK_MANAGER_LFRCO_PRECISION cmuPrecisionDefault -#endif -// - -// CLKIN0 Settings -// Frequency in Hz <1000000-38000000> -// 38000000 -#ifndef SL_CLOCK_MANAGER_CLKIN0_FREQ -#define SL_CLOCK_MANAGER_CLKIN0_FREQ 38000000 -#endif -// - -// - -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_CLOCK_MANAGER_CLKIN0 -// $[CMU_SL_CLOCK_MANAGER_CLKIN0] - - -// [CMU_SL_CLOCK_MANAGER_CLKIN0]$ - -// <<< sl:end pin_tool >>> - -#endif /* SL_CLOCK_MANAGER_OSCILLATOR_CONFIG_H */ diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_clock_manager_tree_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_clock_manager_tree_config.h deleted file mode 100644 index 1f6f2a089..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_clock_manager_tree_config.h +++ /dev/null @@ -1,309 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Clock Manager - Clock Tree configuration file. - ******************************************************************************* - * # License - * Copyright 2025 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_CLOCK_MANAGER_TREE_CONFIG_H -#define SL_CLOCK_MANAGER_TREE_CONFIG_H - -#if defined(SL_COMPONENT_CATALOG_PRESENT) -#include "sl_component_catalog.h" - -#endif - -// Internal Defines: DO NOT MODIFY -// Those defines are used internally to help converting the DEFAULT_HF_CLOCK_SOURCE and DEFAULT_LF_CLOCK_SOURCE -// selection of each clock branch to the right HW register value. -#define SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_HFRCODPLL 0xFF -#define SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_HFXO 0xFE -#define SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_FSRCO 0xFD -#define SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE_LFRCO 0xFC -#define SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE_LFXO 0xFB -#define SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE_ULFRCO 0xFA - -#if defined(SL_CATALOG_RAIL_LIB_PRESENT) -#define SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_AUTO SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_HFXO -#else -#define SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_AUTO SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_HFRCODPLL -#endif - -// <<< Use Configuration Wizard in Context Menu >>> - -// Clock Tree Settings - -// Default Clock Source Selection for HF clock branches -// AUTO -// HFRCODPLL -// HFXO -// FSRCO -// Selection of the high frequency clock source. HF clock branches can select this value by chosing the DEFAULT_HF value. -// AUTO uses HFXO if a radio is used and HFRCODPLL otherwise -// SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_AUTO -#ifndef SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#define SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_HFXO -#endif - -// Default Clock Source Selection for LF clock branches -// LFRCO -// LFXO -// ULFRCO -// Selection of the low frequency clock source. LF clock branches can select this value by chosing the DEFAULT_HF value. -// SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE_LFRCO -#ifndef SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#define SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE_LFXO -#endif - -// System Clock Branch Settings - -// Clock Source Selection for SYSCLK branch -// DEFAULT_HF -// FSRCO -// HFRCODPLL -// HFXO -// CLKIN0 -// Selection of the Clock source for SYSCLK -// SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_SYSCLK_SOURCE -#define SL_CLOCK_MANAGER_SYSCLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#endif - -// HCLK branch divider -// DIV1 -// DIV2 -// DIV4 -// DIV8 -// DIV16 -// HCLK branch is derived from SYSCLK. This clock drives the AHB bus interface. -// CMU_SYSCLKCTRL_HCLKPRESC_DIV1 -#ifndef SL_CLOCK_MANAGER_HCLK_DIVIDER -#define SL_CLOCK_MANAGER_HCLK_DIVIDER CMU_SYSCLKCTRL_HCLKPRESC_DIV1 -#endif - -// PCLK branch divider -// DIV1 -// DIV2 -// MIN -// PCLK branch is derived from HCLK. This clock drives the APB bus interface. -// SL_CLOCK_MANAGER_PCLK_DIV_MIN -#ifndef SL_CLOCK_MANAGER_PCLK_DIVIDER -#define SL_CLOCK_MANAGER_PCLK_DIVIDER SL_CLOCK_MANAGER_PCLK_DIV_MIN -#endif - -// - -// Trace Clock Branches Settings -// Clock Source Selection for TRACECLK branch -// DISABLE -// SYSCLK -// HFRCOEM23 -// HFRCODPLLRT -// Selection of the Clock source for TRACECLK -// CMU_TRACECLKCTRL_CLKSEL_SYSCLK -#ifndef SL_CLOCK_MANAGER_TRACECLK_SOURCE -#define SL_CLOCK_MANAGER_TRACECLK_SOURCE CMU_TRACECLKCTRL_CLKSEL_SYSCLK -#endif - -// TRACECLK branch Divider -// DIV1 -// DIV2 -// DIV3 -// DIV4 -// Selection of the divider value for TRACECLK branch -// CMU_TRACECLKCTRL_PRESC_DIV1 -#ifndef SL_CLOCK_MANAGER_TRACECLK_DIVIDER -#define SL_CLOCK_MANAGER_TRACECLK_DIVIDER CMU_TRACECLKCTRL_PRESC_DIV1 -#endif - -// - -// High Frequency Clock Branches Settings -// Each HF Clock Tree branch can be customized, else the same clock source as for SYSCLK will be used when possible -// EM01GRPACLK clock the Timer peripherals -// Clock Source Selection for EM01GRPACLK branch -// DEFAULT_HF -// HFRCODPLL -// HFXO -// FSRCO -// HFRCOEM23 -// HFRCODPLLRT -// HFXORT -// Selection of the Clock source for EM01GRPACLK -// SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_EM01GRPACLK_SOURCE -#define SL_CLOCK_MANAGER_EM01GRPACLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#endif - -// Clock Source Selection for EM01GRPCCLK branch -// DEFAULT_HF -// HFRCODPLL -// HFXO -// FSRCO -// HFRCOEM23 -// HFRCODPLLRT -// HFXORT -// Selection of the Clock source for EM01GRPCCLK -// SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_EM01GRPCCLK_SOURCE -#define SL_CLOCK_MANAGER_EM01GRPCCLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE -#endif - -// Clock Source Selection for IADCCLK branch -// EM01GRPACLK -// FSRCO -// HFRCOEM23 -// Selection of the Clock source for IADCCLK -// CMU_IADCCLKCTRL_CLKSEL_EM01GRPACLK -#ifndef SL_CLOCK_MANAGER_IADCCLK_SOURCE -#define SL_CLOCK_MANAGER_IADCCLK_SOURCE CMU_IADCCLKCTRL_CLKSEL_EM01GRPACLK -#endif - -// - -// Low Frequency Clock Branches Settings - -// Clock Source Selection for EM23GRPACLK branch -// DEFAULT_LF -// LFRCO -// LFXO -// ULFRCO -// Selection of the Clock source for EM23GRPACLK -// SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_EM23GRPACLK_SOURCE -#define SL_CLOCK_MANAGER_EM23GRPACLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#endif - -// Clock Source Selection for EM4GRPACLK branch -// DEFAULT_LF -// LFRCO -// LFXO -// ULFRCO -// Selection of the Clock source for EM4GRPACLK -// SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_EM4GRPACLK_SOURCE -#define SL_CLOCK_MANAGER_EM4GRPACLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#endif - -// Clock Source Selection for SYSRTCCLK branch -// DEFAULT_LF -// LFRCO -// LFXO -// ULFRCO -// Selection of the Clock source for SYSRTCCLK -// SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_SYSRTCCLK_SOURCE -#define SL_CLOCK_MANAGER_SYSRTCCLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#endif - -// Clock Source Selection for WDOG0CLK branch -// DEFAULT_LF -// LFRCO -// LFXO -// ULFRCO -// HCLKDIV1024 -// Selection of the Clock source for WDOG0CLK -// SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_WDOG0CLK_SOURCE -#define SL_CLOCK_MANAGER_WDOG0CLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#endif - -// Clock Source Selection for WDOG1CLK branch -// DEFAULT_LF -// LFRCO -// LFXO -// ULFRCO -// HCLKDIV1024 -// Selection of the Clock source for WDOG1CLK -// SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#ifndef SL_CLOCK_MANAGER_WDOG1CLK_SOURCE -#define SL_CLOCK_MANAGER_WDOG1CLK_SOURCE SL_CLOCK_MANAGER_DEFAULT_LF_CLOCK_SOURCE -#endif - -// Clock Source Selection for PCNT0CLK branch -// DISABLED -// EM23GRPACLK -// PCNTS0 -// Selection of the Clock source for PCNT0CLK -// CMU_PCNT0CLKCTRL_CLKSEL_EM23GRPACLK -#ifndef SL_CLOCK_MANAGER_PCNT0CLK_SOURCE -#define SL_CLOCK_MANAGER_PCNT0CLK_SOURCE CMU_PCNT0CLKCTRL_CLKSEL_EM23GRPACLK -#endif - -// - -// Mixed Frequency Clock Branch Settings -// Clock Source Selection for EUSART0CLK branch -// DISABLED -// EM01GRPCCLK -// HFRCOEM23 -// LFRCO -// LFXO -// Selection of the Clock source for EUSART0CLK -// CMU_EUSART0CLKCTRL_CLKSEL_EM01GRPCCLK -#ifndef SL_CLOCK_MANAGER_EUSART0CLK_SOURCE -#define SL_CLOCK_MANAGER_EUSART0CLK_SOURCE CMU_EUSART0CLKCTRL_CLKSEL_EM01GRPCCLK -#endif - -// Clock Source Selection for SYSTICKCLK branch -// <0=> HCLK -// <1=> EM23GRPACLK -// Selection of the Clock source for SYSTICKCLK -// 0 -#ifndef SL_CLOCK_MANAGER_SYSTICKCLK_SOURCE -#define SL_CLOCK_MANAGER_SYSTICKCLK_SOURCE 0 -#endif - -// Clock Source Selection for VDAC0CLK branch -// DISABLED -// EM01GRPACLK -// EM23GRPACLK -// FSRCO -// HFRCOEM23 -// Selection of the Clock source for VDAC0CLK -// CMU_VDAC0CLKCTRL_CLKSEL_EM01GRPACLK -#ifndef SL_CLOCK_MANAGER_VDAC0CLK_SOURCE -#define SL_CLOCK_MANAGER_VDAC0CLK_SOURCE CMU_VDAC0CLKCTRL_CLKSEL_EM01GRPACLK -#endif - -// Clock Source Selection for VDAC1CLK branch -// DISABLED -// EM01GRPACLK -// EM23GRPACLK -// FSRCO -// HFRCOEM23 -// Selection of the Clock source for VDAC1CLK -// CMU_VDAC1CLKCTRL_CLKSEL_EM01GRPACLK -#ifndef SL_CLOCK_MANAGER_VDAC1CLK_SOURCE -#define SL_CLOCK_MANAGER_VDAC1CLK_SOURCE CMU_VDAC1CLKCTRL_CLKSEL_EM01GRPACLK -#endif - -// -// - -#endif /* SL_CLOCK_MANAGER_TREE_CONFIG_H */ - -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_core_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_core_config.h deleted file mode 100644 index 27b173d2e..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_core_config.h +++ /dev/null @@ -1,44 +0,0 @@ -/***************************************************************************//** - * @file - * @brief sl_core Configuration - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_CORE_CONFIG_H -#define SL_CORE_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Core Abstraction Configuration - -// Enables measurement of interrupt masking time for debugging purposes. -// Default: 0 -#define SL_CORE_DEBUG_INTERRUPTS_MASKED_TIMING 0 -// - -// <<< end of configuration section >>> -#endif // SL_CORE_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_device_init_dcdc_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_device_init_dcdc_config.h deleted file mode 100644 index 4fb88397d..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_device_init_dcdc_config.h +++ /dev/null @@ -1,58 +0,0 @@ -/***************************************************************************//** - * @file - * @brief DEVICE_INIT_DCDC Config - ******************************************************************************* - * # License - * Copyright 2022 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_DEVICE_INIT_DCDC_CONFIG_H -#define SL_DEVICE_INIT_DCDC_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Enable DC/DC Converter -// -// Default: 1 -#define SL_DEVICE_INIT_DCDC_ENABLE 1 - -// Set DC/DC Converter in Bypass Mode -// -// Default: 0 -#define SL_DEVICE_INIT_DCDC_BYPASS 0 - -// Override for DCDC PFMX Mode Peak Current Setting -// -// Default: 1 -#define SL_DEVICE_INIT_DCDC_PFMX_IPKVAL_OVERRIDE 1 - -// DCDC PFMX Mode Peak Current Setting <0-15> -// -// Default: DCDC_PFMXCTRL_IPKVAL_DEFAULT -#define SL_DEVICE_INIT_DCDC_PFMX_IPKVAL 12 - -// <<< end of configuration section >>> - -#endif // SL_DEVICE_INIT_DCDC_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_gp_interface_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_gp_interface_config.h deleted file mode 100644 index fd5aa20ea..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_gp_interface_config.h +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * @file - * @brief OpenThread Green Power configuration file. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- - -// Rx Offset time -// The rx offset time for the bidirectional message. -// -#define GP_RX_OFFSET_IN_MICRO_SECONDS 21000 -// - -// TX Timeout -// Tx timeout after which the gp outgoing packet is invalid. -// -#define GP_TX_MAX_TIMEOUT_IN_MICRO_SECONDS 5000000 -// -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_hfxo_manager_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_hfxo_manager_config.h deleted file mode 100644 index d9ccd3c70..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_hfxo_manager_config.h +++ /dev/null @@ -1,56 +0,0 @@ -/***************************************************************************//** - * @file - * @brief HFXO Manager configuration file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -// <<< Use Configuration Wizard in Context Menu >>> - -#ifndef SL_HFXO_MANAGER_CONFIG_H -#define SL_HFXO_MANAGER_CONFIG_H - -// HFXO Manager Configuration - -// Enable custom IRQ handler for crystal HF oscillator. -// Enable if HFXO0_IRQHandler is needed from your application. -// The HFXO IRQ priority must not be changed as the HFXO Manager module needs it to be high priority -// and to stay enabled through atomic sections. -// The function sl_hfxo_manager_irq_handler() will have to be called from you custom handler if this is enabled. -// Default: 0 -#define SL_HFXO_MANAGER_CUSTOM_HFXO_IRQ_HANDLER 0 - -// Enable support for Sleepy Crystals. -// If Enabled and if HFXO fails to startup due to a sleepy crystal, HFXO Manager will retry the startup with more aggressive settings -// before falling back to the configured settings. -// Default: 0 -#define SL_HFXO_MANAGER_SLEEPY_CRYSTAL_SUPPORT 0 - -// - -#endif /* SL_HFXO_MANAGER_CONFIG_H */ - -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_i2cspm_sensor_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_i2cspm_sensor_config.h deleted file mode 100644 index 9804ead6f..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_i2cspm_sensor_config.h +++ /dev/null @@ -1,82 +0,0 @@ -/***************************************************************************//** - * @file - * @brief I2CSPM Config - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_I2CSPM_SENSOR_CONFIG_H -#define SL_I2CSPM_SENSOR_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu - -// I2CSPM settings - -// Reference clock frequency -// Frequency in Hz of the reference clock. -// Select 0 to use the frequency of the currently selected clock. -// Default: 0 -#define SL_I2CSPM_SENSOR_REFERENCE_CLOCK 0 - -// Speed mode -// <0=> Standard mode (100kbit/s) -// <1=> Fast mode (400kbit/s) -// <2=> Fast mode plus (1Mbit/s) -// Default: 0 -#define SL_I2CSPM_SENSOR_SPEED_MODE 0 -// end I2CSPM config - -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> -// SL_I2CSPM_SENSOR -// $[I2C_SL_I2CSPM_SENSOR] -#ifndef SL_I2CSPM_SENSOR_PERIPHERAL -#define SL_I2CSPM_SENSOR_PERIPHERAL I2C1 -#endif -#ifndef SL_I2CSPM_SENSOR_PERIPHERAL_NO -#define SL_I2CSPM_SENSOR_PERIPHERAL_NO 1 -#endif - -// I2C1 SCL on PC05 -#ifndef SL_I2CSPM_SENSOR_SCL_PORT -#define SL_I2CSPM_SENSOR_SCL_PORT SL_GPIO_PORT_C -#endif -#ifndef SL_I2CSPM_SENSOR_SCL_PIN -#define SL_I2CSPM_SENSOR_SCL_PIN 5 -#endif - -// I2C1 SDA on PC07 -#ifndef SL_I2CSPM_SENSOR_SDA_PORT -#define SL_I2CSPM_SENSOR_SDA_PORT SL_GPIO_PORT_C -#endif -#ifndef SL_I2CSPM_SENSOR_SDA_PIN -#define SL_I2CSPM_SENSOR_SDA_PIN 7 -#endif -// [I2C_SL_I2CSPM_SENSOR]$ -// <<< sl:end pin_tool >>> - -#endif // SL_I2CSPM_SENSOR_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_main_start_task_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_main_start_task_config.h deleted file mode 100644 index 7752c098f..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_main_start_task_config.h +++ /dev/null @@ -1,105 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Sleep Timer configuration file. - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_MAIN_START_TASK_CONFIG_H -#define SL_MAIN_START_TASK_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// sl_main start task settings - -// Size of the start task stack -// Default: 4096 -#define SL_MAIN_START_TASK_STACK_SIZE_BYTES 4096 - -// Enable start task priority change after initialization -// This is useful for applications that keep the start task during the lifetime of the application. -// Note that the priority change occurs at the end of 'sl_main_second_stage_init()' before 'app_init()' is called. -// Default: Disabled -#define SL_MAIN_ENABLE_START_TASK_PRIORITY_CHANGE 0 - -// Priority that the start task will take after initialization is done. -// Priority: low -// Priority: low + 1 -// Priority: low + 2 -// Priority: low + 3 -// Priority: low + 4 -// Priority: low + 5 -// Priority: low + 6 -// Priority: low + 7 -// Priority: below normal -// Priority: below normal + 1 -// Priority: below normal + 2 -// Priority: below normal + 3 -// Priority: below normal + 4 -// Priority: below normal + 5 -// Priority: below normal + 6 -// Priority: below normal + 7 -// Priority: normal -// Priority: normal + 1 -// Priority: normal + 2 -// Priority: normal + 3 -// Priority: normal + 4 -// Priority: normal + 5 -// Priority: normal + 6 -// Priority: normal + 7 -// Priority: above normal -// Priority: above normal + 1 -// Priority: above normal + 2 -// Priority: above normal + 3 -// Priority: above normal + 4 -// Priority: above normal + 5 -// Priority: above normal + 6 -// Priority: above normal + 7 -// Priority: high -// Priority: high + 1 -// Priority: high + 2 -// Priority: high + 3 -// Priority: high + 4 -// Priority: high + 5 -// Priority: high + 6 -// Priority: high + 7 -// Priority: realtime -// Priority: realtime + 1 -// Priority: realtime + 2 -// Priority: realtime + 3 -// Priority: realtime + 4 -// Priority: realtime + 5 -// Priority: realtime + 6 -// Priority: realtime + 7 -// Default: osPriorityNormal -#define SL_MAIN_START_TASK_PRIORITY osPriorityNormal - -// -// - -#endif /* SL_MAIN_START_TASK_CONFIG_H */ - -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_mbedtls_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_mbedtls_config.h deleted file mode 100644 index 7146ba648..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_mbedtls_config.h +++ /dev/null @@ -1,132 +0,0 @@ -#ifndef SL_MBEDTLS_CONFIG_H -#define SL_MBEDTLS_CONFIG_H - -// ----------------------------------------------------------------------------- -// User exposed config options - -// <<< Use Configuration Wizard in Context Menu >>> - -// TLS/DTLS configuration - -// Complete list of ciphersuites to use, in order of preference. -// Default: MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8 -// Complete list of ciphersuites to use, in order of preference. -// The value of this configuration should be updated for the application needs. -#define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8 - -// Maximum TLS/DTLS fragment length in bytes (input). -// Default: 768 -// The size configured here determines the size of the internal I/O -// buffer used in mbedTLS when receiving data. -#define SL_MBEDTLS_SSL_IN_CONTENT_LEN 768 - -// Maximum TLS/DTLS fragment length in bytes (output). -// Default: 768 -// The size configured here determines the size of the internal I/O -// buffer used in mbedTLS when sending data. -#define SL_MBEDTLS_SSL_OUT_CONTENT_LEN 768 - -// Enable support for RFC 6066 max_fragment_length extension in SSL. -// Default: 1 -// Enable support for RFC 6066 max_fragment_length extension in SSL. -#define SL_MBEDTLS_SSL_MAX_FRAGMENT_LENGTH 1 - -// Enable support for exporting key block and master secret. -// Default: 1 -// Enable support for exporting key block and master secret. -// This is required for certain users of TLS, e.g. EAP-TLS. -#define SL_MBEDTLS_SSL_EXPORT_KEYS 1 - -// Enable the PSK based ciphersuite modes in SSL / TLS. -// Default: 0 -// Enable the PSK based ciphersuite modes in SSL / TLS. -#define SL_MBEDTLS_KEY_EXCHANGE_PSK_ENABLED 1 - -// Enable the ECDHE-PSK based ciphersuite modes in SSL / TLS. -// Default: 0 -// Enable the ECDHE-PSK based ciphersuite modes in SSL / TLS. -#define SL_MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED 0 - -// Enable the ECDHE-ECDSA based ciphersuite modes in SSL / TLS. -// Default: 0 -// Enable the ECDHE-ECDSA based ciphersuite modes in SSL / TLS. -#define SL_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED 0 - -// Enable the ECDHE-RSA based ciphersuite modes in SSL / TLS. -// Default: 0 -// Enable the ECDHE-RSA based ciphersuite modes in SSL / TLS. -#define SL_MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED 0 - -// Enable the ECDH-ECDSA based ciphersuite modes in SSL / TLS. -// Default: 0 -// Enable the ECDH-ECDSA based ciphersuite modes in SSL / TLS. -#define SL_MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED 0 - -// Enable parsing of the compressed curves. -// Default: 0 -// Enable parsing of the compressed curves. -#define SL_MBEDTLS_ECP_ENABLE_COMPRESSED_CURVE_PARSING 0 - -// Assume all buffers passed to PSA functions are owned exclusively by the PSA function. -// Default: 1 -// This option is enabled assuming all buffers passed to any PSA function reside -// in memory that is accessible only to the PSA function during its execution. -// This improves performance by avoiding extra buffer copies, reducing memory -// usage and allocation overhead. However, it is NOT the most secure option and -// should only be enabled if all buffers passed to PSA functions are exclusively -// accessible to PSA and never shared with untrusted code. -// This option MUST be disabled whenever buffer arguments are in memory shared -// with an untrusted party, for example where arguments to PSA calls are passed -// across a trust boundary, e.g. if TrustZone is enabled, and the PSA Crypto core -// is placed in the Secure domain. -#define SL_MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS 1 - -// - -// RSA configuration - -// Disable use of the Chinese Remainder Theorem for RSA. -// Default: 0 -// Disable use of the Chinese Remainder Theorem for RSA private key -// computations. -#define SL_MBEDTLS_RSA_NO_CRT 0 - -// - -// Miscellaneous configuration - -// Enable Silicon Labs' Mbed TLS- and PSA Crypto drivers. -// Default: 1 -// Enable drivers for hardware acceleration (Mbed TLS and PSA Crypto) and -// secure key handling (PSA Crypto). -#define SL_MBEDTLS_DRIVERS_ENABLED 1 - -// - -// <<< end of configuration section >>> - -// ----------------------------------------------------------------------------- -// Sub-files - -#if defined(SLI_MBEDTLS_CONFIG_AUTOGEN_OVERRIDE_FILE) - #include SLI_MBEDTLS_CONFIG_AUTOGEN_OVERRIDE_FILE -#else - #include "sli_mbedtls_config_autogen.h" -#endif - -#include "sli_mbedtls_omnipresent.h" - -#if SL_MBEDTLS_DRIVERS_ENABLED - #include "sli_mbedtls_acceleration.h" -#endif - -#include "sl_mbedtls_device_config.h" - -// Include transformation logic to apply CMSIS-config configuration options to -// the correct Mbed TLS / PSA Crypto options. -#include "sli_mbedtls_config_transform_autogen.h" - -// Included for backward compatibility reasons. -#include "mbedtls/build_info.h" - -#endif // SL_MBEDTLS_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_mbedtls_device_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_mbedtls_device_config.h deleted file mode 100644 index 33c34c42e..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_mbedtls_device_config.h +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef SL_MBEDTLS_DEVICE_CONFIG_H -#define SL_MBEDTLS_DEVICE_CONFIG_H - -// ----------------------------------------------------------------------------- -// User exposed config options - -// <<< Use Configuration Wizard in Context Menu >>> - -// Secure Engine (SE) version configuration - -// Support SE firmware versions older than 1.2.2 <0-1> -// Enable software fallback for ECDH and ECC public key validation on xG21 -// devices running SE firmware versions lower than 1.2.2. -// -// Due to other stability concerns, it is strongly recommended to upgrade -// these devices to the latest firmware revision instead of turning on -// software fallback support. -// -// Not having fallback support will make ECDH operations, as well as PSA -// Crypto public key import, return an error code on affected devices. -// -// Default: 0 -#define SL_SE_SUPPORT_FW_PRIOR_TO_1_2_2 0 - -// Assume an SE firmware version newer than 1.2.2 <0-1> -// For enhanced performance: if it is guaranteed that all devices on which -// this library will run are updated to at least SE FW 1.2.2, then turning -// on this option will remove certain fallback checks, thereby reducing the -// amount of processing required for ECDH and public key verification -// operations. -// Default: 0 -#define SL_SE_ASSUME_FW_AT_LEAST_1_2_2 0 - -// Assume an SE firmware version that is unaffected by Ed25519 errata <0-1> -// For minimal code size and performance savings: if it is guaranteed that -// none of the devices running this library has SE FWs in the range -// [1.2.2, 1.2.8], then enabling this option will disable runtime version -// checks. -// Default: 0 -#define SL_SE_ASSUME_FW_UNAFFECTED_BY_ED25519_ERRATA 0 - -// - -// <<< end of configuration section >>> - -// ----------------------------------------------------------------------------- -// Additional SE version related logic (DO NOT MODIFY) - -// SL_SE_ASSUME_FW_AT_LEAST_1_2_10 is no longer in use, however, it is kept here -// for backwards compatibility. */ -#if defined(SL_SE_ASSUME_FW_AT_LEAST_1_2_10) - #undef SL_SE_ASSUME_FW_AT_LEAST_1_2_2 - #define SL_SE_ASSUME_FW_AT_LEAST_1_2_2 1 - #undef SL_SE_ASSUME_FW_UNAFFECTED_BY_ED25519_ERRATA - #define SL_SE_ASSUME_FW_UNAFFECTED_BY_ED25519_ERRATA 1 -#endif - -// SLI_SE_SUPPORT_FW_PRIOR_TO_1_2_2 is no longer in use, however, it is kept -// here for backwards compatibility. */ -#if defined(SLI_SE_SUPPORT_FW_PRIOR_TO_1_2_2) - #undef SL_SE_SUPPORT_FW_PRIOR_TO_1_2_2 - #define SL_SE_SUPPORT_FW_PRIOR_TO_1_2_2 1 -#endif - -// SLI_SE_ASSUME_FW_AT_LEAST_1_2_2 is no longer in use, however, it is kept -// here for backwards compatibility. */ -#if defined(SLI_SE_ASSUME_FW_AT_LEAST_1_2_2) - #undef SL_SE_ASSUME_FW_AT_LEAST_1_2_2 - #define SL_SE_ASSUME_FW_AT_LEAST_1_2_2 1 -#endif - -#endif // SL_MBEDTLS_DEVICE_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_memlcd_usart_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_memlcd_usart_config.h deleted file mode 100644 index 81f6b8bfc..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_memlcd_usart_config.h +++ /dev/null @@ -1,66 +0,0 @@ -/***************************************************************************//** - * @file - * @brief SPI abstraction used by memory lcd display - ******************************************************************************* - * # License - * Copyright 2022 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_MEMLCD_CONFIG_H -#define SL_MEMLCD_CONFIG_H - -// <<< sl:start pin_tool >>> -// SL_MEMLCD_SPI -// $[USART_SL_MEMLCD_SPI] -#define SL_MEMLCD_SPI_PERIPHERAL USART0 -#define SL_MEMLCD_SPI_PERIPHERAL_NO 0 - -// USART0 TX on PC01 -#define SL_MEMLCD_SPI_TX_PORT SL_GPIO_PORT_C -#define SL_MEMLCD_SPI_TX_PIN 1 - -// USART0 CLK on PC03 -#define SL_MEMLCD_SPI_CLK_PORT SL_GPIO_PORT_C -#define SL_MEMLCD_SPI_CLK_PIN 3 - -// [USART_SL_MEMLCD_SPI]$ - -// SL_MEMLCD_SPI_CS -// $[GPIO_SL_MEMLCD_SPI_CS] -#define SL_MEMLCD_SPI_CS_PORT SL_GPIO_PORT_C -#define SL_MEMLCD_SPI_CS_PIN 8 - -// [GPIO_SL_MEMLCD_SPI_CS]$ - -// SL_MEMLCD_EXTCOMIN -// $[GPIO_SL_MEMLCD_EXTCOMIN] -#define SL_MEMLCD_EXTCOMIN_PORT SL_GPIO_PORT_C -#define SL_MEMLCD_EXTCOMIN_PIN 6 - -// [GPIO_SL_MEMLCD_EXTCOMIN]$ - -// <<< sl:end pin_tool >>> - -#endif diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_memory_manager_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_memory_manager_config.h deleted file mode 100644 index 4a16c29fe..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_memory_manager_config.h +++ /dev/null @@ -1,61 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Memory Heap Allocator configuration file. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -// <<< Use Configuration Wizard in Context Menu >>> - -#ifndef SL_MEMORY_MANAGER_CONFIG_H -#define SL_MEMORY_MANAGER_CONFIG_H - -// Memory Manager Configuration - -// Minimum block allocation size -// <32-128:8> -// Minimum block allocation size to avoid creating a block too small while splitting up an allocated block. -// Size expressed in bytes and can only be a multiple of 8 bytes for the proper data alignment management done by the dynamic allocator malloc() function. -// Default: 32 -#define SL_MEMORY_MANAGER_BLOCK_ALLOCATION_MIN_SIZE (32) - -// Enables the statistics API. -// Setting this configuration to 0 will make all the statistics API return 0. -// Default: 1 -#define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 - -// - -// <<< end of configuration section >>> - -// Keep this configuration outside the configuration section until the feature is ready for release. -// Enables the heap fallback mechanism. -// Setting this configuration to 0 will disable the fallback mechanism on DTCM and PSRAM. -// If this configuration is disabled, the memory manager will not attempt to use alternative memory regions for allocations even if using the fallback parameters. -// Default: 1 -#define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 - -#endif /* SL_MEMORY_MANAGER_CONFIG_H */ diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_memory_manager_region_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_memory_manager_region_config.h deleted file mode 100644 index bd640b59b..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_memory_manager_region_config.h +++ /dev/null @@ -1,51 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Memory Heap and stack size configuration file. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -// <<< Use Configuration Wizard in Context Menu >>> - -#ifndef SL_MEMORY_MANAGER_REGION_CONFIG_H -#define SL_MEMORY_MANAGER_REGION_CONFIG_H - -#include "sl_component_catalog.h" - -// Memory configuration - -// Stack size for the application. -// Default: 1024 -// The stack size configured here will be used by the stack that the -// application uses when coming out of a reset. -#ifndef SL_STACK_SIZE -#define SL_STACK_SIZE 4608 -#endif -// - -// <<< end of configuration section >>> - -#endif /* SL_MEMORY_MANAGER_REGION_CONFIG_H */ diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_mx25_flash_shutdown_usart_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_mx25_flash_shutdown_usart_config.h deleted file mode 100644 index 34b849d39..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_mx25_flash_shutdown_usart_config.h +++ /dev/null @@ -1,64 +0,0 @@ -/***************************************************************************//** - * @file - * @brief SL_MX25_FLASH_SHUTDOWN_USART Config - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_MX25_FLASH_SHUTDOWN_CONFIG_H -#define SL_MX25_FLASH_SHUTDOWN_CONFIG_H - -// <<< sl:start pin_tool >>> -// {usart signal=TX,RX,CLK} SL_MX25_FLASH_SHUTDOWN -// [USART_SL_MX25_FLASH_SHUTDOWN] -#define SL_MX25_FLASH_SHUTDOWN_PERIPHERAL USART0 -#define SL_MX25_FLASH_SHUTDOWN_PERIPHERAL_NO 0 - -// USART0 TX on PC01 -#define SL_MX25_FLASH_SHUTDOWN_TX_PORT SL_GPIO_PORT_C -#define SL_MX25_FLASH_SHUTDOWN_TX_PIN 1 - -// USART0 RX on PC02 -#define SL_MX25_FLASH_SHUTDOWN_RX_PORT SL_GPIO_PORT_C -#define SL_MX25_FLASH_SHUTDOWN_RX_PIN 2 - -// USART0 CLK on PC03 -#define SL_MX25_FLASH_SHUTDOWN_CLK_PORT SL_GPIO_PORT_C -#define SL_MX25_FLASH_SHUTDOWN_CLK_PIN 3 - -// [USART_SL_MX25_FLASH_SHUTDOWN] - -// SL_MX25_FLASH_SHUTDOWN_CS - -// $[GPIO_SL_MX25_FLASH_SHUTDOWN_CS] -#define SL_MX25_FLASH_SHUTDOWN_CS_PORT SL_GPIO_PORT_C -#define SL_MX25_FLASH_SHUTDOWN_CS_PIN 4 - -// [GPIO_SL_MX25_FLASH_SHUTDOWN_CS]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_MX25_FLASH_SHUTDOWN_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_openthread_features_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_openthread_features_config.h deleted file mode 100644 index a3697f8af..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_openthread_features_config.h +++ /dev/null @@ -1,473 +0,0 @@ -/******************************************************************************* - * @file - * @brief OpenThread stack configuration file. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_OPENTHREAD_FEATURES_CONFIG_H -#define _SL_OPENTHREAD_FEATURES_CONFIG_H -//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- -// -// Default OpenThread Stack Configuration - -// Thread Stack Protocol Version -// -// Thread 1.1 -// Thread 1.2 -// Thread 1.3 -// Thread 1.4 -// Current Default: OT_THREAD_VERSION_1_4 -#ifndef OPENTHREAD_CONFIG_THREAD_VERSION -#define OPENTHREAD_CONFIG_THREAD_VERSION OT_THREAD_VERSION_1_4 -#endif -// - -#if (OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2) -// The following features require at least Thread Stack Protocol Version 1.2 -// Backbone Router -#ifndef OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE -#define OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE 0 -#endif -// CSL Auto Synchronization using data polling -#ifndef OPENTHREAD_CONFIG_MAC_CSL_AUTO_SYNC_ENABLE -#define OPENTHREAD_CONFIG_MAC_CSL_AUTO_SYNC_ENABLE 1 -#endif -// CSL (Coordinated Sampled Listening) Debug -#ifndef OPENTHREAD_CONFIG_MAC_CSL_DEBUG_ENABLE -#define OPENTHREAD_CONFIG_MAC_CSL_DEBUG_ENABLE 0 -#endif -// CSL (Coordinated Sampled Listening) Receiver -#ifndef OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE -#define OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE 1 -#endif -// CSL Scheduling Uncertainty (±10 us units) <12..999:1> -// Left unchanged the value will be set to 175 for RCPs, 20 for FTDs, and 12 for MTDs -#ifndef SL_OPENTHREAD_CSL_TX_UNCERTAINTY -#if OPENTHREAD_RADIO - #define SL_OPENTHREAD_CSL_TX_UNCERTAINTY 175 -#elif OPENTHREAD_FTD - #define SL_OPENTHREAD_CSL_TX_UNCERTAINTY 20 -#else - #define SL_OPENTHREAD_CSL_TX_UNCERTAINTY 12 -#endif -#endif -// DUA (Domain Unicast Address) -#ifndef OPENTHREAD_CONFIG_DUA_ENABLE -#define OPENTHREAD_CONFIG_DUA_ENABLE 1 -#endif -// Link Metrics Initiator -#ifndef OPENTHREAD_CONFIG_MLE_LINK_METRICS_INITIATOR_ENABLE -#define OPENTHREAD_CONFIG_MLE_LINK_METRICS_INITIATOR_ENABLE 1 -#endif -// Link Metrics Subject -#ifndef OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE -#define OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE 1 -#endif -// Multicast Listener Registration -#ifndef OPENTHREAD_CONFIG_MLR_ENABLE -#define OPENTHREAD_CONFIG_MLR_ENABLE 1 -#endif -// -#endif // OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2 - -#if (OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_3) -// The following features require at least Thread Stack Protocol Version 1.3 -// DNS Client -#ifndef OPENTHREAD_CONFIG_DNS_CLIENT_ENABLE -#define OPENTHREAD_CONFIG_DNS_CLIENT_ENABLE 1 -#endif -// DNS-SD Server -#ifndef OPENTHREAD_CONFIG_DNSSD_SERVER_ENABLE -#define OPENTHREAD_CONFIG_DNSSD_SERVER_ENABLE 0 -#endif -// Service Registration Protocol (SRP) Client -#ifndef OPENTHREAD_CONFIG_SRP_CLIENT_ENABLE -#define OPENTHREAD_CONFIG_SRP_CLIENT_ENABLE 1 -#endif -// Service Registration Protocol (SRP) Server -#ifndef OPENTHREAD_CONFIG_SRP_SERVER_ENABLE -#define OPENTHREAD_CONFIG_SRP_SERVER_ENABLE 0 -#endif -// TCP API -#ifndef OPENTHREAD_CONFIG_TCP_ENABLE -#define OPENTHREAD_CONFIG_TCP_ENABLE 0 -#endif -// DNS Client over TCP -#ifndef OPENTHREAD_CONFIG_DNS_CLIENT_OVER_TCP_ENABLE -#define OPENTHREAD_CONFIG_DNS_CLIENT_OVER_TCP_ENABLE 0 -#endif -// -#endif // OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_3 - -// Border Agent -#ifndef OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE -#define OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE 0 -#endif -// -// Border Router -#ifndef OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE -#define OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE 0 -#endif -// -// Channel Manager -#ifndef OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE -#define OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE 0 -#endif -// -// Channel Monitor -#ifndef OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE -#define OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE 0 -#endif -// -// Commissioner -#ifndef OPENTHREAD_CONFIG_COMMISSIONER_ENABLE -#define OPENTHREAD_CONFIG_COMMISSIONER_ENABLE 0 -#endif -// Max Joiner Entries -// The maximum number of Joiner entries maintained by the Commissioner. -// 2 -#ifndef OPENTHREAD_CONFIG_COMMISSIONER_MAX_JOINER_ENTRIES -#define OPENTHREAD_CONFIG_COMMISSIONER_MAX_JOINER_ENTRIES 2 -#endif -// -// COAP API -#ifndef OPENTHREAD_CONFIG_COAP_API_ENABLE -#define OPENTHREAD_CONFIG_COAP_API_ENABLE 0 -#endif -// -// COAP Observe (RFC7641) API -#ifndef OPENTHREAD_CONFIG_COAP_OBSERVE_API_ENABLE -#define OPENTHREAD_CONFIG_COAP_OBSERVE_API_ENABLE 0 -#endif -// -// COAP Secure API -#ifndef OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE -#define OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE 0 -#endif -// -// COAP Blockwise Transfer -#ifndef OPENTHREAD_CONFIG_COAP_BLOCKWISE_TRANSFER_ENABLE -#define OPENTHREAD_CONFIG_COAP_BLOCKWISE_TRANSFER_ENABLE 0 -#endif -// -// DHCP6 Client -#ifndef OPENTHREAD_CONFIG_DHCP6_CLIENT_ENABLE -#define OPENTHREAD_CONFIG_DHCP6_CLIENT_ENABLE 0 -#endif -// -// DHCP6 Server -#ifndef OPENTHREAD_CONFIG_DHCP6_SERVER_ENABLE -#define OPENTHREAD_CONFIG_DHCP6_SERVER_ENABLE 0 -#endif -// -// ECDSA (Elliptic Curve Digital Signature Algorithm) (Required for Matter support) -#ifndef OPENTHREAD_CONFIG_ECDSA_ENABLE -#define OPENTHREAD_CONFIG_ECDSA_ENABLE 1 -#endif -// -// External Heap -#ifndef OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE -#define OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE 1 -#endif -// -// IPv6 Fragmentation -#ifndef OPENTHREAD_CONFIG_IP6_FRAGMENTATION_ENABLE -#define OPENTHREAD_CONFIG_IP6_FRAGMENTATION_ENABLE 0 -#endif -// -// IPv6 Limits -// Maximum IPv6 external unicast addresses -// Maximum number of IPv6 unicast addresses allowed to be externally added -// 4 -#ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS -#define OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS 4 -#endif -// Maximum IPv6 external multicast addresses -// Maximum number of IPv6 multicast addresses allowed to be externally added -// 4 -#ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS -#define OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS 4 -#endif -// Maximum IPv6 address registrations for MTD -// The maximum number of IPv6 address registrations for MTD. -// If left unchanged will default to the value of OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD -// 4 -#ifndef OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER -#define OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER (OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD) -#endif -// -// Jam Detection -#ifndef OPENTHREAD_CONFIG_JAM_DETECTION_ENABLE -#define OPENTHREAD_CONFIG_JAM_DETECTION_ENABLE 0 -#endif -// -// Joiner -#ifndef OPENTHREAD_CONFIG_JOINER_ENABLE -#define OPENTHREAD_CONFIG_JOINER_ENABLE 0 -#endif -// -// Link Raw Service -#ifndef OPENTHREAD_CONFIG_LINK_RAW_ENABLE -#define OPENTHREAD_CONFIG_LINK_RAW_ENABLE 0 -#endif -// -// MAC Filter -#ifndef OPENTHREAD_CONFIG_MAC_FILTER_ENABLE -#define OPENTHREAD_CONFIG_MAC_FILTER_ENABLE 0 -#endif -// -// MLE Children -// Maximum number of Thread children supported by the device -// Default is 10. Used by the Thread stack to configure the size of child table. -// 10 -#ifndef OPENTHREAD_CONFIG_MLE_MAX_CHILDREN -#define OPENTHREAD_CONFIG_MLE_MAX_CHILDREN 10 -#endif -// -// MLE Long Routes extension (experimental) -#ifndef OPENTHREAD_CONFIG_MLE_LONG_ROUTES_ENABLE -#define OPENTHREAD_CONFIG_MLE_LONG_ROUTES_ENABLE 0 -#endif -// -// MultiPAN RCP -#ifndef OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE -#define OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE 0 -#endif -// Broadcast IID for spinel frames -// Define broadcast IID for spinel frames dedicated to all hosts in multipan configuration -// 0 -#ifndef OPENTHREAD_SPINEL_CONFIG_BROADCAST_IID -#define OPENTHREAD_SPINEL_CONFIG_BROADCAST_IID 0 -#endif -#if OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE -// Maximum number of Zigbee children for multiprotocol (DMP) builds -// Ensures correct table sizing for Zigbee when DMP/multipan is enabled. -// 6 -#ifndef SL_ZIGBEE_MAX_END_DEVICE_CHILDREN -#define SL_ZIGBEE_MAX_END_DEVICE_CHILDREN 6 -#endif -#endif -// -// Multiple OpenThread Instances -#ifndef OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE -#define OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE 0 -#endif -// Multiple Static Instance Support -#ifndef OPENTHREAD_CONFIG_MULTIPLE_STATIC_INSTANCE_ENABLE -#define OPENTHREAD_CONFIG_MULTIPLE_STATIC_INSTANCE_ENABLE 0 -#endif -// Number of OpenThread Instances -// Default is 2. Number of OpenThread Instances For Static Buffer Allocation. -// 2 -#ifndef OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM -#define OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM 2 -#endif -// -// -// Define maximum total source match table entries for both OT and Zigbee. -// In multi-instance builds (SoC or RCP/host), table must support all OT instances + Zigbee. -// For single instance (default), table sized to just OT children. -// This value is used to size all source match tables in both OT and Zigbee code. -// Note: this is purposedly not being setup with CMSIS annotations. -#ifndef RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE -#if SL_ZIGBEE_MAX_END_DEVICE_CHILDREN -// Multipan / DMP case: OT + Zigbee -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - ((OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * (OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM - 1)) \ - + SL_ZIGBEE_MAX_END_DEVICE_CHILDREN) -#else -// Multi-instance OT-only case -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - (OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM) -#endif -#else -// Single-instance OT (SoC / NCP / non-multipan RCP) -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES OPENTHREAD_CONFIG_MLE_MAX_CHILDREN -#endif -#endif -// Spinel Match Table -// Maximum number of spinel source match table entries -// Ensure that this value is the total of the number of openthread children times the number of openthread instances plus the number of Zigbee children. -#ifndef OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES -#define OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#endif -// -// OTNS (OpenThread Network Simulator) -#ifndef OPENTHREAD_CONFIG_OTNS_ENABLE -#define OPENTHREAD_CONFIG_OTNS_ENABLE 0 -#endif -// -// Ping Sender Module -#ifndef OPENTHREAD_CONFIG_PING_SENDER_ENABLE -#define OPENTHREAD_CONFIG_PING_SENDER_ENABLE 1 -#endif -// -// Power Calibration Module (RCP only configuration) -#ifndef OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE -#define OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE 0 -#endif -// Maximum raw power calibration length -// Max raw power calibration length -// 4 -#ifndef SL_OPENTHREAD_RAW_POWER_CALIBRATION_LENGTH -#define SL_OPENTHREAD_RAW_POWER_CALIBRATION_LENGTH 4 -#endif -// Maximum FEM config setting length -// Max FEM config setting length -// 4 -#ifndef SL_OPENTHREAD_FEM_SETTING_LENGTH -#define SL_OPENTHREAD_FEM_SETTING_LENGTH 4 -#endif -// -// Platform UDP -#ifndef OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE -#define OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE 0 -#endif -// -// Reference Device for Thread Test Harness -#ifndef OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE -#define OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE 0 -#endif -// -// Service Entries in Thread Network Data -#ifndef OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE -#define OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE 0 -#endif -// -// RAM (volatile-only storage) -#ifndef OPENTHREAD_SETTINGS_RAM -#define OPENTHREAD_SETTINGS_RAM 0 -#endif -// -// SLAAC Addresses -#ifndef OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE -#define OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE 1 -#endif -// -// SNTP Client -#ifndef OPENTHREAD_CONFIG_SNTP_CLIENT_ENABLE -#define OPENTHREAD_CONFIG_SNTP_CLIENT_ENABLE 0 -#endif -// -// TMF Network Diagnostic client API -#ifndef OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE -#define OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE 1 -#endif -// -// Time Synchronization Service -#ifndef OPENTHREAD_CONFIG_TIME_SYNC_ENABLE -#define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 0 -#endif -// -// Uptime of OpenThread instance -#ifndef OPENTHREAD_CONFIG_UPTIME_ENABLE -#define OPENTHREAD_CONFIG_UPTIME_ENABLE 1 -#endif -// -// UDP Forward -#ifndef OPENTHREAD_CONFIG_UDP_FORWARD_ENABLE -#define OPENTHREAD_CONFIG_UDP_FORWARD_ENABLE 0 -#endif -// -// Enable Mac beacon payload parsing support -#ifndef OPENTHREAD_CONFIG_MAC_BEACON_PAYLOAD_PARSING_ENABLE -#define OPENTHREAD_CONFIG_MAC_BEACON_PAYLOAD_PARSING_ENABLE 1 -#endif -// -// Radio Driver RX buffers -// Maximum number of RX buffers -// The maximum number of RX buffers to use in the radio driver. -// 16 -#ifndef SL_OPENTHREAD_RADIO_RX_BUFFER_COUNT -#define SL_OPENTHREAD_RADIO_RX_BUFFER_COUNT 16 -#endif -// -// -// Logging -// LOG_OUTPUT -// NONE -// APP -// PLATFORM_DEFINED -// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP -// OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT -#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#endif - -// DYNAMIC_LOG_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE -#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 -#endif - -// Enable Logging -#define OPENTHREAD_FULL_LOGS_ENABLE 0 -#if OPENTHREAD_FULL_LOGS_ENABLE - -// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. -// LOG_LEVEL -// NONE -// CRIT -// WARN -// NOTE -// INFO -// DEBG -// Default: OT_LOG_LEVEL_DEBG -// OT_LOG_LEVEL_DEBG -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL -#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG -#endif -// CLI -#ifndef OPENTHREAD_CONFIG_LOG_CLI -#define OPENTHREAD_CONFIG_LOG_CLI 1 -#endif -// PKT_DUMP -#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP -#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 -#endif -// PLATFORM -#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM -#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 -#endif -// PREPEND_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL -#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 -#endif - -#endif // OPENTHREAD_FULL_LOGS_ENABLE - -// Log crash dump after initialization -#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE -#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 -#endif - -// -// -// - -// <<< end of configuration section >>> -#endif // _SL_OPENTHREAD_FEATURES_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_openthread_radio_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_openthread_radio_config.h deleted file mode 100644 index 478a72430..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_openthread_radio_config.h +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * @file - * @brief OpenThread radio configuration file. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_OPENTHREAD_RADIO_CONFIG_H -#define _SL_OPENTHREAD_RADIO_CONFIG_H -//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- -// -// Default EFR32 Radio Configuration - -// Recieve Sensitivity [dBm] -#define SL_OPENTHREAD_RECEIVE_SENSITIVITY -100 // dBm -// RSSI Average Time [us] -#define SL_OPENTHREAD_RSSI_AVERAGING_TIME 16 // us -// RSSI Average Timeout [us] -#define SL_OPENTHREAD_RSSI_AVERAGING_TIMEOUT 300 // us -// -// <<< end of configuration section >>> -#endif // _SL_OPENTHREAD_RADIO_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_openthread_rtos_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_openthread_rtos_config.h deleted file mode 100644 index 6dc710fcc..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_openthread_rtos_config.h +++ /dev/null @@ -1,109 +0,0 @@ -/******************************************************************************* - * @file - * @brief OpenThread RTOS configuration file. - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread stack task priority -// Default: 24 (CMSIS-RTOS2 osPriorityNormal) -// Defines OpenThread stack task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_STACK_TASK_PRIORITY (24) - -// -// Priority Configuration for OpenThread App Task -// OpenThread task priority -// Default: 23 (CMSIS-RTOS2 osPriorityBelowNormal7) -// Defines OpenThread App task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_APP_TASK_PRIORITY (23) - -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread serial task prority -// Default: 16 (CMSIS-RTOS2 osPriorityBelowNormal) -// Defines OpenThread serial task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_SERIAL_TASK_PRIORITY (16) - -// OpenThread stack task stack size in bytes <1000-20000> -// Default: 4608 -// Defines the stack size of the OpenThread RTOS stack task. The value is in bytes and -// and will be word aligned when it is applied at the task creation. -#ifndef SL_OPENTHREAD_STACK_TASK_MEM_SIZE -#if defined(_SILICON_LABS_32B_SERIES_3) -#define SL_OPENTHREAD_STACK_TASK_MEM_SIZE (6144) -#else -#define SL_OPENTHREAD_STACK_TASK_MEM_SIZE (4608) -#endif -#endif - -// OpenThread app task stack size in bytes <1000-20000> -// Default: 4608 -// Defines the stack size of the OpenThread RTOS app task. The value is in bytes and -// and will be word aligned when it is applied at the task creation. -#define SL_OPENTHREAD_APP_TASK_MEM_SIZE (4608) - -// OpenThread serial task stack size in bytes <1000-20000> -// Default: 3072 -// Defines the stack size of the OpenThread RTOS serial task. The value is in bytes and -// and will be word aligned when it is applied at the task creation. -#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3072) - -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread serial task prority -// Default: 16 (CMSIS-RTOS2 osPriorityBelowNormal) -// Defines OpenThread serial task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_SERIAL_TASK_PRIORITY (16) - -// -// App Task -// Enable default App task -// Default: On (for non-RCP apps) -#if OPENTHREAD_RADIO -#define SL_OPENTHREAD_ENABLE_APP_TASK 0 -#else -#define SL_OPENTHREAD_ENABLE_APP_TASK 0 -#endif - -// -// Serial task -// Enable Serial task -// Default: On (for non-RCP apps) -#if OPENTHREAD_RADIO -#define SL_OPENTHREAD_ENABLE_SERIAL_TASK 0 -#else -#define SL_OPENTHREAD_ENABLE_SERIAL_TASK 0 -#endif - -// -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_power_manager_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_power_manager_config.h deleted file mode 100644 index 86b9fef27..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_power_manager_config.h +++ /dev/null @@ -1,100 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Power Manager configuration file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -// <<< Use Configuration Wizard in Context Menu >>> - -#ifndef SL_POWER_MANAGER_CONFIG_H -#define SL_POWER_MANAGER_CONFIG_H - -// Power Manager Configuration - -// Enable custom IRQ handler for external HF oscillator. -// Enable if CMU_IRQHandler/HFXO0_IRQHandler is needed from your application. -// The function sl_power_manager_irq_handler() will have to be called from your custom handler if this is enabled. -// Default: 0 -#ifndef SL_POWER_MANAGER_CUSTOM_HF_OSCILLATOR_IRQ_HANDLER -#define SL_POWER_MANAGER_CUSTOM_HF_OSCILLATOR_IRQ_HANDLER 0 -#endif - -// Enable fast wakeup (disable voltage scaling in EM2/3 mode) -// Enable or disable voltage scaling in EM2/3 modes (when available). This decreases wakeup time by about 30 us. -// Deprecated. It is replaced by the function sl_power_manager_em23_voltage_scaling_enable_fast_wakeup() -// Default: 0 -#ifndef SL_POWER_MANAGER_CONFIG_VOLTAGE_SCALING_FAST_WAKEUP -#define SL_POWER_MANAGER_CONFIG_VOLTAGE_SCALING_FAST_WAKEUP 0 -#endif - -// Enable voltage scaling in EM0 and EM1 mode. -// Enable or disable voltage scaling in EM0/1 modes. With this config enabled, the voltage -// scaling will be configured at the lowest possible level based on the system clock. -// Default: 0 -#ifndef SL_POWER_MANAGER_ENABLE_EM01_VOLTAGE_SCALING -#define SL_POWER_MANAGER_ENABLE_EM01_VOLTAGE_SCALING 0 -#endif - -// Enable debugging feature -// Enable or disable debugging features (trace the different modules that have requirements). -// Default: 0 -#ifndef SL_POWER_MANAGER_DEBUG -#define SL_POWER_MANAGER_DEBUG 0 -#endif - -// Maximum numbers of requirements that can be logged -// Default: 10 -#ifndef SL_POWER_MANAGER_DEBUG_POOL_SIZE -#define SL_POWER_MANAGER_DEBUG_POOL_SIZE 10 -#endif -// - -// Pin retention mode -// -// No retention -// Retention through EM4 -// Retention through EM4 and wakeup -// power_manager_pin_retention_disable -#ifndef SL_POWER_MANAGER_INIT_EMU_EM4_PIN_RETENTION_MODE -#define SL_POWER_MANAGER_INIT_EMU_EM4_PIN_RETENTION_MODE EMU_EM4CTRL_EM4IORETMODE_DISABLE -#endif - -// Enable EM2 debugging feature -// Enable or disable debugging features. -// Force PD0B/PD0D to stay on during EM2 entry. This allows the debugger to remain connected in EM2 and EM3. -// Enabling debug connectivity results in an increased power consumption in EM2/EM3. -// Default: 1 -#ifndef SL_POWER_MANAGER_INIT_EMU_EM2_DEBUG_ENABLE -#define SL_POWER_MANAGER_INIT_EMU_EM2_DEBUG_ENABLE 1 -#endif -// - -// - -#endif /* SL_POWER_MANAGER_CONFIG_H */ - -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_rail_util_pa_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_rail_util_pa_config.h deleted file mode 100644 index b72b54eb0..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_rail_util_pa_config.h +++ /dev/null @@ -1,83 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Power Amplifier configuration file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_RAIL_UTIL_PA_CONFIG_H -#define SL_RAIL_UTIL_PA_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// PA Configuration -// Initial PA Power (deci-dBm, 100 = 10.0 dBm) -// Default: 100 -#define SL_RAIL_UTIL_PA_POWER_DECI_DBM 100 - -// PA Ramp Time (microseconds) -// <0-65535:1> -// Default: 10 -#define SL_RAIL_UTIL_PA_RAMP_TIME_US 10 - -// Milli-volts on PA supply pin (PA_VDD) -// <0-65535:1> -// Default: 3300 -#define SL_RAIL_UTIL_PA_VOLTAGE_MV 1800 - -// 2.4 GHz PA Selection -// Highest Possible -// High Power (chip-specific) -// Low Power -// Disable -// Default: RAIL_TX_POWER_MODE_2P4GIG_HIGHEST -#define SL_RAIL_UTIL_PA_SELECTION_2P4GHZ RAIL_TX_POWER_MODE_2P4GIG_HIGHEST - -// Sub-GHz PA Selection -// Disable -// Default: RAIL_TX_POWER_MODE_NONE -#define SL_RAIL_UTIL_PA_SELECTION_SUBGHZ RAIL_TX_POWER_MODE_NONE -// - -// PA Curve Configuration -// Header file containing custom PA curves -// Default: "pa_curves_efr32.h" -#define SL_RAIL_UTIL_PA_CURVE_HEADER "pa_curves_efr32.h" - -// Header file containing PA curve types -// Default: "pa_curve_types_efr32.h" -#define SL_RAIL_UTIL_PA_CURVE_TYPES "pa_curve_types_efr32.h" -// - -// PA Calibration Configuration -// Enable PA Calibration -// Default: 1 -#define SL_RAIL_UTIL_PA_CALIBRATION_ENABLE 1 -// - -// <<< end of configuration section >>> - -#endif // SL_RAIL_UTIL_PA_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_rail_util_pa_tables_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_rail_util_pa_tables_config.h deleted file mode 100644 index bd05ea57d..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_rail_util_pa_tables_config.h +++ /dev/null @@ -1,49 +0,0 @@ -/***************************************************************************//** - * @file - * @brief PA Tables configuration file. - ******************************************************************************* - * # License - * Copyright 2025 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_RAIL_UTIL_PA_TABLES_CONFIG_H -#define SL_RAIL_UTIL_PA_TABLES_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// PA Table Configuration -// PA Table Selection -// <"sl_rail_util_pa_dbm_powersetting_mapping_table_10dbm.h"=> 10dBm PA powersetting mapping table -// <"sl_rail_util_pa_dbm_powersetting_mapping_table_0dbm.h"=> 0dBm PA powersetting mapping table -// <"sl_rail_util_pa_dbm_powersetting_mapping_table_automode_0_10dbm.h"=> 0dBm-10dBm automode PA powersetting mapping table -// Default: "sl_rail_util_pa_dbm_powersetting_mapping_table_automode_0_10dbm.h" -#define SL_RAIL_UTIL_PA_TABLE_HEADER "sl_rail_util_pa_dbm_powersetting_mapping_table_automode_0_10dbm.h" -// - -// <<< end of configuration section >>> - -#include SL_RAIL_UTIL_PA_TABLE_HEADER - -#endif // SL_RAIL_UTIL_PA_TABLES_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_rail_util_power_manager_init_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_rail_util_power_manager_init_config.h deleted file mode 100644 index cbc69f24d..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_rail_util_power_manager_init_config.h +++ /dev/null @@ -1,44 +0,0 @@ -/***************************************************************************//** - * @file - * @brief RAIL power manager configuration file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H -#define SL_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// RAIL power manager configuration - -// Enable RAIL power manager initialization -// Default: 1 -#define SL_RAIL_UTIL_RAIL_POWER_MANAGER_INIT 1 - -// -// <<< end of configuration section >>> -#endif // SL_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_rail_util_pti_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_rail_util_pti_config.h deleted file mode 100644 index 736b91558..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_rail_util_pti_config.h +++ /dev/null @@ -1,71 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Packet Trace Information configuration file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_RAIL_UTIL_PTI_CONFIG_H -#define SL_RAIL_UTIL_PTI_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> -// PTI Configuration - -// PTI mode -// UART -// UART onewire -// SPI -// Disabled -// Default: SL_RAIL_PTI_MODE_UART -#define SL_RAIL_UTIL_PTI_MODE SL_RAIL_PTI_MODE_UART - -// PTI Baud Rate (Hertz) -// <147800-20000000:1> -// Default: 1600000 -#define SL_RAIL_UTIL_PTI_BAUD_RATE_HZ 1600000 - -// -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> -// SL_RAIL_UTIL_PTI -// $[PTI_SL_RAIL_UTIL_PTI] -#define SL_RAIL_UTIL_PTI_PERIPHERAL PTI - -// PTI DOUT on PD04 -#define SL_RAIL_UTIL_PTI_DOUT_PORT SL_GPIO_PORT_D -#define SL_RAIL_UTIL_PTI_DOUT_PIN 4 - -// PTI DFRAME on PD05 -#define SL_RAIL_UTIL_PTI_DFRAME_PORT SL_GPIO_PORT_D -#define SL_RAIL_UTIL_PTI_DFRAME_PIN 5 - - -// [PTI_SL_RAIL_UTIL_PTI]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_RAIL_UTIL_PTI_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_rail_util_rssi_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_rail_util_rssi_config.h deleted file mode 100644 index 128d705f5..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_rail_util_rssi_config.h +++ /dev/null @@ -1,48 +0,0 @@ -/***************************************************************************//** - * @file - * @brief RSSI configuration header file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_RAIL_UTIL_RSSI_CONFIG_H -#define SL_RAIL_UTIL_RSSI_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// RSSI Offset Configuration - -// Software RSSI offset value -// Default: 0 -#define SL_RAIL_UTIL_RSSI_OFFSET 0 - -// Define to store in and provide RSSI offset from NVM3 -// Default: 0 -#define SL_RAIL_UTIL_RSSI_SUPPORTS_NVM_DATA 0 - -// -// <<< end of configuration section >>> -#endif // SL_RAIL_UTIL_RSSI_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_rail_util_sequencer_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_rail_util_sequencer_config.h deleted file mode 100644 index 640ef0c0d..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_rail_util_sequencer_config.h +++ /dev/null @@ -1,46 +0,0 @@ -/***************************************************************************//** - * @file - * @brief - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_RAIL_UTIL_SEQUENCER_H -#define SL_RAIL_UTIL_SEQUENCER_H - -#ifdef __cplusplus -extern "C" { -#endif - -#define SL_RAIL_UTIL_SEQUENCER_RUNTIME_IMAGE_SELECTION 0 - -#define SL_RAIL_UTIL_SEQUENCER_IMAGE RAIL_SEQ_IMAGE_PA_10_DBM - -#ifdef __cplusplus -} -#endif - -#endif // SL_RAIL_UTIL_SEQUENCER_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_simple_button_btn0_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_simple_button_btn0_config.h deleted file mode 100644 index 552aa94c9..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_simple_button_btn0_config.h +++ /dev/null @@ -1,61 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Button Driver User Config - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_BUTTON_BTN0_CONFIG_H -#define SL_SIMPLE_BUTTON_BTN0_CONFIG_H - -#include "sl_gpio.h" -#include "sl_simple_button.h" - -// <<< Use Configuration Wizard in Context Menu >>> - -// -// Interrupt -// Poll and Debounce -// Poll -// Default: SL_SIMPLE_BUTTON_MODE_INTERRUPT -#define SL_SIMPLE_BUTTON_BTN0_MODE SL_SIMPLE_BUTTON_MODE_INTERRUPT -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_SIMPLE_BUTTON_BTN0 -// $[GPIO_SL_SIMPLE_BUTTON_BTN0] -#ifndef SL_SIMPLE_BUTTON_BTN0_PORT -#define SL_SIMPLE_BUTTON_BTN0_PORT SL_GPIO_PORT_B -#endif -#ifndef SL_SIMPLE_BUTTON_BTN0_PIN -#define SL_SIMPLE_BUTTON_BTN0_PIN 1 -#endif -// [GPIO_SL_SIMPLE_BUTTON_BTN0]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_SIMPLE_BUTTON_BTN0_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_simple_button_btn1_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_simple_button_btn1_config.h deleted file mode 100644 index 1df1ce0a1..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_simple_button_btn1_config.h +++ /dev/null @@ -1,61 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Button Driver User Config - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_BUTTON_BTN1_CONFIG_H -#define SL_SIMPLE_BUTTON_BTN1_CONFIG_H - -#include "sl_gpio.h" -#include "sl_simple_button.h" - -// <<< Use Configuration Wizard in Context Menu >>> - -// -// Interrupt -// Poll and Debounce -// Poll -// Default: SL_SIMPLE_BUTTON_MODE_INTERRUPT -#define SL_SIMPLE_BUTTON_BTN1_MODE SL_SIMPLE_BUTTON_MODE_INTERRUPT -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_SIMPLE_BUTTON_BTN1 -// $[GPIO_SL_SIMPLE_BUTTON_BTN1] -#ifndef SL_SIMPLE_BUTTON_BTN1_PORT -#define SL_SIMPLE_BUTTON_BTN1_PORT SL_GPIO_PORT_B -#endif -#ifndef SL_SIMPLE_BUTTON_BTN1_PIN -#define SL_SIMPLE_BUTTON_BTN1_PIN 3 -#endif -// [GPIO_SL_SIMPLE_BUTTON_BTN1]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_SIMPLE_BUTTON_BTN1_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_simple_button_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_simple_button_config.h deleted file mode 100644 index 531f4f208..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_simple_button_config.h +++ /dev/null @@ -1,72 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Button Driver Configuration - ******************************************************************************* - * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_BUTTON_CONFIG_H -#define SL_SIMPLE_BUTTON_CONFIG_H - -#include "sl_gpio.h" -// <<< Use Configuration Wizard in Context Menu >>> - -// Simple Button Driver Configuration - -// Number of bits <1-15> -// Default: 5 -// Defines the number of calls to sl_simple_button_poll_step wherein the button -// state must remain the same before the button state is considered debounced -#define SL_SIMPLE_BUTTON_DEBOUNCE_BITS 5U - -// -// GPIO Input -// GPIO Input Pull -// GPIO Input Pull Filter -// Default: gpioModeInput -#define SL_SIMPLE_BUTTON_GPIO_MODE SL_GPIO_MODE_INPUT - -// -// SL_SIMPLE_BUTTON_GPIO_MODE == SL_GPIO_MODE_INPUT, Filter if DOUT is set -// SL_SIMPLE_BUTTON_GPIO_MODE == SL_GPIO_MODE_INPUT_PULL, DOUT determines pull direction -#define SL_SIMPLE_BUTTON_GPIO_DOUT 0U - -// -// 0 Active Low -// 1 Active High -// Default: 0 -#define SL_SIMPLE_BUTTON_POLARITY 0U - -// Allow the app to manage Buttons and LEDs on the same pin -// 0 Error if Buttons and LEDs are on the same pin -// 1 Do not error if Buttons and LEDs are on the same pin -// Default: 0 -#define SL_SIMPLE_BUTTON_ALLOW_LED_CONFLICT 0U - -// - -// <<< end of configuration section >>> -#endif // SL_SIMPLE_BUTTON_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_simple_led_led0_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_simple_led_led0_config.h deleted file mode 100644 index 5de786937..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_simple_led_led0_config.h +++ /dev/null @@ -1,57 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Led Driver Configuration - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_LED_LED0_CONFIG_H -#define SL_SIMPLE_LED_LED0_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Simple LED configuration -// -// Active low -// Active high -// Default: SL_SIMPLE_LED_POLARITY_ACTIVE_HIGH -#define SL_SIMPLE_LED_LED0_POLARITY SL_SIMPLE_LED_POLARITY_ACTIVE_HIGH -// end led configuration - -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_SIMPLE_LED_LED0 -// $[GPIO_SL_SIMPLE_LED_LED0] -#define SL_SIMPLE_LED_LED0_PORT SL_GPIO_PORT_B -#define SL_SIMPLE_LED_LED0_PIN 2 - -// [GPIO_SL_SIMPLE_LED_LED0]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_SIMPLE_LED_LED0_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_simple_led_led1_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_simple_led_led1_config.h deleted file mode 100644 index 80a6b5541..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_simple_led_led1_config.h +++ /dev/null @@ -1,57 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Simple Led Driver Configuration - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_SIMPLE_LED_LED1_CONFIG_H -#define SL_SIMPLE_LED_LED1_CONFIG_H - -// <<< Use Configuration Wizard in Context Menu >>> - -// Simple LED configuration -// -// Active low -// Active high -// Default: SL_SIMPLE_LED_POLARITY_ACTIVE_HIGH -#define SL_SIMPLE_LED_LED1_POLARITY SL_SIMPLE_LED_POLARITY_ACTIVE_HIGH -// end led configuration - -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> - -// SL_SIMPLE_LED_LED1 -// $[GPIO_SL_SIMPLE_LED_LED1] -#define SL_SIMPLE_LED_LED1_PORT SL_GPIO_PORT_B -#define SL_SIMPLE_LED_LED1_PIN 4 - -// [GPIO_SL_SIMPLE_LED_LED1]$ - -// <<< sl:end pin_tool >>> - -#endif // SL_SIMPLE_LED_LED1_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_sleeptimer_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_sleeptimer_config.h deleted file mode 100644 index 8344ef5f1..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_sleeptimer_config.h +++ /dev/null @@ -1,82 +0,0 @@ -/***************************************************************************//** - * @file - * @brief Sleep Timer configuration file. - ******************************************************************************* - * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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. - * - ******************************************************************************/ - -// <<< Use Configuration Wizard in Context Menu >>> - -#ifndef SL_SLEEPTIMER_CONFIG_H -#define SL_SLEEPTIMER_CONFIG_H - -#define SL_SLEEPTIMER_PERIPHERAL_DEFAULT 0 -#define SL_SLEEPTIMER_PERIPHERAL_RTCC 1 -#define SL_SLEEPTIMER_PERIPHERAL_PRORTC 2 -#define SL_SLEEPTIMER_PERIPHERAL_RTC 3 -#define SL_SLEEPTIMER_PERIPHERAL_SYSRTC 4 -#define SL_SLEEPTIMER_PERIPHERAL_BURTC 5 -#define SL_SLEEPTIMER_PERIPHERAL_WTIMER 6 -#define SL_SLEEPTIMER_PERIPHERAL_TIMER 7 - -// Timer Peripheral Used by Sleeptimer -// Default (auto select) -// RTCC -// Radio internal RTC (PRORTC) -// RTC -// SYSRTC -// Back-Up RTC (BURTC) -// WTIMER -// TIMER -// Selection of the Timer Peripheral Used by the Sleeptimer -#define SL_SLEEPTIMER_PERIPHERAL SL_SLEEPTIMER_PERIPHERAL_DEFAULT - -// TIMER/WTIMER Instance Used by Sleeptimer (not applicable for other peripherals) -// Make sure TIMER instance size is 32bits. Check datasheet for 32bits TIMERs. -// Default: 0 -#define SL_SLEEPTIMER_TIMER_INSTANCE 0 - -// Enable wallclock functionality -// Enable or disable wallclock functionalities (get_time, get_date, etc). -// Default: 0 -#define SL_SLEEPTIMER_WALLCLOCK_CONFIG 0 - -// Timer frequency divider (not applicable for WTIMER/TIMER) -// WTIMER/TIMER peripherals are always prescaled to 1024. -// Default: 1 -#define SL_SLEEPTIMER_FREQ_DIVIDER 1 - -// If Radio internal RTC (PRORTC) HAL is used, determines if it owns the IRQ handler. Enable, if no wireless stack is used. -// Default: 0 -#define SL_SLEEPTIMER_PRORTC_HAL_OWNS_IRQ_HANDLER 0 - -// Enable DEBUGRUN functionality on hardware RTC. -// Default: 0 -#define SL_SLEEPTIMER_DEBUGRUN 0 - -#endif /* SLEEPTIMER_CONFIG_H */ - -// <<< end of configuration section >>> diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/sl_uartdrv_eusart_vcom_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/sl_uartdrv_eusart_vcom_config.h deleted file mode 100644 index a8dda06a4..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/sl_uartdrv_eusart_vcom_config.h +++ /dev/null @@ -1,123 +0,0 @@ -/***************************************************************************//** - * @file - * @brief UARTDRV_EUSART Config - ******************************************************************************* - * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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_UARTDRV_EUSART_VCOM_CONFIG_H -#define SL_UARTDRV_EUSART_VCOM_CONFIG_H - -#include "em_eusart.h" -// <<< Use Configuration Wizard in Context Menu >>> - -// EUSART settings -// Baud rate -// Default: 115200 -#if defined(VERBOSE_MODE) && (VERBOSE_MODE ==1) -#define SL_UARTDRV_EUSART_VCOM_BAUDRATE 921600 -#else -#define SL_UARTDRV_EUSART_VCOM_BAUDRATE 115200 -#endif - -// Low frequency mode -// True -// False -#define SL_UARTDRV_EUSART_VCOM_LF_MODE false - -// Parity mode to use -// No Parity -// Even parity -// Odd parity -// Default: eusartNoParity -#define SL_UARTDRV_EUSART_VCOM_PARITY eusartNoParity - -// Number of stop bits to use. -// 0.5 stop bits -// 1 stop bits -// 1.5 stop bits -// 2 stop bits -// Default: eusartStopbits1 -#define SL_UARTDRV_EUSART_VCOM_STOP_BITS eusartStopbits1 - -// Flow control method -// None -// Software XON/XOFF -// nRTS/nCTS hardware handshake -// UART peripheral controls nRTS/nCTS -// Default: uartdrvFlowControlHwUart -#define SL_UARTDRV_EUSART_VCOM_FLOW_CONTROL_TYPE uartdrvFlowControlHwUart - -// Oversampling selection -// 16x oversampling -// 8x oversampling -// 6x oversampling -// 4x oversampling -// Oversampling disabled -// Default: eusartOVS16 -#define SL_UARTDRV_EUSART_VCOM_OVERSAMPLING eusartOVS16 - -// Majority vote disable for 16x, 8x and 6x oversampling modes -// False -// True -// Default: eusartMajorityVoteEnable -#define SL_UARTDRV_EUSART_VCOM_MVDIS eusartMajorityVoteEnable - -// Size of the receive operation queue -// Default: 6 -#define SL_UARTDRV_EUSART_VCOM_RX_BUFFER_SIZE 6 - -// Size of the transmit operation queue -// Default: 6 -#define SL_UARTDRV_EUSART_VCOM_TX_BUFFER_SIZE 6 -// -// <<< end of configuration section >>> - -// <<< sl:start pin_tool >>> -// SL_UARTDRV_EUSART_VCOM -// $[EUSART_SL_UARTDRV_EUSART_VCOM] -#define SL_UARTDRV_EUSART_VCOM_PERIPHERAL EUSART0 -#define SL_UARTDRV_EUSART_VCOM_PERIPHERAL_NO 0 - -// EUSART0 TX on PA08 -#define SL_UARTDRV_EUSART_VCOM_TX_PORT SL_GPIO_PORT_A -#define SL_UARTDRV_EUSART_VCOM_TX_PIN 8 - -// EUSART0 RX on PA09 -#define SL_UARTDRV_EUSART_VCOM_RX_PORT SL_GPIO_PORT_A -#define SL_UARTDRV_EUSART_VCOM_RX_PIN 9 - -// EUSART0 CTS on PB05 -#define SL_UARTDRV_EUSART_VCOM_CTS_PORT SL_GPIO_PORT_B -#define SL_UARTDRV_EUSART_VCOM_CTS_PIN 5 - -// EUSART0 RTS on PA00 -#define SL_UARTDRV_EUSART_VCOM_RTS_PORT SL_GPIO_PORT_A -#define SL_UARTDRV_EUSART_VCOM_RTS_PIN 0 - -// [EUSART_SL_UARTDRV_EUSART_VCOM]$ -// <<< sl:end pin_tool >>> -#endif // SL_UARTDRV_EUSART_VCOM_CONFIG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/config/uartdrv_config.h b/board-support/efr32/efr32mg24/BRD4187A/config/uartdrv_config.h deleted file mode 100644 index f41b347e1..000000000 --- a/board-support/efr32/efr32mg24/BRD4187A/config/uartdrv_config.h +++ /dev/null @@ -1,123 +0,0 @@ -/***************************************************************************//** - * @file - * @brief UARTDRV configuration file. - ******************************************************************************* - * # License - * Copyright 2018 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * 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 __SILICON_LABS_UARTDRV_CONFIG_H__ -#define __SILICON_LABS_UARTDRV_CONFIG_H__ - -/***************************************************************************//** - * @addtogroup uartdrv - * @{ - ******************************************************************************/ -/// Size of the receive operation queue. -/// @details -/// The maximum number of receive operations that can be queued up for one -/// driver instance before @ref UARTDRV_Receive() returns -/// @ref ECODE_EMDRV_UARTDRV_QUEUE_FULL. -/// @note -/// This macro is not used by the UARTDRV itself, but is intended to be used -/// with the @ref DEFINE_BUF_QUEUE macro by the user of the driver to allocate -/// instances of the @ref UARTDRV_Buffer_FifoQueue_t struct. -#if !defined(EMDRV_UARTDRV_MAX_CONCURRENT_RX_BUFS) -#define EMDRV_UARTDRV_MAX_CONCURRENT_RX_BUFS 6 -#endif - -/// Size of the transmit operation queue. -/// @details -/// The maximum number of transmit operations that can be queued up for one -/// driver instance before @ref UARTDRV_Transmit() returns -/// @ref ECODE_EMDRV_UARTDRV_QUEUE_FULL. -/// @note -/// This macro is not used by the UARTDRV itself, but is intended to be used -/// with the @ref DEFINE_BUF_QUEUE macro by the user of the driver to allocate -/// instances of the @ref UARTDRV_Buffer_FifoQueue_t struct. -#if !defined(EMDRV_UARTDRV_MAX_CONCURRENT_TX_BUFS) -#define EMDRV_UARTDRV_MAX_CONCURRENT_TX_BUFS 6 -#endif - -// <<< Use Configuration Wizard in Context Menu >>> -// UARTDRV Settings - -/// Set to 1 to include flow control support -#if !defined(EMDRV_UARTDRV_FLOW_CONTROL_ENABLE) -// Flow control support -// <1=> Enable -// <0=> Disable -// Default: 1 -#define EMDRV_UARTDRV_FLOW_CONTROL_ENABLE 0 -#endif - -/// Maximum number of driver instances. -#if !defined(EMDRV_UARTDRV_MAX_DRIVER_INSTANCES) -// Maximum number of driver instances -// This maximum only applies when UARTDRV_FLOW_CONTROL_ENABLE = 1 -// Default: 4 -#define EMDRV_UARTDRV_MAX_DRIVER_INSTANCES 4 -#endif - -/// UART software flow control code: request peer to start TX -#if !defined(UARTDRV_FC_SW_XON) -// UART software flow control code: request peer to start TX -// Default: 0x11 -#define UARTDRV_FC_SW_XON 0x11 -#endif - -/// UART software flow control code: request peer to stop TX -#if !defined(UARTDRV_FC_SW_XOFF) -// UART software flow control code: request peer to stop TX -// Default: 0x13 -#define UARTDRV_FC_SW_XOFF 0x13 -#endif - -/// UART enable reception when sleeping. -#if !defined(UARTDRV_RESTRICT_ENERGY_MODE_TO_ALLOW_RECEPTION) -// Enable reception when sleeping -// Enable reception when sleeping will use the power manager and add EM1 -// requirement during receive operations that use DMA. -// <1=> Enable -// <0=> Disable -// Default: 1 -#define UARTDRV_RESTRICT_ENERGY_MODE_TO_ALLOW_RECEPTION 1 -#endif - -/// Set to 1 to add user-specified call back parameter. -#if !defined(UARTDRV_USER_SPECIFIED_CALLBACK_ENABLE) -// Add user-specified callback parameter. -// <1=> Enable -// <0=> Disable -// Default: 0 -#define UARTDRV_USER_SPECIFIED_CALLBACK_ENABLE 0 -#endif - -// - -// <<< end of configuration section >>> - -/** @} (end addtogroup uartdrv) */ - -#endif /* __SILICON_LABS_UARTDRV_CONFIG_H__ */ diff --git a/board-support/efr32/efr32mg24/BRD4187C/autogen/gatt_db.h b/board-support/efr32/efr32mg24/BRD4187C/autogen/gatt_db.h index c179e6b28..b3a2e67f9 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/autogen/gatt_db.h +++ b/board-support/efr32/efr32mg24/BRD4187C/autogen/gatt_db.h @@ -5,10 +5,6 @@ #ifndef __GATT_DB_H #define __GATT_DB_H -#if __cplusplus -extern "C" { -#endif - #include "sli_bt_gattdb_def.h" extern const sli_bt_gattdb_t gattdb; @@ -31,8 +27,5 @@ extern const sli_bt_gattdb_t gattdb; #define gattdb_CHIPoBLEChar_Tx_len 247 #define gattdb_CHIPoBLEChar_C3_len 512 -#if __cplusplus -} -#endif #endif // __GATT_DB_H diff --git a/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_bluetooth.c b/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_bluetooth.c index 0a5f1a969..0cf47b680 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_bluetooth.c +++ b/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_bluetooth.c @@ -76,13 +76,13 @@ void sl_bt_step(void) // Check the length of the next event, if any, and verify that the application // can process it. To prevent data loss, the event will be kept in the stack's // queue if the application cannot process it at the moment. - size_t event_len = sli_bgapi_device_peek_event_len(&sli_bt_bgapi_device); + size_t event_len = sli_bgapi_device_peek_event_len(sli_bt_bgapi_device); if ((event_len == 0) || (!sl_bt_can_process_event(event_len))) { return; } // Pop the event and process it if successful - sl_status_t status = sli_bgapi_device_pop_event(&sli_bt_bgapi_device, + sl_status_t status = sli_bgapi_device_pop_event(sli_bt_bgapi_device, sizeof(evt), &evt); diff --git a/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_component_catalog.h b/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_component_catalog.h index fb05f93bb..9070be224 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_component_catalog.h +++ b/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_component_catalog.h @@ -4,7 +4,9 @@ // APIs present in project #define SL_CATALOG_BGAPI_PROTOCOL_PRESENT #define SL_CATALOG_BGAPI_PROTOCOL_RTOS_ADAPTATION_PRESENT +#define SL_CATALOG_BLUETOOTH_COMMON_PRESENT #define SL_CATALOG_BLUETOOTH_CONFIGURATION_PRESENT +#define SL_CATALOG_BLUETOOTH_CRYPTO_LIB_PSA_PRESENT #define SL_CATALOG_BLUETOOTH_CTE_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_CS_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_FEATURE_ADVERTISER_PRESENT @@ -26,7 +28,9 @@ #define SL_CATALOG_CPP_SUPPORT_PRESENT #define SL_CATALOG_DEVICE_INIT_PRESENT #define SL_CATALOG_DEVICE_INIT_DCDC_PRESENT +#define SL_CATALOG_DMA_MANAGER_PRESENT #define SL_CATALOG_EMLIB_CORE_PRESENT +#define SL_CATALOG_EMLIB_GPIO_PRESENT #define SL_CATALOG_EMLIB_RMU_PRESENT #define SL_CATALOG_FREERTOS_KERNEL_PRESENT #define SL_CATALOG_KERNEL_PRESENT @@ -40,7 +44,7 @@ #ifdef DISPLAY_ENABLED #define SL_CATALOG_MEMLCD_USART_PRESENT #define SL_CATALOG_DMD_MEMLCD_PRESENT -#endif +#endif // DISPLAY_ENABLED #define SL_CATALOG_MEMORY_MANAGER_PRESENT #define SL_CATALOG_MEMORY_PROFILER_API_PRESENT #define SL_CATALOG_MPU_PRESENT @@ -57,7 +61,7 @@ #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_SEGGER_RTT_PRESENT #define SL_CATALOG_BTN0_PRESENT @@ -72,10 +76,23 @@ #define SL_CATALOG_SIMPLE_LED_LED1_PRESENT #define SL_CATALOG_SL_CORE_PRESENT #define SL_CATALOG_SL_MAIN_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_COMPATIBLE_PA_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_PA_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_SEQUENCER_PRESENT +#define SL_CATALOG_RAIL_UTIL_SEQUENCER_PRESENT #define SL_CATALOG_SLEEPTIMER_PRESENT #define SL_CATALOG_SLI_PROTOCOL_CRYPTO_PRESENT #if defined(CONFIG_ENABLE_UART) #define SL_CATALOG_UARTDRV_EUSART_PRESENT -#endif +#define SL_CATALOG_OPENTHREAD_UART_PRESENT +#endif // CONFIG_ENABLE_UART #endif // SL_COMPONENT_CATALOG_H diff --git a/board-support/efr32/efr32mg24/BRD4187A/main.c b/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_dma_manager_instances.c similarity index 70% rename from board-support/efr32/efr32mg24/BRD4187A/main.c rename to board-support/efr32/efr32mg24/BRD4187C/autogen/sl_dma_manager_instances.c index db35d2d3d..f4339b2ed 100644 --- a/board-support/efr32/efr32mg24/BRD4187A/main.c +++ b/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_dma_manager_instances.c @@ -1,6 +1,6 @@ /***************************************************************************//** - * @file main.c - * @brief main() function. + * @file + * @brief DMA Manager Instances Initialization. ******************************************************************************* * # License * Copyright 2025 Silicon Laboratories Inc. www.silabs.com @@ -27,17 +27,25 @@ * 3. This notice may not be removed or altered from any source distribution. * ******************************************************************************/ -#include "sl_main_init.h" -#include "sl_main_kernel.h" -int main(void) +#include "sl_dma_manager_instances.h" +#include "sl_dma_manager.h" +#include "sl_device_peripheral.h" + + + +sl_dma_handle_t sl_dma_handle_ldma0; + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + ******************************************************************************/ +void sl_dma_manager_instances_init(void) { - // Initialize Silicon Labs device, system, service(s) and protocol stack(s). - sl_main_second_stage_init(); - app_init(); + // Initialize DMA Manager instance: LDMA0 + sl_dma_manager_init(&sl_dma_handle_ldma0, SL_PERIPHERAL_DMA_LDMA0); - while (sl_main_start_task_should_continue()) { - app_process_action(); - } } + + diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_ot_custom_cli.c b/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_dma_manager_instances.h similarity index 56% rename from board-support/efr32/efr32mg24/BRD2601B/autogen/sl_ot_custom_cli.c rename to board-support/efr32/efr32mg24/BRD4187C/autogen/sl_dma_manager_instances.h index ca55d6463..1580ad2b2 100644 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_ot_custom_cli.c +++ b/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_dma_manager_instances.h @@ -1,9 +1,9 @@ -/******************************************************************************* +/***************************************************************************//** * @file - * @brief Custom CLI support for OpenThread + * @brief DMA Manager Instances API. ******************************************************************************* * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com ******************************************************************************* * * SPDX-License-Identifier: Zlib @@ -28,37 +28,44 @@ * ******************************************************************************/ -#include -#include -#include -#include "sl_ot_custom_cli.h" +#ifndef SL_DMA_MANAGER_INSTANCES_H +#define SL_DMA_MANAGER_INSTANCES_H -/******************************************************************************* - * Example syntax (.slcc or .slcp) for populating this file: +#include "sl_dma_manager.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/***************************************************************************//** + * @addtogroup dma_manager DMA Manager + * @{ + ******************************************************************************/ + + + +extern sl_dma_handle_t sl_dma_handle_ldma0; + + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. * - * template_contribution: - * - name: sl_ot_cli_command # Register a command - * value: - * name: status # Name of command - * handler: status_command # Function to be called. Must be defined + * @details This function initializes all DMA Manager instances that have been + * configured through the component system. Each instance corresponds + * to a DMA peripheral (e.g., LDMA0, LDMA1). * + * @note This function is typically called automatically during system + * initialization when the dma_manager_init component is included + * in the project. ******************************************************************************/ -extern otError bleCommand(void *aContext, uint8_t aArgsLength, char *aArgs[]); +void sl_dma_manager_instances_init(void); -otCliCommand sl_ot_custom_commands[] = { -#ifdef SL_OPENTHREAD_BLE_CLI_ENABLE - {"ble", bleCommand}, -#endif +/** @} (end addtogroup dma_manager) */ -}; +#ifdef __cplusplus +} +#endif -// This is needed because `sizeof` is calculated at compile time and can't be calculated outside of this source file. -const uint8_t sl_ot_custom_commands_count = OT_ARRAY_LENGTH(sl_ot_custom_commands); +#endif // SL_DMA_MANAGER_INSTANCES_H -void sl_ot_custom_cli_init(void) -{ - if (sl_ot_custom_commands_count > 0) - { - IgnoreError(otCliSetUserCommands(sl_ot_custom_commands, sl_ot_custom_commands_count, NULL)); - } -} diff --git a/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_event_handler.c b/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_event_handler.c index 5a90b0716..1ee0cd58e 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_event_handler.c +++ b/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_event_handler.c @@ -14,6 +14,7 @@ #include "btl_interface.h" #include "sl_board_control.h" #include "platform-efr32.h" +#include "sl_dma_manager_instances.h" #include "sl_bt_rtos_adaptation.h" #include "sl_bluetooth.h" #include "sl_debug_swo.h" @@ -77,6 +78,7 @@ void sl_platform_init(void) sl_hfxo_manager_init_hardware(); sl_board_init(); bootloader_init(); + sl_dma_manager_instances_init(); nvm3_initDefault(); } @@ -105,7 +107,7 @@ void sl_driver_init(void) #else sl_simple_led_init_instances(); #endif //(SL_MATTER_RGB_LED_ENABLED) && SL_MATTER_RGB_LED_ENABLED == 1) - #if defined(CONFIG_ENABLE_UART) +#if defined(CONFIG_ENABLE_UART) sl_uartdrv_init_instances(); #endif // CONFIG_ENABLE_UART } diff --git a/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_simple_led_instances.h b/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_simple_led_instances.h index 928fbe942..08c8291ae 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_simple_led_instances.h +++ b/board-support/efr32/efr32mg24/BRD4187C/autogen/sl_simple_led_instances.h @@ -31,10 +31,6 @@ #ifndef SL_SIMPLE_LED_INSTANCES_H #define SL_SIMPLE_LED_INSTANCES_H -#ifdef __cplusplus -extern "C" { -#endif - #include "sl_simple_led.h" extern const sl_led_t sl_led_led0; @@ -47,8 +43,4 @@ extern const sl_led_t *sl_simple_led_array[]; void sl_simple_led_init_instances(void); -#ifdef __cplusplus -} -#endif - #endif // SL_SIMPLE_LED_INIT_H diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/app_properties_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/app_properties_config.h index 6a6b97666..34418403f 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/app_properties_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/app_properties_config.h @@ -63,3 +63,4 @@ // #endif // APP_PROPERTIES_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/btconf/gatt_configuration.btconf b/board-support/efr32/efr32mg24/BRD4187C/config/btconf/gatt_configuration.btconf deleted file mode 100644 index 4d1efd972..000000000 --- a/board-support/efr32/efr32mg24/BRD4187C/config/btconf/gatt_configuration.btconf +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - Abstract: The generic_access service contains generic information about the device. All available Characteristics are readonly. - - - - - Empty Example - - - - - - - - - Abstract: The external appearance of this device. The values are composed of a category (10-bits) and sub-categories (6-bits). - 0000 - - - - - - - - - Abstract: The Device Information Service exposes manufacturer and/or vendor information about a device. Summary: This service exposes manufacturer information about a device. The Device Information Service is instantiated as a Primary Service. Only one instance of the Device Information Service is exposed on a device. - - - - Abstract: The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device. - Silicon Labs - - - - - - - - Abstract: The value of this characteristic is a UTF-8 string representing the model number assigned by the device vendor. - Blue Gecko - - - - - - - - Abstract: The SYSTEM ID characteristic consists of a structure with two fields. The first field are the LSOs and the second field contains the MSOs. This is a 64-bit structure which consists of a 40-bit manufacturer-defined identifier concatenated with a 24 bit unique Organizationally Unique Identifier (OUI). The OUI is issued by the IEEE Registration Authority (http://standards.ieee.org/regauth/index.html) and is required to be used in accordance with IEEE Standard 802-2001.6 while the least significant 40 bits are manufacturer defined. If System ID generated based on a Bluetooth Device Address, it is required to be done as follows. System ID and the Bluetooth Device Address have a very similar structure: a Bluetooth Device Address is 48 bits in length and consists of a 24 bit Company Assigned Identifier (manufacturer defined identifier) concatenated with a 24 bit Company Identifier (OUI). In order to encapsulate a Bluetooth Device Address as System ID, the Company Identifier is concatenated with 0xFFFE followed by the Company Assigned Identifier of the Bluetooth Address. For more guidelines related to EUI-64, refer to http://standards.ieee.org/develop/regauth/tut/eui64.pdf. Examples: If the system ID is based of a Bluetooth Device Address with a Company Identifier (OUI) is 0x123456 and the Company Assigned Identifier is 0x9ABCDE, then the System Identifier is required to be 0x123456FFFE9ABCDE. - 000102030405 - - - - - - - - - Custom service - - - - Custom characteristic - 00 - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/btl_interface_cfg.h b/board-support/efr32/efr32mg24/BRD4187C/config/btl_interface_cfg.h new file mode 100644 index 000000000..fc17ccfff --- /dev/null +++ b/board-support/efr32/efr32mg24/BRD4187C/config/btl_interface_cfg.h @@ -0,0 +1,64 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_H +#define BTL_INTERFACE_CFG_H + +#if !defined(BOOTLOADER_APPLOADER) + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_1) +#include "btl_interface_cfg_s2c1.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_2) +#include "btl_interface_cfg_s2c2.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_3) +#include "btl_interface_cfg_s2c3.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_4) +#include "btl_interface_cfg_s2c4.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_5) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_6) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_8) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_9) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_13) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_11) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif +#endif// !BOOTLOADER_APPLOADER + +#endif // BTL_INTERFACE_CFG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/btl_interface_cfg_s2c4.h b/board-support/efr32/efr32mg24/BRD4187C/config/btl_interface_cfg_s2c4.h new file mode 100644 index 000000000..a93bdec95 --- /dev/null +++ b/board-support/efr32/efr32mg24/BRD4187C/config/btl_interface_cfg_s2c4.h @@ -0,0 +1,322 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_S2C4_H +#define BTL_INTERFACE_CFG_S2C4_H + +// <<< Use Configuration Wizard in Context Menu >>> +// Bootloader Interface Trust Zone Security State Configuration + +// Disable multi tiered fallback logic +// The fault handling logic as well as the USART auto-detection logic will be disabled. +// The re-configuration of SMU will be handled by querying the running bootloader +// for the peripheral list. Querying the peripheral list is supported from the bootloader +// version 2.0.0. Check for the BOOTLOADER_CAPABILITY_PERIPHERAL_LIST capability to +// see if the running bootloader supports querying the peripheral list. +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 0 + +// Disable peripheral access fault handling +// The fault handling triggered by an erroneous access of peripherals will be disabled. +// +// This should be disabled iff all the peripherals that are in use by the bootloader +// have been properly configured by the "Manually override security state of peripherals" option. +#define BOOTLOADER_DISABLE_NVM3_FAULT_HANDLING 0 + +// Manually override the security state of peripherals in use by the bootloader +// Default: 0. +// Manually override the security state of peripherals. Choose the peripherals touched +// by the customized code to have a valid secure access state before interacting with the bootloader +// In practice, this means that the chosen peripherals will be available at the secure address, +// which is accessible by the bootloader. Once the application is entered back the secure access state +// is changed back to the original state. +// +// The USART auto-detection logic that detects which, if any, USART is in use by the bootloader +// will be disabled. Make sure to choose the correct USART used by the bootloader. +#define BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE 0 +// EMU +// Update secure access state of EMU before calling into bootloader +#define BOOTLOADER_PPUSATD0_EMU 0 + +// CMU +// Update secure access state of CMU before calling into bootloader +#define BOOTLOADER_PPUSATD0_CMU 0 + +// HFRCO0 +// Update secure access state of HFRCO0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_HFRCO0 0 + +// FSRCO +// Update secure access state of FSRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_FSRCO 0 + +// DPLL0 +// Update secure access state of DPLL0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_DPLL0 0 + +// LFXO +// Update secure access state of LFXO before calling into bootloader +#define BOOTLOADER_PPUSATD0_LFXO 0 + +// LFRCO +// Update secure access state of LFRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_LFRCO 0 + +// ULFRCO +// Update secure access state of ULFRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_ULFRCO 0 + +// MSC +// Update secure access state of MSC before calling into bootloader +#define BOOTLOADER_PPUSATD0_MSC 0 + +// ICACHE0 +// Update secure access state of ICACHE0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_ICACHE0 0 + +// PRS +// Update secure access state of PRS before calling into bootloader +#define BOOTLOADER_PPUSATD0_PRS 0 + +// GPIO +// Update secure access state of GPIO before calling into bootloader +#define BOOTLOADER_PPUSATD0_GPIO 0 + +// LDMA +// Update secure access state of LDMA before calling into bootloader +#define BOOTLOADER_PPUSATD0_LDMA 0 + +// LDMAXBAR +// Update secure access state of LDMAXBAR before calling into bootloader +#define BOOTLOADER_PPUSATD0_LDMAXBAR 0 + +// TIMER0 +// Update secure access state of TIMER0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER0 0 + +// TIMER1 +// Update secure access state of TIMER1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER1 0 + +// TIMER2 +// Update secure access state of TIMER2 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER2 0 + +// TIMER3 +// Update secure access state of TIMER3 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER3 0 + +// TIMER4 +// Update secure access state of TIMER4 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER4 0 + +// USART0 +// Update secure access state of USART0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_USART0 0 + +// BURTC +// Update secure access state of BURTC before calling into bootloader +#define BOOTLOADER_PPUSATD0_BURTC 0 + +// I2C1 +// Update secure access state of I2C1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_I2C1 0 + +// CHIPTESTCTRL +// Update secure access state of CHIPTESTCTRL before calling into bootloader +#define BOOTLOADER_PPUSATD0_CHIPTESTCTRL 0 + +// SYSCFGCFGNS +// Update secure access state of SYSCFGCFGNS before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSCFGCFGNS 0 + +// SYSCFG +// Update secure access state of SYSCFG before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSCFG 0 + +// BURAM +// Update secure access state of BURAM before calling into bootloader +#define BOOTLOADER_PPUSATD0_BURAM 0 + +// GPCRC +// Update secure access state of GPCRC before calling into bootloader +#define BOOTLOADER_PPUSATD0_GPCRC 0 + +// DCDC +// Update secure access state of DCDC before calling into bootloader +#define BOOTLOADER_PPUSATD0_DCDC 0 + +// HOSTMAILBOX +// Update secure access state of HOSTMAILBOX before calling into bootloader +#define BOOTLOADER_PPUSATD0_HOSTMAILBOX 0 + +// EUSART1 +// Update secure access state of EUSART1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_EUSART1 0 + +// SYSRTC +// Update secure access state of SYSRTC before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSRTC 0 + +// KEYSCAN +// Update secure access state of KEYSCAN before calling into bootloader +#define BOOTLOADER_PPUSATD1_KEYSCAN 0 + +// DMEM +// Update secure access state of DMEM before calling into bootloader +#define BOOTLOADER_PPUSATD1_DMEM 0 + +// RADIOAES +// Update secure access state of RADIOAES before calling into bootloader +#define BOOTLOADER_PPUSATD1_RADIOAES 0 + +// SMU +// Update secure access state of SMU before calling into bootloader +#define BOOTLOADER_PPUSATD1_SMU 0 + +// SMUCFGNS +// Update secure access state of SMUCFGNS before calling into bootloader +#define BOOTLOADER_PPUSATD1_SMUCFGNS 0 + +// LETIMER0 +// Update secure access state of LETIMER0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_LETIMER0 0 + +// IADC0 +// Update secure access state of IADC0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_IADC0 0 + +// ACMP0 +// Update secure access state of ACMP0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_ACMP0 0 + +// ACMP1 +// Update secure access state of ACMP1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_ACMP1 0 + +// AMUXCP0 +// Update secure access state of AMUXCP0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_AMUXCP0 0 + +// VDAC0 +// Update secure access state of VDAC0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_VDAC0 0 + +// VDAC1 +// Update secure access state of VDAC1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_VDAC1 0 + +// PCNT +// Update secure access state of PCNT before calling into bootloader +#define BOOTLOADER_PPUSATD1_PCNT 0 + +// HFRCO1 +// Update secure access state of HFRCO1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_HFRCO1 0 + +// HFXO0 +// Update secure access state of HFXO0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_HFXO0 0 + +// I2C0 +// Update secure access state of I2C0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_I2C0 0 + +// WDOG0 +// Update secure access state of WDOG0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_WDOG0 0 + +// WDOG1 +// Update secure access state of WDOG1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_WDOG1 0 + +// EUSART0 +// Update secure access state of EUSART0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_EUSART0 0 + +// SEMAILBOX +// Update secure access state of SEMAILBOX before calling into bootloader +#define BOOTLOADER_PPUSATD1_SEMAILBOX 0 + +// MVP +// Update secure access state of MVP before calling into bootloader +#define BOOTLOADER_PPUSATD1_MVP 0 + +// AHBRADIO +// Update secure access state of AHBRADIO before calling into bootloader +#define BOOTLOADER_PPUSATD1_AHBRADIO 0 +// + +// +// <<< end of configuration section >>> + +#if BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE == 1 +#define BOOTLOADER_PPUSATD0_MASK ((BOOTLOADER_PPUSATD0_EMU << _SMU_PPUSATD0_EMU_SHIFT) \ + | (BOOTLOADER_PPUSATD0_CMU << _SMU_PPUSATD0_CMU_SHIFT) \ + | (BOOTLOADER_PPUSATD0_HFRCO0 << _SMU_PPUSATD0_HFRCO0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_FSRCO << _SMU_PPUSATD0_FSRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_DPLL0 << _SMU_PPUSATD0_DPLL0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LFXO << _SMU_PPUSATD0_LFXO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LFRCO << _SMU_PPUSATD0_LFRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_ULFRCO << _SMU_PPUSATD0_ULFRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_MSC << _SMU_PPUSATD0_MSC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_ICACHE0 << _SMU_PPUSATD0_ICACHE0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_PRS << _SMU_PPUSATD0_PRS_SHIFT) \ + | (BOOTLOADER_PPUSATD0_GPIO << _SMU_PPUSATD0_GPIO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LDMA << _SMU_PPUSATD0_LDMA_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LDMAXBAR << _SMU_PPUSATD0_LDMAXBAR_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER0 << _SMU_PPUSATD0_TIMER0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER1 << _SMU_PPUSATD0_TIMER1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER2 << _SMU_PPUSATD0_TIMER2_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER3 << _SMU_PPUSATD0_TIMER3_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER4 << _SMU_PPUSATD0_TIMER4_SHIFT) \ + | (BOOTLOADER_PPUSATD0_USART0 << _SMU_PPUSATD0_USART0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_BURTC << _SMU_PPUSATD0_BURTC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_I2C1 << _SMU_PPUSATD0_I2C1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_CHIPTESTCTRL << _SMU_PPUSATD0_CHIPTESTCTRL_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSCFGCFGNS << _SMU_PPUSATD0_SYSCFGCFGNS_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSCFG << _SMU_PPUSATD0_SYSCFG_SHIFT) \ + | (BOOTLOADER_PPUSATD0_BURAM << _SMU_PPUSATD0_BURAM_SHIFT) \ + | (BOOTLOADER_PPUSATD0_GPCRC << _SMU_PPUSATD0_GPCRC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_DCDC << _SMU_PPUSATD0_DCDC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_HOSTMAILBOX << _SMU_PPUSATD0_HOSTMAILBOX_SHIFT) \ + | (BOOTLOADER_PPUSATD0_EUSART1 << _SMU_PPUSATD0_EUSART1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSRTC << _SMU_PPUSATD0_SYSRTC_SHIFT)) +#define BOOTLOADER_PPUSATD1_MASK ((BOOTLOADER_PPUSATD1_KEYSCAN << _SMU_PPUSATD1_KEYSCAN_SHIFT) \ + | (BOOTLOADER_PPUSATD1_DMEM << _SMU_PPUSATD1_DMEM_SHIFT) \ + | (BOOTLOADER_PPUSATD1_RADIOAES << _SMU_PPUSATD1_RADIOAES_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SMU << _SMU_PPUSATD1_SMU_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SMUCFGNS << _SMU_PPUSATD1_SMUCFGNS_SHIFT) \ + | (BOOTLOADER_PPUSATD1_LETIMER0 << _SMU_PPUSATD1_LETIMER0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_IADC0 << _SMU_PPUSATD1_IADC0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_ACMP0 << _SMU_PPUSATD1_ACMP0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_ACMP1 << _SMU_PPUSATD1_ACMP1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_AMUXCP0 << _SMU_PPUSATD1_AMUXCP0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_VDAC0 << _SMU_PPUSATD1_VDAC0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_VDAC1 << _SMU_PPUSATD1_VDAC1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_PCNT << _SMU_PPUSATD1_PCNT_SHIFT) \ + | (BOOTLOADER_PPUSATD1_HFRCO1 << _SMU_PPUSATD1_HFRCO1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_HFXO0 << _SMU_PPUSATD1_HFXO0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_I2C0 << _SMU_PPUSATD1_I2C0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_WDOG0 << _SMU_PPUSATD1_WDOG0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_WDOG1 << _SMU_PPUSATD1_WDOG1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_EUSART0 << _SMU_PPUSATD1_EUSART0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SEMAILBOX << _SMU_PPUSATD1_SEMAILBOX_SHIFT) \ + | (BOOTLOADER_PPUSATD1_MVP << _SMU_PPUSATD1_MVP_SHIFT) \ + | (BOOTLOADER_PPUSATD1_AHBRADIO << _SMU_PPUSATD1_AHBRADIO_SHIFT)) +#endif // BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE + +#endif // BTL_INTERFACE_CFG_S2C4_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/buffer_pool_allocator_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/buffer_pool_allocator_config.h index 2c3fd2e67..9a96fedf3 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/buffer_pool_allocator_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/buffer_pool_allocator_config.h @@ -27,3 +27,4 @@ // <<< end of configuration section >>> #endif // __BUFFER_POOL_ALLOCATOR_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/circular_queue_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/circular_queue_config.h index 81a7173d6..fe1ba75d3 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/circular_queue_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/circular_queue_config.h @@ -21,3 +21,4 @@ // <<< end of configuration section >>> #endif // __CIRCULAR_QUEUE_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/dmadrv_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/dmadrv_config.h index ed105e4f3..dd58324d7 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/dmadrv_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/dmadrv_config.h @@ -24,3 +24,4 @@ // <<< end of configuration section >>> #endif // DMADRV_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/nvm3_default_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/nvm3_default_config.h index 2bf415f94..95cdbb7f5 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/nvm3_default_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/nvm3_default_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif // NVM3_DEFAULT_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/psa_crypto_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/psa_crypto_config.h index 773ce99e0..a35aba2be 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/psa_crypto_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/psa_crypto_config.h @@ -25,7 +25,7 @@ // gracefully in case an application opens more than its declared amount of // keys, thereby precluding the stack from functioning. // Default: 4 -#define SL_PSA_KEY_USER_SLOT_COUNT (4) +#define SL_PSA_KEY_USER_SLOT_COUNT (4) // Maximum User Persistent PSA Key Count <0-1024> // Maximum amount of keys (or other files) that can be stored persistently @@ -54,7 +54,7 @@ // is changed, may cause previously stored keys/files to become inaccessible // ITS should be cleared and all files need to be stored again. // Default: 128 -#define SL_PSA_ITS_USER_MAX_FILES (128) +#define SL_PSA_ITS_USER_MAX_FILES (128) // Enable V1 Format Support For ITS Files <0-1> // Devices that used PSA ITS together with gecko_sdk_3.1.x or earlier @@ -111,7 +111,7 @@ // It is recommended to only use the PUF key for deriving further key // material. // Default: PSA_ALG_PBKDF2_AES_CMAC_PRF_128 -#define SL_CRYPTOACC_BUILTIN_KEY_PUF_ALG (PSA_ALG_PBKDF2_AES_CMAC_PRF_128) +#define SL_CRYPTOACC_BUILTIN_KEY_PUF_ALG (PSA_ALG_PBKDF2_AES_CMAC_PRF_128) #endif // SL_CRYPTOACC_BUILTIN_KEY_PUF_ALG // @@ -133,7 +133,7 @@ // to be included in the project. // // Default: 0 -#define SL_VSE_BUFFER_TRNG_DATA_DURING_SLEEP (0) +#define SL_VSE_BUFFER_TRNG_DATA_DURING_SLEEP (0) // Number of random words to buffer before putting the device to sleep <1-63> // This option can be used to decrease the amount of random words that @@ -158,17 +158,17 @@ // Sub-files #if defined(SLI_PSA_CONFIG_AUTOGEN_OVERRIDE_FILE) - #include SLI_PSA_CONFIG_AUTOGEN_OVERRIDE_FILE +#include SLI_PSA_CONFIG_AUTOGEN_OVERRIDE_FILE #else - #include "sli_psa_config_autogen.h" +#include "sli_psa_config_autogen.h" #endif #if defined(TFM_CONFIG_SL_SECURE_LIBRARY) - #include "sli_psa_tfm_translation.h" +#include "sli_psa_tfm_translation.h" #endif #if SL_MBEDTLS_DRIVERS_ENABLED - #include "sli_psa_acceleration.h" +#include "sli_psa_acceleration.h" #endif #include "sli_psa_builtin_config_autogen.h" diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_802154_radio_priority_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_802154_radio_priority_config.h index 77334ba2c..cc09e8ca9 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_802154_radio_priority_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_802154_radio_priority_config.h @@ -55,3 +55,4 @@ // <<< end of configuration section >>> #endif //__SL_802154_RADIO_PRIORITY_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_bgapi_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_bgapi_config.h index 1ae43b6b5..522d1c904 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_bgapi_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_bgapi_config.h @@ -41,3 +41,4 @@ // <<< end of configuration section >>> #endif // SL_BGAPI_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_bluetooth_advertiser_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_bluetooth_advertiser_config.h index 00163cd9a..7cac58bfe 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_bluetooth_advertiser_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_bluetooth_advertiser_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_bluetooth_connection_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_bluetooth_common_config.h similarity index 60% rename from board-support/efr32/efr32mg24/BRD4186A/config/sl_bluetooth_connection_config.h rename to board-support/efr32/efr32mg24/BRD4187C/config/sl_bluetooth_common_config.h index 73a382509..55c3749d5 100644 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_bluetooth_connection_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_bluetooth_common_config.h @@ -1,9 +1,9 @@ /***************************************************************************//** - * @file - * @brief Bluetooth Connection configuration + * @file sl_bluetooth_common_config.h + * @brief Bluetooth Common configuration ******************************************************************************* * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com ******************************************************************************* * * SPDX-License-Identifier: Zlib @@ -28,21 +28,26 @@ * ******************************************************************************/ -#ifndef SL_BT_CONNECTION_CONFIG_H -#define SL_BT_CONNECTION_CONFIG_H +#ifndef SL_BLUETOOTH_COMMON_CONFIG_H +#define SL_BLUETOOTH_COMMON_CONFIG_H // <<< Use Configuration Wizard in Context Menu >>> -// Max number of connections reserved for user <0-32> -// Default: 4 -// Define the number of connections the application needs. -#define SL_BT_CONFIG_MAX_CONNECTIONS (4) - -// Preferred maximum TX payload octets <27-251> -// Default: 251 -// Define the preferred maximum TX payload octets that will be used on connections. -// This value is set to the controller as the default suggested data length when -// Bluetooth stack is started. -#define SL_BT_CONFIG_CONNECTION_DATA_LENGTH (251) -// <<< end of configuration section >>> +// Bluetooth Common Configuration + +// Buffer memory size for Bluetooth +// Default: 3150 +// Define the buffer memory size for buffering data over Bluetooth connections, advertising +// and scanning. The default value is an estimation for achieving adequate throughput +// and supporting multiple simultaneous connections. Consider increasing this value for +// higher data throughput over connections, advertising or scanning long advertisement data. +#ifndef SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE +#define SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE (3150) #endif + +// Bluetooth Common Configuration + +// <<< end of configuration section >>> + +#endif // SL_BLUETOOTH_COMMON_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_bluetooth_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_bluetooth_config.h index 93bfbbcc4..cfaaef06d 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_bluetooth_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_bluetooth_config.h @@ -66,6 +66,9 @@ // advertising and scanning. The default value is an estimation for achieving adequate throughput // and supporting multiple simultaneous connections. Consider increasing this value for // higher data throughput over connections, advertising or scanning long advertisement data. +// NOTE: SL_BT_CONFIG_BUFFER_SIZE is deprecated in Simplicity SDK Suite v2026.6.0 and marked +// for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONFIG_BUFFER_SIZE is replaced by +// SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #define SL_BT_CONFIG_BUFFER_SIZE (3150) // Enable using a custom Bluetooth address stored in NVM3 @@ -124,11 +127,23 @@ // A negative value indicates some power loss in the path. For example, // with radiated TX power set to +10 dBm and this configuration to -10 // (i.e., 1 dBm loss), the transmitter output power will be set to +11 dBm. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_TX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_TX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_TX (0) // RF RX path gain in 0.1dBm unit // Default: 0 // RX RF path gain is used to compensate the RSSI reports from the Bluetooth Stack. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_RX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_RX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_RX (0) // End RF Path @@ -161,8 +176,6 @@ #include "sl_bt_stack_config.h" #include "sl_bgapi_config.h" // For SL_BGAPI_MAX_PAYLOAD_SIZE -// NOTE: Struct sl_btctrl_ll_priorities is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// The Link Layer scheduler priority configuration is initialized via the Bluetooth Low Energy Controller component. #define SL_BT_CONFIG_DEFAULT \ { \ .config_flags = SL_BT_CONFIG_FLAGS, \ @@ -179,3 +192,4 @@ } #endif // SL_BLUETOOTH_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_bluetooth_connection_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_bluetooth_connection_config.h index 73a382509..08bc34759 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_bluetooth_connection_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_bluetooth_connection_config.h @@ -46,3 +46,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_bt_rtos_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_bt_rtos_config.h index b80c07967..fec091919 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_bt_rtos_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_bt_rtos_config.h @@ -42,3 +42,4 @@ #endif #endif // SL_BT_RTOS_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_bt_rtos_config_s2.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_bt_rtos_config_s2.h index eb4fe3ea2..bc4c37420 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_bt_rtos_config_s2.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_bt_rtos_config_s2.h @@ -82,3 +82,4 @@ // <<< end of configuration section >>> #endif // SL_BT_RTOS_CONFIG_S2_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_btctrl_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_btctrl_config.h index 403df1ffe..8dfdb6281 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_btctrl_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_btctrl_config.h @@ -7,7 +7,10 @@ // Bluetooth Controller Buffer Memory // Default: SL_BT_CONTROLLER_BUFFER_MEMORY -// Define the Amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// Define the amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// NOTE: SL_BT_CONTROLLER_BUFFER_MEMORY is deprecated in Simplicity SDK Suite v2026.6.0 and +// marked for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONTROLLER_BUFFER_MEMORY is +// replaced by SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #ifndef SL_BT_CONTROLLER_BUFFER_MEMORY #define SL_BT_CONTROLLER_BUFFER_MEMORY (8192) #endif @@ -64,7 +67,7 @@ #define SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE (0) #endif -// Minimum radiated TX power level in 0.1dBm unit +// Minimum radiated TX power level in 0.1dBm units // Default: 0 // Define the minimum radiated TX power level. // If the configured power level is lower than what the radio supports, the minimum supported level will be used. @@ -83,7 +86,7 @@ #define SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE (0) #endif -// Maximum radiated TX power level in 0.1dBm unit +// Maximum radiated TX power level in 0.1dBm units // Default: 0 // Define the maximum radiated TX power level. // If the configured power level is higher than what the radio supports, the maximum supported level will be used. @@ -97,6 +100,28 @@ // End TX Power Levels +// RF Path + +// TX RF path gain in 0.1dB units +// Default: 0 +// The Bluetooth controller takes TX RF path gain into account when adjusting transmitter +// output power. Power radiated from the antenna then matches the application request. +// A negative value indicates some power loss in the path. For example, +// with radiated TX power set to +10 dBm and this configuration to -10 +// (i.e., 1 dB loss), the transmitter output power will be set to +11 dBm. +#ifndef SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB (0) +#endif + +// RX RF path gain in 0.1dB units +// Default: 0 +// RX RF path gain is used to compensate the RSSI reports received by the Bluetooth controller. +#ifndef SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB (0) +#endif + +// End RF Path + // Bluetooth Controller Configuration for LE Connection // Total transmitted packets threshold for all connections to send the Number Of Completed Packets HCI event to the host <1-255> // Default: 4 @@ -136,16 +161,6 @@ #define SL_BT_CONTROLLER_USE_LEGACY_VENDOR_SPECIFIC_EVENT_CODE (0) #endif -// Adaptive Frequency Hopping operation mode -// Active AFH -// Passive AFH -// Choose between active AFH and passive AFH -// Default: Active AFH -// SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY -#ifndef SL_BT_CONTROLLER_ADAPTIVITY_MODE -#define SL_BT_CONTROLLER_ADAPTIVITY_MODE (SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY) -#endif - // Advertising Configuration // Include TX Power in the extended header of primary extended advertising packets // This is default setting to all advertising sets unless it is specifically overridden by VS_SiliconLabs_Set_Advertising_Config_Bits. @@ -172,3 +187,4 @@ // <<< end of configuration section >>> #endif // SL_BTCTRL_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_btctrl_scheduler_priority_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_btctrl_scheduler_priority_config.h index 0eec28095..fd0e66f83 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_btctrl_scheduler_priority_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_btctrl_scheduler_priority_config.h @@ -146,7 +146,7 @@ // Rail Mapping Window Min // <0-255:1> -// Default: 16 +// Default: 32 // Define the minimum value of RAIL mapping window. // This parameter specifies how task priorities are passed to radio // coexistence and multiprotocol schedulers. @@ -157,17 +157,17 @@ // If coexistence or multiprotocol configuration is not used, then these // parameters have no effect. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 16 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 32 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN // Rail Mapping Window Range // <0-255:1> -// Default: 32 +// Default: 16 // Define the maximum value of the RAIL mapping window. // See SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN for a description of // this parameter. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 32 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 16 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX // PAwR Tx - Min @@ -220,9 +220,9 @@ .conn_max = SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX, \ .init_min = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN, \ .init_max = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX, \ - .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN, \ - .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX \ - - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN), \ + .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX, \ + .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN \ + - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX), \ 0, \ .adv_step = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP, \ .scan_step = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP, \ @@ -233,3 +233,4 @@ } #endif // SL_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_clock_manager_oscillator_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_clock_manager_oscillator_config.h index 0a5450ce5..304497f19 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_clock_manager_oscillator_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_clock_manager_oscillator_config.h @@ -374,3 +374,4 @@ // <<< sl:end pin_tool >>> #endif /* SL_CLOCK_MANAGER_OSCILLATOR_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_clock_manager_tree_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_clock_manager_tree_config.h index 1f6f2a089..1a05181af 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_clock_manager_tree_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_clock_manager_tree_config.h @@ -307,3 +307,4 @@ #endif /* SL_CLOCK_MANAGER_TREE_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_core_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_core_config.h index 27b173d2e..16d372fcf 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_core_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_core_config.h @@ -42,3 +42,4 @@ // <<< end of configuration section >>> #endif // SL_CORE_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_device_init_dcdc_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_device_init_dcdc_config.h index 695e68ec9..9207f138f 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_device_init_dcdc_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_device_init_dcdc_config.h @@ -56,3 +56,4 @@ // <<< end of configuration section >>> #endif // SL_DEVICE_INIT_DCDC_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_gp_interface_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_gp_interface_config.h index fd5aa20ea..0624696f3 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_gp_interface_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_gp_interface_config.h @@ -42,3 +42,4 @@ #define GP_TX_MAX_TIMEOUT_IN_MICRO_SECONDS 5000000 // // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_hfxo_manager_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_hfxo_manager_config.h index d9ccd3c70..87afc3778 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_hfxo_manager_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_hfxo_manager_config.h @@ -54,3 +54,4 @@ #endif /* SL_HFXO_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_main_start_task_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_main_start_task_config.h index 7752c098f..7cc81a4da 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_main_start_task_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_main_start_task_config.h @@ -103,3 +103,4 @@ #endif /* SL_MAIN_START_TASK_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_mbedtls_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_mbedtls_config.h index 7146ba648..104d574ba 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_mbedtls_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_mbedtls_config.h @@ -130,3 +130,4 @@ #include "mbedtls/build_info.h" #endif // SL_MBEDTLS_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_mbedtls_device_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_mbedtls_device_config.h index 33c34c42e..840fabe25 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_mbedtls_device_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_mbedtls_device_config.h @@ -70,3 +70,4 @@ #endif #endif // SL_MBEDTLS_DEVICE_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_memory_manager_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_memory_manager_config.h index 4a16c29fe..02af7ec0c 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_memory_manager_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_memory_manager_config.h @@ -47,6 +47,12 @@ // Default: 1 #define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 +// Enables the double free protection for the pool. +// Setting this configuration to 0 will disable the double free protection for the memory pool. saving ~100 bytes of code. +// This setting has no effect on the memory pools power aware version. +// Default: 1 +#define SL_MEMORY_MANAGER_POOL_DOUBLE_FREE_PROTECTION_ENABLE 1 + // // <<< end of configuration section >>> @@ -58,4 +64,13 @@ // Default: 1 #define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 +// Enables retention statistics (retained size, retained high watermark, bank counts). +// Requires bank-retention hardware on the target; SL_CATALOG_BANK_RETENTION_CONTROL_* is defined only for devices that implement it (not every part or kit). +// Software configuration alone cannot add bank retention where the silicon has no such feature. +// Independent of heap statistics (SL_MEMORY_MANAGER_STATISTICS_API_ENABLE). +// When disabled, retention getters return (size_t)-1 or SL_STATUS_NOT_AVAILABLE. +// Default: 0. +#define SL_MEMORY_MANAGER_STATISTICS_RETENTION_ENABLE 0 + #endif /* SL_MEMORY_MANAGER_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_memory_manager_region_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_memory_manager_region_config.h index bd640b59b..a0a4007e7 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_memory_manager_region_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_memory_manager_region_config.h @@ -49,3 +49,4 @@ // <<< end of configuration section >>> #endif /* SL_MEMORY_MANAGER_REGION_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_openthread_features_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_openthread_features_config.h index a3697f8af..054fb51b4 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_openthread_features_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_openthread_features_config.h @@ -200,24 +200,31 @@ #endif // // IPv6 Limits -// Maximum IPv6 external unicast addresses +// Runtime IPv6 external address pools +// Enable runtime configuration of external unicast and multicast address pools via otIp6Init(). +#ifndef OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +#define OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE 0 +#endif +#if OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +// CLI support for runtime IPv6 external address pools +// Enable `ifconfig init` CLI command for testing otIp6Init() pool configuration. +#ifndef OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE +#define OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE 1 +#endif +// +#else +// Maximum IPv6 external unicast addresses (ignored in runtime mode) // Maximum number of IPv6 unicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS 4 #endif -// Maximum IPv6 external multicast addresses +// Maximum IPv6 external multicast addresses (ignored in runtime mode) // Maximum number of IPv6 multicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS 4 #endif -// Maximum IPv6 address registrations for MTD -// The maximum number of IPv6 address registrations for MTD. -// If left unchanged will default to the value of OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD -// 4 -#ifndef OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER -#define OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER (OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD) #endif // // Jam Detection @@ -286,37 +293,13 @@ #ifndef OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM #define OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM 2 #endif +// Instance-aware platform logging API +#ifndef OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE +#define OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE 0 +#endif +// // // -// Define maximum total source match table entries for both OT and Zigbee. -// In multi-instance builds (SoC or RCP/host), table must support all OT instances + Zigbee. -// For single instance (default), table sized to just OT children. -// This value is used to size all source match tables in both OT and Zigbee code. -// Note: this is purposedly not being setup with CMSIS annotations. -#ifndef RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE -#if SL_ZIGBEE_MAX_END_DEVICE_CHILDREN -// Multipan / DMP case: OT + Zigbee -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - ((OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * (OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM - 1)) \ - + SL_ZIGBEE_MAX_END_DEVICE_CHILDREN) -#else -// Multi-instance OT-only case -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - (OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM) -#endif -#else -// Single-instance OT (SoC / NCP / non-multipan RCP) -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES OPENTHREAD_CONFIG_MLE_MAX_CHILDREN -#endif -#endif -// Spinel Match Table -// Maximum number of spinel source match table entries -// Ensure that this value is the total of the number of openthread children times the number of openthread instances plus the number of Zigbee children. -#ifndef OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES -#define OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#endif -// // OTNS (OpenThread Network Simulator) #ifndef OPENTHREAD_CONFIG_OTNS_ENABLE #define OPENTHREAD_CONFIG_OTNS_ENABLE 0 @@ -379,6 +362,40 @@ #define OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE 1 #endif // +// Vendor Name string +// Vendor Name string +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +#if OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE +// Default: "RD:Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "RD:Silicon Labs" +#else +// Default: "Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "Silicon Labs" +#endif +#endif // OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +// Vendor Model string +// Vendor Model string +// Default: "OpenThread" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL "OpenThread" +#endif +// Vendor SW Version string +// Vendor SW Version string +// Default: "3.1.0.0" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION "3.1.0.0" +#endif +// Vendor App URL string +// Vendor App URL string +// Default: "www.silabs.com" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL "www.silabs.com" +#endif +// Run-time configuration of Vendor Info +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE 1 +#endif +// // Time Synchronization Service #ifndef OPENTHREAD_CONFIG_TIME_SYNC_ENABLE #define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 0 @@ -399,6 +416,11 @@ #define OPENTHREAD_CONFIG_MAC_BEACON_PAYLOAD_PARSING_ENABLE 1 #endif // +// Log crash dump after initialization +#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE +#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 +#endif +// // Radio Driver RX buffers // Maximum number of RX buffers // The maximum number of RX buffers to use in the radio driver. @@ -408,66 +430,7 @@ #endif // // -// Logging -// LOG_OUTPUT -// NONE -// APP -// PLATFORM_DEFINED -// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP -// OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT -#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#endif - -// DYNAMIC_LOG_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE -#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 -#endif - -// Enable Logging -#define OPENTHREAD_FULL_LOGS_ENABLE 0 -#if OPENTHREAD_FULL_LOGS_ENABLE - -// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. -// LOG_LEVEL -// NONE -// CRIT -// WARN -// NOTE -// INFO -// DEBG -// Default: OT_LOG_LEVEL_DEBG -// OT_LOG_LEVEL_DEBG -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL -#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG -#endif -// CLI -#ifndef OPENTHREAD_CONFIG_LOG_CLI -#define OPENTHREAD_CONFIG_LOG_CLI 1 -#endif -// PKT_DUMP -#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP -#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 -#endif -// PLATFORM -#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM -#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 -#endif -// PREPEND_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL -#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 -#endif - -#endif // OPENTHREAD_FULL_LOGS_ENABLE - -// Log crash dump after initialization -#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE -#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 -#endif - -// -// -// // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_FEATURES_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_openthread_log_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_openthread_log_config.h new file mode 100644 index 000000000..420892125 --- /dev/null +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_openthread_log_config.h @@ -0,0 +1,89 @@ +/******************************************************************************* + * @file + * @brief OpenThread log configuration file. + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_OPENTHREAD_LOG_CONFIG_H +#define _SL_OPENTHREAD_LOG_CONFIG_H + +//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- +// Logging +// LOG_OUTPUT +// NONE +// APP +// PLATFORM_DEFINED +// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP +// OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT +#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#endif + +// DYNAMIC_LOG_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE +#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 +#endif + +// Enable Logging +#define OPENTHREAD_FULL_LOGS_ENABLE 0 +#if OPENTHREAD_FULL_LOGS_ENABLE +// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. +// LOG_LEVEL +// NONE +// CRIT +// WARN +// NOTE +// INFO +// DEBG +// Default: OT_LOG_LEVEL_DEBG +// OT_LOG_LEVEL_DEBG +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL +#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG +#endif +// CLI +#ifndef OPENTHREAD_CONFIG_LOG_CLI +#define OPENTHREAD_CONFIG_LOG_CLI 1 +#endif +// PKT_DUMP +#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP +#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 +#endif +// PLATFORM +#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM +#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 +#endif +// PREPEND_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL +#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 +#endif +// +#endif // OPENTHREAD_FULL_LOGS_ENABLE +// +// +// <<< end of configuration section >>> +#endif // _SL_OPENTHREAD_LOG_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_openthread_radio_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_openthread_radio_config.h index 478a72430..1735c91c6 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_openthread_radio_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_openthread_radio_config.h @@ -40,6 +40,11 @@ #define SL_OPENTHREAD_RSSI_AVERAGING_TIME 16 // us // RSSI Average Timeout [us] #define SL_OPENTHREAD_RSSI_AVERAGING_TIMEOUT 300 // us +// Debug Counters Support +#ifndef RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT +#define RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT 0 // Set to 1 to enable debug counters in radio.c +#endif // // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_RADIO_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_openthread_rtos_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_openthread_rtos_config.h index 6dc710fcc..16a2b1709 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_openthread_rtos_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_openthread_rtos_config.h @@ -72,18 +72,10 @@ #define SL_OPENTHREAD_APP_TASK_MEM_SIZE (4608) // OpenThread serial task stack size in bytes <1000-20000> -// Default: 3072 +// Default: 3840 // Defines the stack size of the OpenThread RTOS serial task. The value is in bytes and // and will be word aligned when it is applied at the task creation. -#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3072) - -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread serial task prority -// Default: 16 (CMSIS-RTOS2 osPriorityBelowNormal) -// Defines OpenThread serial task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_SERIAL_TASK_PRIORITY (16) +#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3840) // // App Task @@ -107,3 +99,4 @@ // // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_power_manager_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_power_manager_config.h index 86b9fef27..1c71950d9 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_power_manager_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_power_manager_config.h @@ -98,3 +98,4 @@ #endif /* SL_POWER_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_pa_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_pa_config.h index 6aea4c59d..e4d846db2 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_pa_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_pa_config.h @@ -81,3 +81,4 @@ // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_PA_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_pa_tables_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_pa_tables_config.h index f2407fcfd..c8fa1b8c9 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_pa_tables_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_pa_tables_config.h @@ -45,3 +45,4 @@ #include SL_RAIL_UTIL_PA_TABLE_HEADER #endif // SL_RAIL_UTIL_PA_TABLES_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_power_manager_init_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_power_manager_init_config.h index cbc69f24d..bcc7596c5 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_power_manager_init_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_power_manager_init_config.h @@ -42,3 +42,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_rssi_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_rssi_config.h index 128d705f5..d706e8785 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_rssi_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_rssi_config.h @@ -46,3 +46,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_RSSI_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_sequencer_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_sequencer_config.h index 72b05eb66..706e91c2f 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_sequencer_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_rail_util_sequencer_config.h @@ -44,3 +44,4 @@ extern "C" { #endif #endif // SL_RAIL_UTIL_SEQUENCER_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_simple_button_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_simple_button_config.h index 531f4f208..4cd53a96b 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_simple_button_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_simple_button_config.h @@ -70,3 +70,4 @@ // <<< end of configuration section >>> #endif // SL_SIMPLE_BUTTON_CONFIG_H + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/sl_sleeptimer_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/sl_sleeptimer_config.h index 8344ef5f1..c638bfeed 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/sl_sleeptimer_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/sl_sleeptimer_config.h @@ -52,6 +52,7 @@ // WTIMER // TIMER // Selection of the Timer Peripheral Used by the Sleeptimer +// If BURTC is needed as an EM4 wake-up source, it must not be used by Sleeptimer. #define SL_SLEEPTIMER_PERIPHERAL SL_SLEEPTIMER_PERIPHERAL_DEFAULT // TIMER/WTIMER Instance Used by Sleeptimer (not applicable for other peripherals) @@ -80,3 +81,4 @@ #endif /* SLEEPTIMER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg24/BRD4187C/config/uartdrv_config.h b/board-support/efr32/efr32mg24/BRD4187C/config/uartdrv_config.h index f41b347e1..b0fc7f703 100644 --- a/board-support/efr32/efr32mg24/BRD4187C/config/uartdrv_config.h +++ b/board-support/efr32/efr32mg24/BRD4187C/config/uartdrv_config.h @@ -121,3 +121,4 @@ /** @} (end addtogroup uartdrv) */ #endif /* __SILICON_LABS_UARTDRV_CONFIG_H__ */ + diff --git a/board-support/efr32/efr32mg26/BRD2608A/autogen/gatt_db.h b/board-support/efr32/efr32mg26/BRD2608A/autogen/gatt_db.h index c179e6b28..b3a2e67f9 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/autogen/gatt_db.h +++ b/board-support/efr32/efr32mg26/BRD2608A/autogen/gatt_db.h @@ -5,10 +5,6 @@ #ifndef __GATT_DB_H #define __GATT_DB_H -#if __cplusplus -extern "C" { -#endif - #include "sli_bt_gattdb_def.h" extern const sli_bt_gattdb_t gattdb; @@ -31,8 +27,5 @@ extern const sli_bt_gattdb_t gattdb; #define gattdb_CHIPoBLEChar_Tx_len 247 #define gattdb_CHIPoBLEChar_C3_len 512 -#if __cplusplus -} -#endif #endif // __GATT_DB_H diff --git a/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_bluetooth.c b/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_bluetooth.c index 0a5f1a969..0cf47b680 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_bluetooth.c +++ b/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_bluetooth.c @@ -76,13 +76,13 @@ void sl_bt_step(void) // Check the length of the next event, if any, and verify that the application // can process it. To prevent data loss, the event will be kept in the stack's // queue if the application cannot process it at the moment. - size_t event_len = sli_bgapi_device_peek_event_len(&sli_bt_bgapi_device); + size_t event_len = sli_bgapi_device_peek_event_len(sli_bt_bgapi_device); if ((event_len == 0) || (!sl_bt_can_process_event(event_len))) { return; } // Pop the event and process it if successful - sl_status_t status = sli_bgapi_device_pop_event(&sli_bt_bgapi_device, + sl_status_t status = sli_bgapi_device_pop_event(sli_bt_bgapi_device, sizeof(evt), &evt); diff --git a/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_component_catalog.h b/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_component_catalog.h index f114ff7c8..ae3eb12b4 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_component_catalog.h +++ b/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_component_catalog.h @@ -4,7 +4,9 @@ // APIs present in project #define SL_CATALOG_BGAPI_PROTOCOL_PRESENT #define SL_CATALOG_BGAPI_PROTOCOL_RTOS_ADAPTATION_PRESENT +#define SL_CATALOG_BLUETOOTH_COMMON_PRESENT #define SL_CATALOG_BLUETOOTH_CONFIGURATION_PRESENT +#define SL_CATALOG_BLUETOOTH_CRYPTO_LIB_PSA_PRESENT #define SL_CATALOG_BLUETOOTH_CTE_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_FEATURE_ADVERTISER_PRESENT #define SL_CATALOG_BLUETOOTH_FEATURE_CONNECTION_PRESENT @@ -25,7 +27,9 @@ #define SL_CATALOG_CPP_SUPPORT_PRESENT #define SL_CATALOG_DEVICE_INIT_PRESENT #define SL_CATALOG_DEVICE_INIT_DCDC_PRESENT +#define SL_CATALOG_DMA_MANAGER_PRESENT #define SL_CATALOG_EMLIB_CORE_PRESENT +#define SL_CATALOG_EMLIB_GPIO_PRESENT #define SL_CATALOG_EMLIB_RMU_PRESENT #define SL_CATALOG_FREERTOS_KERNEL_PRESENT #define SL_CATALOG_KERNEL_PRESENT @@ -52,7 +56,7 @@ #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_SEGGER_RTT_PRESENT #define SL_CATALOG_BTN0_PRESENT @@ -67,10 +71,23 @@ #define SL_CATALOG_SIMPLE_LED_LED1_PRESENT #define SL_CATALOG_SL_CORE_PRESENT #define SL_CATALOG_SL_MAIN_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_COMPATIBLE_PA_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_PA_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_SEQUENCER_PRESENT +#define SL_CATALOG_RAIL_UTIL_SEQUENCER_PRESENT #define SL_CATALOG_SLEEPTIMER_PRESENT #define SL_CATALOG_SLI_PROTOCOL_CRYPTO_PRESENT #if defined(CONFIG_ENABLE_UART) #define SL_CATALOG_UARTDRV_EUSART_PRESENT -#endif +#define SL_CATALOG_OPENTHREAD_UART_PRESENT +#endif // CONFIG_ENABLE_UART #endif // SL_COMPONENT_CATALOG_H diff --git a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_i2cspm_instances.h b/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_dma_manager_instances.c similarity index 68% rename from board-support/efr32/efr32mg24/BRD4186A/autogen/sl_i2cspm_instances.h rename to board-support/efr32/efr32mg26/BRD2608A/autogen/sl_dma_manager_instances.c index 41ff115bf..f4339b2ed 100644 --- a/board-support/efr32/efr32mg24/BRD4186A/autogen/sl_i2cspm_instances.h +++ b/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_dma_manager_instances.c @@ -1,9 +1,9 @@ /***************************************************************************//** * @file - * @brief I2C simple poll-based master mode driver instances + * @brief DMA Manager Instances Initialization. ******************************************************************************* * # License - * Copyright 2020 Silicon Laboratories Inc. www.silabs.com + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com ******************************************************************************* * * SPDX-License-Identifier: Zlib @@ -27,26 +27,25 @@ * 3. This notice may not be removed or altered from any source distribution. * ******************************************************************************/ - -#ifndef SL_I2CSPM_INSTANCES_H -#define SL_I2CSPM_INSTANCES_H -#ifdef __cplusplus -extern "C" { -#endif +#include "sl_dma_manager_instances.h" +#include "sl_dma_manager.h" +#include "sl_device_peripheral.h" -#include "sl_i2cspm.h" -#define SL_I2CSPM_SENSOR_PRESENT +sl_dma_handle_t sl_dma_handle_ldma0; -extern sl_i2cspm_t *sl_i2cspm_sensor; +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + ******************************************************************************/ +void sl_dma_manager_instances_init(void) +{ -void sl_i2cspm_init_instances(void); + // Initialize DMA Manager instance: LDMA0 + sl_dma_manager_init(&sl_dma_handle_ldma0, SL_PERIPHERAL_DMA_LDMA0); -#ifdef __cplusplus } -#endif -#endif // SL_I2CSPM_INSTANCES_H + diff --git a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_simple_led_instances.h b/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_dma_manager_instances.h similarity index 54% rename from board-support/efr32/efr32mg24/BRD2601B/autogen/sl_simple_led_instances.h rename to board-support/efr32/efr32mg26/BRD2608A/autogen/sl_dma_manager_instances.h index 928fbe942..1580ad2b2 100644 --- a/board-support/efr32/efr32mg24/BRD2601B/autogen/sl_simple_led_instances.h +++ b/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_dma_manager_instances.h @@ -1,9 +1,9 @@ /***************************************************************************//** * @file - * @brief LED Driver Instances + * @brief DMA Manager Instances API. ******************************************************************************* * # License - * Copyright 2019 Silicon Laboratories Inc. www.silabs.com + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com ******************************************************************************* * * SPDX-License-Identifier: Zlib @@ -28,27 +28,44 @@ * ******************************************************************************/ -#ifndef SL_SIMPLE_LED_INSTANCES_H -#define SL_SIMPLE_LED_INSTANCES_H +#ifndef SL_DMA_MANAGER_INSTANCES_H +#define SL_DMA_MANAGER_INSTANCES_H + +#include "sl_dma_manager.h" #ifdef __cplusplus extern "C" { #endif -#include "sl_simple_led.h" +/***************************************************************************//** + * @addtogroup dma_manager DMA Manager + * @{ + ******************************************************************************/ + -extern const sl_led_t sl_led_led0; -extern const sl_led_t sl_led_led1; -extern const sl_led_t *sl_simple_led_array[]; +extern sl_dma_handle_t sl_dma_handle_ldma0; -#define SL_SIMPLE_LED_COUNT 2 -#define SL_SIMPLE_LED_INSTANCE(n) (sl_simple_led_array[n]) -void sl_simple_led_init_instances(void); + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + * + * @details This function initializes all DMA Manager instances that have been + * configured through the component system. Each instance corresponds + * to a DMA peripheral (e.g., LDMA0, LDMA1). + * + * @note This function is typically called automatically during system + * initialization when the dma_manager_init component is included + * in the project. + ******************************************************************************/ +void sl_dma_manager_instances_init(void); + +/** @} (end addtogroup dma_manager) */ #ifdef __cplusplus } #endif -#endif // SL_SIMPLE_LED_INIT_H +#endif // SL_DMA_MANAGER_INSTANCES_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_event_handler.c b/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_event_handler.c index 357a278f8..ad03d05c5 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_event_handler.c +++ b/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_event_handler.c @@ -5,7 +5,6 @@ #include "sl_hfxo_manager.h" #include "sl_rail_util_compatible_pa.h" #if !(defined(SLI_SI91X_ENABLE_BLE) && SLI_SI91X_ENABLE_BLE) -#include "sl_bluetooth.h" #include "sl_rail_util_power_manager_init.h" #endif // !SLI_SI91X_ENABLE_BLE #include "sl_rail_util_power_manager_init.h" @@ -14,6 +13,7 @@ #include "btl_interface.h" #include "sl_board_control.h" #include "platform-efr32.h" +#include "sl_dma_manager_instances.h" #include "sl_bt_rtos_adaptation.h" #include "sl_bluetooth.h" #include "sl_debug_swo.h" @@ -70,6 +70,7 @@ void sl_platform_init(void) sl_hfxo_manager_init_hardware(); sl_board_init(); bootloader_init(); + sl_dma_manager_instances_init(); nvm3_initDefault(); } diff --git a/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_simple_led_instances.h b/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_simple_led_instances.h index 928fbe942..08c8291ae 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_simple_led_instances.h +++ b/board-support/efr32/efr32mg26/BRD2608A/autogen/sl_simple_led_instances.h @@ -31,10 +31,6 @@ #ifndef SL_SIMPLE_LED_INSTANCES_H #define SL_SIMPLE_LED_INSTANCES_H -#ifdef __cplusplus -extern "C" { -#endif - #include "sl_simple_led.h" extern const sl_led_t sl_led_led0; @@ -47,8 +43,4 @@ extern const sl_led_t *sl_simple_led_array[]; void sl_simple_led_init_instances(void); -#ifdef __cplusplus -} -#endif - #endif // SL_SIMPLE_LED_INIT_H diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/app_properties_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/app_properties_config.h index 6a6b97666..34418403f 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/app_properties_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/app_properties_config.h @@ -63,3 +63,4 @@ // #endif // APP_PROPERTIES_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/btconf/gatt_configuration.btconf b/board-support/efr32/efr32mg26/BRD2608A/config/btconf/gatt_configuration.btconf deleted file mode 100644 index 4d1efd972..000000000 --- a/board-support/efr32/efr32mg26/BRD2608A/config/btconf/gatt_configuration.btconf +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - Abstract: The generic_access service contains generic information about the device. All available Characteristics are readonly. - - - - - Empty Example - - - - - - - - - Abstract: The external appearance of this device. The values are composed of a category (10-bits) and sub-categories (6-bits). - 0000 - - - - - - - - - Abstract: The Device Information Service exposes manufacturer and/or vendor information about a device. Summary: This service exposes manufacturer information about a device. The Device Information Service is instantiated as a Primary Service. Only one instance of the Device Information Service is exposed on a device. - - - - Abstract: The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device. - Silicon Labs - - - - - - - - Abstract: The value of this characteristic is a UTF-8 string representing the model number assigned by the device vendor. - Blue Gecko - - - - - - - - Abstract: The SYSTEM ID characteristic consists of a structure with two fields. The first field are the LSOs and the second field contains the MSOs. This is a 64-bit structure which consists of a 40-bit manufacturer-defined identifier concatenated with a 24 bit unique Organizationally Unique Identifier (OUI). The OUI is issued by the IEEE Registration Authority (http://standards.ieee.org/regauth/index.html) and is required to be used in accordance with IEEE Standard 802-2001.6 while the least significant 40 bits are manufacturer defined. If System ID generated based on a Bluetooth Device Address, it is required to be done as follows. System ID and the Bluetooth Device Address have a very similar structure: a Bluetooth Device Address is 48 bits in length and consists of a 24 bit Company Assigned Identifier (manufacturer defined identifier) concatenated with a 24 bit Company Identifier (OUI). In order to encapsulate a Bluetooth Device Address as System ID, the Company Identifier is concatenated with 0xFFFE followed by the Company Assigned Identifier of the Bluetooth Address. For more guidelines related to EUI-64, refer to http://standards.ieee.org/develop/regauth/tut/eui64.pdf. Examples: If the system ID is based of a Bluetooth Device Address with a Company Identifier (OUI) is 0x123456 and the Company Assigned Identifier is 0x9ABCDE, then the System Identifier is required to be 0x123456FFFE9ABCDE. - 000102030405 - - - - - - - - - Custom service - - - - Custom characteristic - 00 - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/btl_interface_cfg.h b/board-support/efr32/efr32mg26/BRD2608A/config/btl_interface_cfg.h new file mode 100644 index 000000000..fc17ccfff --- /dev/null +++ b/board-support/efr32/efr32mg26/BRD2608A/config/btl_interface_cfg.h @@ -0,0 +1,64 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_H +#define BTL_INTERFACE_CFG_H + +#if !defined(BOOTLOADER_APPLOADER) + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_1) +#include "btl_interface_cfg_s2c1.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_2) +#include "btl_interface_cfg_s2c2.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_3) +#include "btl_interface_cfg_s2c3.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_4) +#include "btl_interface_cfg_s2c4.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_5) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_6) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_8) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_9) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_13) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_11) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif +#endif// !BOOTLOADER_APPLOADER + +#endif // BTL_INTERFACE_CFG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/buffer_pool_allocator_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/buffer_pool_allocator_config.h index 2c3fd2e67..9a96fedf3 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/buffer_pool_allocator_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/buffer_pool_allocator_config.h @@ -27,3 +27,4 @@ // <<< end of configuration section >>> #endif // __BUFFER_POOL_ALLOCATOR_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/circular_queue_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/circular_queue_config.h index 81a7173d6..fe1ba75d3 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/circular_queue_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/circular_queue_config.h @@ -21,3 +21,4 @@ // <<< end of configuration section >>> #endif // __CIRCULAR_QUEUE_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/dmadrv_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/dmadrv_config.h index ed105e4f3..dd58324d7 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/dmadrv_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/dmadrv_config.h @@ -24,3 +24,4 @@ // <<< end of configuration section >>> #endif // DMADRV_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/nvm3_default_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/nvm3_default_config.h index 2bf415f94..95cdbb7f5 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/nvm3_default_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/nvm3_default_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif // NVM3_DEFAULT_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_802154_radio_priority_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_802154_radio_priority_config.h index 77334ba2c..cc09e8ca9 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_802154_radio_priority_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_802154_radio_priority_config.h @@ -55,3 +55,4 @@ // <<< end of configuration section >>> #endif //__SL_802154_RADIO_PRIORITY_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_bgapi_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_bgapi_config.h index 1ae43b6b5..522d1c904 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_bgapi_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_bgapi_config.h @@ -41,3 +41,4 @@ // <<< end of configuration section >>> #endif // SL_BGAPI_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_bluetooth_advertiser_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_bluetooth_advertiser_config.h index 00163cd9a..7cac58bfe 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_bluetooth_advertiser_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_bluetooth_advertiser_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/efr32mg24/BRD4186A/config/sl_bgapi_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_bluetooth_common_config.h similarity index 60% rename from board-support/efr32/efr32mg24/BRD4186A/config/sl_bgapi_config.h rename to board-support/efr32/efr32mg26/BRD2608A/config/sl_bluetooth_common_config.h index 1ae43b6b5..55c3749d5 100644 --- a/board-support/efr32/efr32mg24/BRD4186A/config/sl_bgapi_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_bluetooth_common_config.h @@ -1,9 +1,9 @@ /***************************************************************************//** - * @file - * @brief BGAPI Protocol configuration + * @file sl_bluetooth_common_config.h + * @brief Bluetooth Common configuration ******************************************************************************* * # License - * Copyright 2024 Silicon Laboratories Inc. www.silabs.com + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com ******************************************************************************* * * SPDX-License-Identifier: Zlib @@ -28,16 +28,26 @@ * ******************************************************************************/ -#ifndef SL_BGAPI_CONFIG_H -#define SL_BGAPI_CONFIG_H +#ifndef SL_BLUETOOTH_COMMON_CONFIG_H +#define SL_BLUETOOTH_COMMON_CONFIG_H // <<< Use Configuration Wizard in Context Menu >>> -// The maximum BGAPI payload size <256-2047> -// Default: 256 -// Define the maximum payload size for BGAPI commands, responses, and events. The setting impacts all protocol stacks that use the BGAPI, i.e. Bluetooth host and Bluetooth mesh. -#define SL_BGAPI_MAX_PAYLOAD_SIZE (256) +// Bluetooth Common Configuration + +// Buffer memory size for Bluetooth +// Default: 3150 +// Define the buffer memory size for buffering data over Bluetooth connections, advertising +// and scanning. The default value is an estimation for achieving adequate throughput +// and supporting multiple simultaneous connections. Consider increasing this value for +// higher data throughput over connections, advertising or scanning long advertisement data. +#ifndef SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE +#define SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE (3150) +#endif + +// Bluetooth Common Configuration // <<< end of configuration section >>> -#endif // SL_BGAPI_CONFIG_H +#endif // SL_BLUETOOTH_COMMON_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_bluetooth_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_bluetooth_config.h index 93bfbbcc4..cfaaef06d 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_bluetooth_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_bluetooth_config.h @@ -66,6 +66,9 @@ // advertising and scanning. The default value is an estimation for achieving adequate throughput // and supporting multiple simultaneous connections. Consider increasing this value for // higher data throughput over connections, advertising or scanning long advertisement data. +// NOTE: SL_BT_CONFIG_BUFFER_SIZE is deprecated in Simplicity SDK Suite v2026.6.0 and marked +// for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONFIG_BUFFER_SIZE is replaced by +// SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #define SL_BT_CONFIG_BUFFER_SIZE (3150) // Enable using a custom Bluetooth address stored in NVM3 @@ -124,11 +127,23 @@ // A negative value indicates some power loss in the path. For example, // with radiated TX power set to +10 dBm and this configuration to -10 // (i.e., 1 dBm loss), the transmitter output power will be set to +11 dBm. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_TX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_TX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_TX (0) // RF RX path gain in 0.1dBm unit // Default: 0 // RX RF path gain is used to compensate the RSSI reports from the Bluetooth Stack. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_RX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_RX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_RX (0) // End RF Path @@ -161,8 +176,6 @@ #include "sl_bt_stack_config.h" #include "sl_bgapi_config.h" // For SL_BGAPI_MAX_PAYLOAD_SIZE -// NOTE: Struct sl_btctrl_ll_priorities is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// The Link Layer scheduler priority configuration is initialized via the Bluetooth Low Energy Controller component. #define SL_BT_CONFIG_DEFAULT \ { \ .config_flags = SL_BT_CONFIG_FLAGS, \ @@ -179,3 +192,4 @@ } #endif // SL_BLUETOOTH_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_bluetooth_connection_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_bluetooth_connection_config.h index 73a382509..08bc34759 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_bluetooth_connection_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_bluetooth_connection_config.h @@ -46,3 +46,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_bt_rtos_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_bt_rtos_config.h index b80c07967..fec091919 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_bt_rtos_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_bt_rtos_config.h @@ -42,3 +42,4 @@ #endif #endif // SL_BT_RTOS_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_bt_rtos_config_s2.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_bt_rtos_config_s2.h index eb4fe3ea2..bc4c37420 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_bt_rtos_config_s2.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_bt_rtos_config_s2.h @@ -82,3 +82,4 @@ // <<< end of configuration section >>> #endif // SL_BT_RTOS_CONFIG_S2_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_btctrl_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_btctrl_config.h index 403df1ffe..8dfdb6281 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_btctrl_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_btctrl_config.h @@ -7,7 +7,10 @@ // Bluetooth Controller Buffer Memory // Default: SL_BT_CONTROLLER_BUFFER_MEMORY -// Define the Amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// Define the amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// NOTE: SL_BT_CONTROLLER_BUFFER_MEMORY is deprecated in Simplicity SDK Suite v2026.6.0 and +// marked for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONTROLLER_BUFFER_MEMORY is +// replaced by SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #ifndef SL_BT_CONTROLLER_BUFFER_MEMORY #define SL_BT_CONTROLLER_BUFFER_MEMORY (8192) #endif @@ -64,7 +67,7 @@ #define SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE (0) #endif -// Minimum radiated TX power level in 0.1dBm unit +// Minimum radiated TX power level in 0.1dBm units // Default: 0 // Define the minimum radiated TX power level. // If the configured power level is lower than what the radio supports, the minimum supported level will be used. @@ -83,7 +86,7 @@ #define SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE (0) #endif -// Maximum radiated TX power level in 0.1dBm unit +// Maximum radiated TX power level in 0.1dBm units // Default: 0 // Define the maximum radiated TX power level. // If the configured power level is higher than what the radio supports, the maximum supported level will be used. @@ -97,6 +100,28 @@ // End TX Power Levels +// RF Path + +// TX RF path gain in 0.1dB units +// Default: 0 +// The Bluetooth controller takes TX RF path gain into account when adjusting transmitter +// output power. Power radiated from the antenna then matches the application request. +// A negative value indicates some power loss in the path. For example, +// with radiated TX power set to +10 dBm and this configuration to -10 +// (i.e., 1 dB loss), the transmitter output power will be set to +11 dBm. +#ifndef SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB (0) +#endif + +// RX RF path gain in 0.1dB units +// Default: 0 +// RX RF path gain is used to compensate the RSSI reports received by the Bluetooth controller. +#ifndef SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB (0) +#endif + +// End RF Path + // Bluetooth Controller Configuration for LE Connection // Total transmitted packets threshold for all connections to send the Number Of Completed Packets HCI event to the host <1-255> // Default: 4 @@ -136,16 +161,6 @@ #define SL_BT_CONTROLLER_USE_LEGACY_VENDOR_SPECIFIC_EVENT_CODE (0) #endif -// Adaptive Frequency Hopping operation mode -// Active AFH -// Passive AFH -// Choose between active AFH and passive AFH -// Default: Active AFH -// SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY -#ifndef SL_BT_CONTROLLER_ADAPTIVITY_MODE -#define SL_BT_CONTROLLER_ADAPTIVITY_MODE (SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY) -#endif - // Advertising Configuration // Include TX Power in the extended header of primary extended advertising packets // This is default setting to all advertising sets unless it is specifically overridden by VS_SiliconLabs_Set_Advertising_Config_Bits. @@ -172,3 +187,4 @@ // <<< end of configuration section >>> #endif // SL_BTCTRL_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_btctrl_scheduler_priority_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_btctrl_scheduler_priority_config.h index 0eec28095..fd0e66f83 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_btctrl_scheduler_priority_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_btctrl_scheduler_priority_config.h @@ -146,7 +146,7 @@ // Rail Mapping Window Min // <0-255:1> -// Default: 16 +// Default: 32 // Define the minimum value of RAIL mapping window. // This parameter specifies how task priorities are passed to radio // coexistence and multiprotocol schedulers. @@ -157,17 +157,17 @@ // If coexistence or multiprotocol configuration is not used, then these // parameters have no effect. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 16 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 32 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN // Rail Mapping Window Range // <0-255:1> -// Default: 32 +// Default: 16 // Define the maximum value of the RAIL mapping window. // See SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN for a description of // this parameter. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 32 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 16 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX // PAwR Tx - Min @@ -220,9 +220,9 @@ .conn_max = SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX, \ .init_min = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN, \ .init_max = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX, \ - .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN, \ - .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX \ - - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN), \ + .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX, \ + .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN \ + - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX), \ 0, \ .adv_step = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP, \ .scan_step = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP, \ @@ -233,3 +233,4 @@ } #endif // SL_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_clock_manager_oscillator_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_clock_manager_oscillator_config.h index a66815036..ca6a4ae07 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_clock_manager_oscillator_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_clock_manager_oscillator_config.h @@ -374,3 +374,4 @@ // <<< sl:end pin_tool >>> #endif /* SL_CLOCK_MANAGER_OSCILLATOR_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_clock_manager_tree_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_clock_manager_tree_config.h index eddb68431..193dec506 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_clock_manager_tree_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_clock_manager_tree_config.h @@ -318,3 +318,4 @@ #endif /* SL_CLOCK_MANAGER_TREE_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_core_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_core_config.h index 27b173d2e..16d372fcf 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_core_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_core_config.h @@ -42,3 +42,4 @@ // <<< end of configuration section >>> #endif // SL_CORE_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_device_init_dcdc_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_device_init_dcdc_config.h index 4fb88397d..a14fce6d9 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_device_init_dcdc_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_device_init_dcdc_config.h @@ -56,3 +56,4 @@ // <<< end of configuration section >>> #endif // SL_DEVICE_INIT_DCDC_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_gp_interface_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_gp_interface_config.h index fd5aa20ea..0624696f3 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_gp_interface_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_gp_interface_config.h @@ -42,3 +42,4 @@ #define GP_TX_MAX_TIMEOUT_IN_MICRO_SECONDS 5000000 // // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_hfxo_manager_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_hfxo_manager_config.h index d9ccd3c70..87afc3778 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_hfxo_manager_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_hfxo_manager_config.h @@ -54,3 +54,4 @@ #endif /* SL_HFXO_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_main_start_task_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_main_start_task_config.h index 7752c098f..7cc81a4da 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_main_start_task_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_main_start_task_config.h @@ -103,3 +103,4 @@ #endif /* SL_MAIN_START_TASK_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_memory_manager_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_memory_manager_config.h index 4a16c29fe..02af7ec0c 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_memory_manager_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_memory_manager_config.h @@ -47,6 +47,12 @@ // Default: 1 #define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 +// Enables the double free protection for the pool. +// Setting this configuration to 0 will disable the double free protection for the memory pool. saving ~100 bytes of code. +// This setting has no effect on the memory pools power aware version. +// Default: 1 +#define SL_MEMORY_MANAGER_POOL_DOUBLE_FREE_PROTECTION_ENABLE 1 + // // <<< end of configuration section >>> @@ -58,4 +64,13 @@ // Default: 1 #define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 +// Enables retention statistics (retained size, retained high watermark, bank counts). +// Requires bank-retention hardware on the target; SL_CATALOG_BANK_RETENTION_CONTROL_* is defined only for devices that implement it (not every part or kit). +// Software configuration alone cannot add bank retention where the silicon has no such feature. +// Independent of heap statistics (SL_MEMORY_MANAGER_STATISTICS_API_ENABLE). +// When disabled, retention getters return (size_t)-1 or SL_STATUS_NOT_AVAILABLE. +// Default: 0. +#define SL_MEMORY_MANAGER_STATISTICS_RETENTION_ENABLE 0 + #endif /* SL_MEMORY_MANAGER_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_memory_manager_region_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_memory_manager_region_config.h index bd640b59b..a0a4007e7 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_memory_manager_region_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_memory_manager_region_config.h @@ -49,3 +49,4 @@ // <<< end of configuration section >>> #endif /* SL_MEMORY_MANAGER_REGION_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_openthread_features_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_openthread_features_config.h index a3697f8af..054fb51b4 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_openthread_features_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_openthread_features_config.h @@ -200,24 +200,31 @@ #endif // // IPv6 Limits -// Maximum IPv6 external unicast addresses +// Runtime IPv6 external address pools +// Enable runtime configuration of external unicast and multicast address pools via otIp6Init(). +#ifndef OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +#define OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE 0 +#endif +#if OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +// CLI support for runtime IPv6 external address pools +// Enable `ifconfig init` CLI command for testing otIp6Init() pool configuration. +#ifndef OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE +#define OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE 1 +#endif +// +#else +// Maximum IPv6 external unicast addresses (ignored in runtime mode) // Maximum number of IPv6 unicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS 4 #endif -// Maximum IPv6 external multicast addresses +// Maximum IPv6 external multicast addresses (ignored in runtime mode) // Maximum number of IPv6 multicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS 4 #endif -// Maximum IPv6 address registrations for MTD -// The maximum number of IPv6 address registrations for MTD. -// If left unchanged will default to the value of OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD -// 4 -#ifndef OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER -#define OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER (OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD) #endif // // Jam Detection @@ -286,37 +293,13 @@ #ifndef OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM #define OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM 2 #endif +// Instance-aware platform logging API +#ifndef OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE +#define OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE 0 +#endif +// // // -// Define maximum total source match table entries for both OT and Zigbee. -// In multi-instance builds (SoC or RCP/host), table must support all OT instances + Zigbee. -// For single instance (default), table sized to just OT children. -// This value is used to size all source match tables in both OT and Zigbee code. -// Note: this is purposedly not being setup with CMSIS annotations. -#ifndef RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE -#if SL_ZIGBEE_MAX_END_DEVICE_CHILDREN -// Multipan / DMP case: OT + Zigbee -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - ((OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * (OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM - 1)) \ - + SL_ZIGBEE_MAX_END_DEVICE_CHILDREN) -#else -// Multi-instance OT-only case -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - (OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM) -#endif -#else -// Single-instance OT (SoC / NCP / non-multipan RCP) -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES OPENTHREAD_CONFIG_MLE_MAX_CHILDREN -#endif -#endif -// Spinel Match Table -// Maximum number of spinel source match table entries -// Ensure that this value is the total of the number of openthread children times the number of openthread instances plus the number of Zigbee children. -#ifndef OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES -#define OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#endif -// // OTNS (OpenThread Network Simulator) #ifndef OPENTHREAD_CONFIG_OTNS_ENABLE #define OPENTHREAD_CONFIG_OTNS_ENABLE 0 @@ -379,6 +362,40 @@ #define OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE 1 #endif // +// Vendor Name string +// Vendor Name string +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +#if OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE +// Default: "RD:Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "RD:Silicon Labs" +#else +// Default: "Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "Silicon Labs" +#endif +#endif // OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +// Vendor Model string +// Vendor Model string +// Default: "OpenThread" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL "OpenThread" +#endif +// Vendor SW Version string +// Vendor SW Version string +// Default: "3.1.0.0" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION "3.1.0.0" +#endif +// Vendor App URL string +// Vendor App URL string +// Default: "www.silabs.com" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL "www.silabs.com" +#endif +// Run-time configuration of Vendor Info +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE 1 +#endif +// // Time Synchronization Service #ifndef OPENTHREAD_CONFIG_TIME_SYNC_ENABLE #define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 0 @@ -399,6 +416,11 @@ #define OPENTHREAD_CONFIG_MAC_BEACON_PAYLOAD_PARSING_ENABLE 1 #endif // +// Log crash dump after initialization +#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE +#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 +#endif +// // Radio Driver RX buffers // Maximum number of RX buffers // The maximum number of RX buffers to use in the radio driver. @@ -408,66 +430,7 @@ #endif // // -// Logging -// LOG_OUTPUT -// NONE -// APP -// PLATFORM_DEFINED -// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP -// OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT -#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#endif - -// DYNAMIC_LOG_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE -#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 -#endif - -// Enable Logging -#define OPENTHREAD_FULL_LOGS_ENABLE 0 -#if OPENTHREAD_FULL_LOGS_ENABLE - -// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. -// LOG_LEVEL -// NONE -// CRIT -// WARN -// NOTE -// INFO -// DEBG -// Default: OT_LOG_LEVEL_DEBG -// OT_LOG_LEVEL_DEBG -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL -#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG -#endif -// CLI -#ifndef OPENTHREAD_CONFIG_LOG_CLI -#define OPENTHREAD_CONFIG_LOG_CLI 1 -#endif -// PKT_DUMP -#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP -#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 -#endif -// PLATFORM -#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM -#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 -#endif -// PREPEND_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL -#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 -#endif - -#endif // OPENTHREAD_FULL_LOGS_ENABLE - -// Log crash dump after initialization -#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE -#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 -#endif - -// -// -// // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_FEATURES_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_openthread_log_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_openthread_log_config.h new file mode 100644 index 000000000..420892125 --- /dev/null +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_openthread_log_config.h @@ -0,0 +1,89 @@ +/******************************************************************************* + * @file + * @brief OpenThread log configuration file. + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_OPENTHREAD_LOG_CONFIG_H +#define _SL_OPENTHREAD_LOG_CONFIG_H + +//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- +// Logging +// LOG_OUTPUT +// NONE +// APP +// PLATFORM_DEFINED +// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP +// OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT +#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#endif + +// DYNAMIC_LOG_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE +#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 +#endif + +// Enable Logging +#define OPENTHREAD_FULL_LOGS_ENABLE 0 +#if OPENTHREAD_FULL_LOGS_ENABLE +// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. +// LOG_LEVEL +// NONE +// CRIT +// WARN +// NOTE +// INFO +// DEBG +// Default: OT_LOG_LEVEL_DEBG +// OT_LOG_LEVEL_DEBG +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL +#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG +#endif +// CLI +#ifndef OPENTHREAD_CONFIG_LOG_CLI +#define OPENTHREAD_CONFIG_LOG_CLI 1 +#endif +// PKT_DUMP +#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP +#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 +#endif +// PLATFORM +#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM +#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 +#endif +// PREPEND_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL +#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 +#endif +// +#endif // OPENTHREAD_FULL_LOGS_ENABLE +// +// +// <<< end of configuration section >>> +#endif // _SL_OPENTHREAD_LOG_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_openthread_radio_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_openthread_radio_config.h index 478a72430..1735c91c6 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_openthread_radio_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_openthread_radio_config.h @@ -40,6 +40,11 @@ #define SL_OPENTHREAD_RSSI_AVERAGING_TIME 16 // us // RSSI Average Timeout [us] #define SL_OPENTHREAD_RSSI_AVERAGING_TIMEOUT 300 // us +// Debug Counters Support +#ifndef RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT +#define RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT 0 // Set to 1 to enable debug counters in radio.c +#endif // // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_RADIO_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_openthread_rtos_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_openthread_rtos_config.h index 6dc710fcc..16a2b1709 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_openthread_rtos_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_openthread_rtos_config.h @@ -72,18 +72,10 @@ #define SL_OPENTHREAD_APP_TASK_MEM_SIZE (4608) // OpenThread serial task stack size in bytes <1000-20000> -// Default: 3072 +// Default: 3840 // Defines the stack size of the OpenThread RTOS serial task. The value is in bytes and // and will be word aligned when it is applied at the task creation. -#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3072) - -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread serial task prority -// Default: 16 (CMSIS-RTOS2 osPriorityBelowNormal) -// Defines OpenThread serial task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_SERIAL_TASK_PRIORITY (16) +#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3840) // // App Task @@ -107,3 +99,4 @@ // // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_power_manager_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_power_manager_config.h index 86b9fef27..1c71950d9 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_power_manager_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_power_manager_config.h @@ -98,3 +98,4 @@ #endif /* SL_POWER_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_pa_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_pa_config.h index fcfe11243..76a717c40 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_pa_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_pa_config.h @@ -81,3 +81,4 @@ // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_PA_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_pa_tables_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_pa_tables_config.h index bd05ea57d..9a895fd24 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_pa_tables_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_pa_tables_config.h @@ -47,3 +47,4 @@ #include SL_RAIL_UTIL_PA_TABLE_HEADER #endif // SL_RAIL_UTIL_PA_TABLES_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_power_manager_init_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_power_manager_init_config.h index cbc69f24d..bcc7596c5 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_power_manager_init_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_power_manager_init_config.h @@ -42,3 +42,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_rssi_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_rssi_config.h index 938227e1d..a0e22c644 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_rssi_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_rssi_config.h @@ -46,3 +46,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_RSSI_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_sequencer_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_sequencer_config.h index 640ef0c0d..02977b219 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_sequencer_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_rail_util_sequencer_config.h @@ -44,3 +44,4 @@ extern "C" { #endif #endif // SL_RAIL_UTIL_SEQUENCER_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_simple_button_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_simple_button_config.h index 531f4f208..4cd53a96b 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_simple_button_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_simple_button_config.h @@ -70,3 +70,4 @@ // <<< end of configuration section >>> #endif // SL_SIMPLE_BUTTON_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/sl_sleeptimer_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/sl_sleeptimer_config.h index 8344ef5f1..c638bfeed 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/sl_sleeptimer_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/sl_sleeptimer_config.h @@ -52,6 +52,7 @@ // WTIMER // TIMER // Selection of the Timer Peripheral Used by the Sleeptimer +// If BURTC is needed as an EM4 wake-up source, it must not be used by Sleeptimer. #define SL_SLEEPTIMER_PERIPHERAL SL_SLEEPTIMER_PERIPHERAL_DEFAULT // TIMER/WTIMER Instance Used by Sleeptimer (not applicable for other peripherals) @@ -80,3 +81,4 @@ #endif /* SLEEPTIMER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD2608A/config/uartdrv_config.h b/board-support/efr32/efr32mg26/BRD2608A/config/uartdrv_config.h index f41b347e1..b0fc7f703 100644 --- a/board-support/efr32/efr32mg26/BRD2608A/config/uartdrv_config.h +++ b/board-support/efr32/efr32mg26/BRD2608A/config/uartdrv_config.h @@ -121,3 +121,4 @@ /** @} (end addtogroup uartdrv) */ #endif /* __SILICON_LABS_UARTDRV_CONFIG_H__ */ + diff --git a/board-support/efr32/efr32mg26/BRD4116A/autogen/gatt_db.h b/board-support/efr32/efr32mg26/BRD4116A/autogen/gatt_db.h index c179e6b28..b3a2e67f9 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/autogen/gatt_db.h +++ b/board-support/efr32/efr32mg26/BRD4116A/autogen/gatt_db.h @@ -5,10 +5,6 @@ #ifndef __GATT_DB_H #define __GATT_DB_H -#if __cplusplus -extern "C" { -#endif - #include "sli_bt_gattdb_def.h" extern const sli_bt_gattdb_t gattdb; @@ -31,8 +27,5 @@ extern const sli_bt_gattdb_t gattdb; #define gattdb_CHIPoBLEChar_Tx_len 247 #define gattdb_CHIPoBLEChar_C3_len 512 -#if __cplusplus -} -#endif #endif // __GATT_DB_H diff --git a/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_bluetooth.c b/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_bluetooth.c index 0a5f1a969..0cf47b680 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_bluetooth.c +++ b/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_bluetooth.c @@ -76,13 +76,13 @@ void sl_bt_step(void) // Check the length of the next event, if any, and verify that the application // can process it. To prevent data loss, the event will be kept in the stack's // queue if the application cannot process it at the moment. - size_t event_len = sli_bgapi_device_peek_event_len(&sli_bt_bgapi_device); + size_t event_len = sli_bgapi_device_peek_event_len(sli_bt_bgapi_device); if ((event_len == 0) || (!sl_bt_can_process_event(event_len))) { return; } // Pop the event and process it if successful - sl_status_t status = sli_bgapi_device_pop_event(&sli_bt_bgapi_device, + sl_status_t status = sli_bgapi_device_pop_event(sli_bt_bgapi_device, sizeof(evt), &evt); diff --git a/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_component_catalog.h b/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_component_catalog.h index ddc382695..e7c2344f5 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_component_catalog.h +++ b/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_component_catalog.h @@ -4,7 +4,9 @@ // APIs present in project #define SL_CATALOG_BGAPI_PROTOCOL_PRESENT #define SL_CATALOG_BGAPI_PROTOCOL_RTOS_ADAPTATION_PRESENT +#define SL_CATALOG_BLUETOOTH_COMMON_PRESENT #define SL_CATALOG_BLUETOOTH_CONFIGURATION_PRESENT +#define SL_CATALOG_BLUETOOTH_CRYPTO_LIB_PSA_PRESENT #define SL_CATALOG_BLUETOOTH_CTE_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_FEATURE_ADVERTISER_PRESENT #define SL_CATALOG_BLUETOOTH_FEATURE_CONNECTION_PRESENT @@ -25,7 +27,9 @@ #define SL_CATALOG_CPP_SUPPORT_PRESENT #define SL_CATALOG_DEVICE_INIT_PRESENT #define SL_CATALOG_DEVICE_INIT_DCDC_PRESENT +#define SL_CATALOG_DMA_MANAGER_PRESENT #define SL_CATALOG_EMLIB_CORE_PRESENT +#define SL_CATALOG_EMLIB_GPIO_PRESENT #define SL_CATALOG_EMLIB_RMU_PRESENT #define SL_CATALOG_FREERTOS_KERNEL_PRESENT #define SL_CATALOG_KERNEL_PRESENT @@ -39,7 +43,7 @@ #ifdef DISPLAY_ENABLED #define SL_CATALOG_MEMLCD_USART_PRESENT #define SL_CATALOG_DMD_MEMLCD_PRESENT -#endif +#endif // DISPLAY_ENABLED #define SL_CATALOG_MEMORY_MANAGER_PRESENT #define SL_CATALOG_MEMORY_PROFILER_API_PRESENT #define SL_CATALOG_MPU_PRESENT @@ -56,7 +60,7 @@ #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_SEGGER_RTT_PRESENT #define SL_CATALOG_BTN0_PRESENT @@ -71,10 +75,23 @@ #define SL_CATALOG_SIMPLE_LED_LED1_PRESENT #define SL_CATALOG_SL_CORE_PRESENT #define SL_CATALOG_SL_MAIN_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_COMPATIBLE_PA_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_PA_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_SEQUENCER_PRESENT +#define SL_CATALOG_RAIL_UTIL_SEQUENCER_PRESENT #define SL_CATALOG_SLEEPTIMER_PRESENT #define SL_CATALOG_SLI_PROTOCOL_CRYPTO_PRESENT #if defined(CONFIG_ENABLE_UART) #define SL_CATALOG_UARTDRV_EUSART_PRESENT -#endif +#define SL_CATALOG_OPENTHREAD_UART_PRESENT +#endif // CONFIG_ENABLE_UART #endif // SL_COMPONENT_CATALOG_H diff --git a/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_dma_manager_instances.c b/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_dma_manager_instances.c new file mode 100644 index 000000000..f4339b2ed --- /dev/null +++ b/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_dma_manager_instances.c @@ -0,0 +1,51 @@ +/***************************************************************************//** + * @file + * @brief DMA Manager Instances Initialization. + ******************************************************************************* + * # License + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_dma_manager_instances.h" +#include "sl_dma_manager.h" +#include "sl_device_peripheral.h" + + + +sl_dma_handle_t sl_dma_handle_ldma0; + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + ******************************************************************************/ +void sl_dma_manager_instances_init(void) +{ + + // Initialize DMA Manager instance: LDMA0 + sl_dma_manager_init(&sl_dma_handle_ldma0, SL_PERIPHERAL_DMA_LDMA0); + +} + + diff --git a/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_dma_manager_instances.h b/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_dma_manager_instances.h new file mode 100644 index 000000000..1580ad2b2 --- /dev/null +++ b/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_dma_manager_instances.h @@ -0,0 +1,71 @@ +/***************************************************************************//** + * @file + * @brief DMA Manager Instances API. + ******************************************************************************* + * # License + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_DMA_MANAGER_INSTANCES_H +#define SL_DMA_MANAGER_INSTANCES_H + +#include "sl_dma_manager.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/***************************************************************************//** + * @addtogroup dma_manager DMA Manager + * @{ + ******************************************************************************/ + + + +extern sl_dma_handle_t sl_dma_handle_ldma0; + + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + * + * @details This function initializes all DMA Manager instances that have been + * configured through the component system. Each instance corresponds + * to a DMA peripheral (e.g., LDMA0, LDMA1). + * + * @note This function is typically called automatically during system + * initialization when the dma_manager_init component is included + * in the project. + ******************************************************************************/ +void sl_dma_manager_instances_init(void); + +/** @} (end addtogroup dma_manager) */ + +#ifdef __cplusplus +} +#endif + +#endif // SL_DMA_MANAGER_INSTANCES_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_event_handler.c b/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_event_handler.c index 733f726cf..539bf96c9 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_event_handler.c +++ b/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_event_handler.c @@ -5,7 +5,6 @@ #include "sl_hfxo_manager.h" #include "sl_rail_util_compatible_pa.h" #if !(defined(SLI_SI91X_ENABLE_BLE) && SLI_SI91X_ENABLE_BLE) -#include "sl_bluetooth.h" #include "sl_rail_util_power_manager_init.h" #endif // !SLI_SI91X_ENABLE_BLE #include "sl_rail_util_power_manager_init.h" @@ -14,6 +13,7 @@ #include "btl_interface.h" #include "sl_board_control.h" #include "platform-efr32.h" +#include "sl_dma_manager_instances.h" #include "sl_bt_rtos_adaptation.h" #include "sl_bluetooth.h" #include "sl_debug_swo.h" @@ -74,6 +74,7 @@ void sl_platform_init(void) sl_hfxo_manager_init_hardware(); sl_board_init(); bootloader_init(); + sl_dma_manager_instances_init(); nvm3_initDefault(); } diff --git a/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_simple_led_instances.h b/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_simple_led_instances.h index 928fbe942..08c8291ae 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_simple_led_instances.h +++ b/board-support/efr32/efr32mg26/BRD4116A/autogen/sl_simple_led_instances.h @@ -31,10 +31,6 @@ #ifndef SL_SIMPLE_LED_INSTANCES_H #define SL_SIMPLE_LED_INSTANCES_H -#ifdef __cplusplus -extern "C" { -#endif - #include "sl_simple_led.h" extern const sl_led_t sl_led_led0; @@ -47,8 +43,4 @@ extern const sl_led_t *sl_simple_led_array[]; void sl_simple_led_init_instances(void); -#ifdef __cplusplus -} -#endif - #endif // SL_SIMPLE_LED_INIT_H diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/app_properties_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/app_properties_config.h index 6a6b97666..34418403f 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/app_properties_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/app_properties_config.h @@ -63,3 +63,4 @@ // #endif // APP_PROPERTIES_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/btconf/gatt_configuration.btconf b/board-support/efr32/efr32mg26/BRD4116A/config/btconf/gatt_configuration.btconf deleted file mode 100644 index 4d1efd972..000000000 --- a/board-support/efr32/efr32mg26/BRD4116A/config/btconf/gatt_configuration.btconf +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - Abstract: The generic_access service contains generic information about the device. All available Characteristics are readonly. - - - - - Empty Example - - - - - - - - - Abstract: The external appearance of this device. The values are composed of a category (10-bits) and sub-categories (6-bits). - 0000 - - - - - - - - - Abstract: The Device Information Service exposes manufacturer and/or vendor information about a device. Summary: This service exposes manufacturer information about a device. The Device Information Service is instantiated as a Primary Service. Only one instance of the Device Information Service is exposed on a device. - - - - Abstract: The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device. - Silicon Labs - - - - - - - - Abstract: The value of this characteristic is a UTF-8 string representing the model number assigned by the device vendor. - Blue Gecko - - - - - - - - Abstract: The SYSTEM ID characteristic consists of a structure with two fields. The first field are the LSOs and the second field contains the MSOs. This is a 64-bit structure which consists of a 40-bit manufacturer-defined identifier concatenated with a 24 bit unique Organizationally Unique Identifier (OUI). The OUI is issued by the IEEE Registration Authority (http://standards.ieee.org/regauth/index.html) and is required to be used in accordance with IEEE Standard 802-2001.6 while the least significant 40 bits are manufacturer defined. If System ID generated based on a Bluetooth Device Address, it is required to be done as follows. System ID and the Bluetooth Device Address have a very similar structure: a Bluetooth Device Address is 48 bits in length and consists of a 24 bit Company Assigned Identifier (manufacturer defined identifier) concatenated with a 24 bit Company Identifier (OUI). In order to encapsulate a Bluetooth Device Address as System ID, the Company Identifier is concatenated with 0xFFFE followed by the Company Assigned Identifier of the Bluetooth Address. For more guidelines related to EUI-64, refer to http://standards.ieee.org/develop/regauth/tut/eui64.pdf. Examples: If the system ID is based of a Bluetooth Device Address with a Company Identifier (OUI) is 0x123456 and the Company Assigned Identifier is 0x9ABCDE, then the System Identifier is required to be 0x123456FFFE9ABCDE. - 000102030405 - - - - - - - - - Custom service - - - - Custom characteristic - 00 - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/btl_interface_cfg.h b/board-support/efr32/efr32mg26/BRD4116A/config/btl_interface_cfg.h new file mode 100644 index 000000000..fc17ccfff --- /dev/null +++ b/board-support/efr32/efr32mg26/BRD4116A/config/btl_interface_cfg.h @@ -0,0 +1,64 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_H +#define BTL_INTERFACE_CFG_H + +#if !defined(BOOTLOADER_APPLOADER) + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_1) +#include "btl_interface_cfg_s2c1.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_2) +#include "btl_interface_cfg_s2c2.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_3) +#include "btl_interface_cfg_s2c3.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_4) +#include "btl_interface_cfg_s2c4.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_5) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_6) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_8) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_9) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_13) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_11) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif +#endif// !BOOTLOADER_APPLOADER + +#endif // BTL_INTERFACE_CFG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/buffer_pool_allocator_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/buffer_pool_allocator_config.h index 2c3fd2e67..9a96fedf3 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/buffer_pool_allocator_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/buffer_pool_allocator_config.h @@ -27,3 +27,4 @@ // <<< end of configuration section >>> #endif // __BUFFER_POOL_ALLOCATOR_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/circular_queue_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/circular_queue_config.h index 81a7173d6..fe1ba75d3 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/circular_queue_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/circular_queue_config.h @@ -21,3 +21,4 @@ // <<< end of configuration section >>> #endif // __CIRCULAR_QUEUE_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/dmadrv_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/dmadrv_config.h index ed105e4f3..dd58324d7 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/dmadrv_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/dmadrv_config.h @@ -24,3 +24,4 @@ // <<< end of configuration section >>> #endif // DMADRV_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/nvm3_default_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/nvm3_default_config.h index 2bf415f94..95cdbb7f5 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/nvm3_default_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/nvm3_default_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif // NVM3_DEFAULT_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_802154_radio_priority_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_802154_radio_priority_config.h index 77334ba2c..cc09e8ca9 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_802154_radio_priority_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_802154_radio_priority_config.h @@ -55,3 +55,4 @@ // <<< end of configuration section >>> #endif //__SL_802154_RADIO_PRIORITY_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_bgapi_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_bgapi_config.h index 1ae43b6b5..522d1c904 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_bgapi_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_bgapi_config.h @@ -41,3 +41,4 @@ // <<< end of configuration section >>> #endif // SL_BGAPI_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_bluetooth_advertiser_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_bluetooth_advertiser_config.h index 00163cd9a..7cac58bfe 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_bluetooth_advertiser_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_bluetooth_advertiser_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_bluetooth_common_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_bluetooth_common_config.h new file mode 100644 index 000000000..55c3749d5 --- /dev/null +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_bluetooth_common_config.h @@ -0,0 +1,53 @@ +/***************************************************************************//** + * @file sl_bluetooth_common_config.h + * @brief Bluetooth Common configuration + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_BLUETOOTH_COMMON_CONFIG_H +#define SL_BLUETOOTH_COMMON_CONFIG_H + +// <<< Use Configuration Wizard in Context Menu >>> + +// Bluetooth Common Configuration + +// Buffer memory size for Bluetooth +// Default: 3150 +// Define the buffer memory size for buffering data over Bluetooth connections, advertising +// and scanning. The default value is an estimation for achieving adequate throughput +// and supporting multiple simultaneous connections. Consider increasing this value for +// higher data throughput over connections, advertising or scanning long advertisement data. +#ifndef SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE +#define SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE (3150) +#endif + +// Bluetooth Common Configuration + +// <<< end of configuration section >>> + +#endif // SL_BLUETOOTH_COMMON_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_bluetooth_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_bluetooth_config.h index 93bfbbcc4..cfaaef06d 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_bluetooth_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_bluetooth_config.h @@ -66,6 +66,9 @@ // advertising and scanning. The default value is an estimation for achieving adequate throughput // and supporting multiple simultaneous connections. Consider increasing this value for // higher data throughput over connections, advertising or scanning long advertisement data. +// NOTE: SL_BT_CONFIG_BUFFER_SIZE is deprecated in Simplicity SDK Suite v2026.6.0 and marked +// for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONFIG_BUFFER_SIZE is replaced by +// SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #define SL_BT_CONFIG_BUFFER_SIZE (3150) // Enable using a custom Bluetooth address stored in NVM3 @@ -124,11 +127,23 @@ // A negative value indicates some power loss in the path. For example, // with radiated TX power set to +10 dBm and this configuration to -10 // (i.e., 1 dBm loss), the transmitter output power will be set to +11 dBm. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_TX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_TX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_TX (0) // RF RX path gain in 0.1dBm unit // Default: 0 // RX RF path gain is used to compensate the RSSI reports from the Bluetooth Stack. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_RX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_RX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_RX (0) // End RF Path @@ -161,8 +176,6 @@ #include "sl_bt_stack_config.h" #include "sl_bgapi_config.h" // For SL_BGAPI_MAX_PAYLOAD_SIZE -// NOTE: Struct sl_btctrl_ll_priorities is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// The Link Layer scheduler priority configuration is initialized via the Bluetooth Low Energy Controller component. #define SL_BT_CONFIG_DEFAULT \ { \ .config_flags = SL_BT_CONFIG_FLAGS, \ @@ -179,3 +192,4 @@ } #endif // SL_BLUETOOTH_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_bluetooth_connection_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_bluetooth_connection_config.h index 73a382509..08bc34759 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_bluetooth_connection_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_bluetooth_connection_config.h @@ -46,3 +46,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_bt_rtos_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_bt_rtos_config.h index b80c07967..fec091919 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_bt_rtos_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_bt_rtos_config.h @@ -42,3 +42,4 @@ #endif #endif // SL_BT_RTOS_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_bt_rtos_config_s2.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_bt_rtos_config_s2.h index eb4fe3ea2..bc4c37420 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_bt_rtos_config_s2.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_bt_rtos_config_s2.h @@ -82,3 +82,4 @@ // <<< end of configuration section >>> #endif // SL_BT_RTOS_CONFIG_S2_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_btctrl_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_btctrl_config.h index 403df1ffe..8dfdb6281 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_btctrl_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_btctrl_config.h @@ -7,7 +7,10 @@ // Bluetooth Controller Buffer Memory // Default: SL_BT_CONTROLLER_BUFFER_MEMORY -// Define the Amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// Define the amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// NOTE: SL_BT_CONTROLLER_BUFFER_MEMORY is deprecated in Simplicity SDK Suite v2026.6.0 and +// marked for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONTROLLER_BUFFER_MEMORY is +// replaced by SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #ifndef SL_BT_CONTROLLER_BUFFER_MEMORY #define SL_BT_CONTROLLER_BUFFER_MEMORY (8192) #endif @@ -64,7 +67,7 @@ #define SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE (0) #endif -// Minimum radiated TX power level in 0.1dBm unit +// Minimum radiated TX power level in 0.1dBm units // Default: 0 // Define the minimum radiated TX power level. // If the configured power level is lower than what the radio supports, the minimum supported level will be used. @@ -83,7 +86,7 @@ #define SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE (0) #endif -// Maximum radiated TX power level in 0.1dBm unit +// Maximum radiated TX power level in 0.1dBm units // Default: 0 // Define the maximum radiated TX power level. // If the configured power level is higher than what the radio supports, the maximum supported level will be used. @@ -97,6 +100,28 @@ // End TX Power Levels +// RF Path + +// TX RF path gain in 0.1dB units +// Default: 0 +// The Bluetooth controller takes TX RF path gain into account when adjusting transmitter +// output power. Power radiated from the antenna then matches the application request. +// A negative value indicates some power loss in the path. For example, +// with radiated TX power set to +10 dBm and this configuration to -10 +// (i.e., 1 dB loss), the transmitter output power will be set to +11 dBm. +#ifndef SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB (0) +#endif + +// RX RF path gain in 0.1dB units +// Default: 0 +// RX RF path gain is used to compensate the RSSI reports received by the Bluetooth controller. +#ifndef SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB (0) +#endif + +// End RF Path + // Bluetooth Controller Configuration for LE Connection // Total transmitted packets threshold for all connections to send the Number Of Completed Packets HCI event to the host <1-255> // Default: 4 @@ -136,16 +161,6 @@ #define SL_BT_CONTROLLER_USE_LEGACY_VENDOR_SPECIFIC_EVENT_CODE (0) #endif -// Adaptive Frequency Hopping operation mode -// Active AFH -// Passive AFH -// Choose between active AFH and passive AFH -// Default: Active AFH -// SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY -#ifndef SL_BT_CONTROLLER_ADAPTIVITY_MODE -#define SL_BT_CONTROLLER_ADAPTIVITY_MODE (SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY) -#endif - // Advertising Configuration // Include TX Power in the extended header of primary extended advertising packets // This is default setting to all advertising sets unless it is specifically overridden by VS_SiliconLabs_Set_Advertising_Config_Bits. @@ -172,3 +187,4 @@ // <<< end of configuration section >>> #endif // SL_BTCTRL_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_btctrl_scheduler_priority_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_btctrl_scheduler_priority_config.h index 0eec28095..fd0e66f83 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_btctrl_scheduler_priority_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_btctrl_scheduler_priority_config.h @@ -146,7 +146,7 @@ // Rail Mapping Window Min // <0-255:1> -// Default: 16 +// Default: 32 // Define the minimum value of RAIL mapping window. // This parameter specifies how task priorities are passed to radio // coexistence and multiprotocol schedulers. @@ -157,17 +157,17 @@ // If coexistence or multiprotocol configuration is not used, then these // parameters have no effect. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 16 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 32 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN // Rail Mapping Window Range // <0-255:1> -// Default: 32 +// Default: 16 // Define the maximum value of the RAIL mapping window. // See SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN for a description of // this parameter. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 32 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 16 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX // PAwR Tx - Min @@ -220,9 +220,9 @@ .conn_max = SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX, \ .init_min = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN, \ .init_max = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX, \ - .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN, \ - .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX \ - - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN), \ + .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX, \ + .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN \ + - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX), \ 0, \ .adv_step = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP, \ .scan_step = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP, \ @@ -233,3 +233,4 @@ } #endif // SL_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_clock_manager_oscillator_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_clock_manager_oscillator_config.h index 42f713dee..7ca725dad 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_clock_manager_oscillator_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_clock_manager_oscillator_config.h @@ -374,3 +374,4 @@ // <<< sl:end pin_tool >>> #endif /* SL_CLOCK_MANAGER_OSCILLATOR_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_clock_manager_tree_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_clock_manager_tree_config.h index eddb68431..193dec506 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_clock_manager_tree_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_clock_manager_tree_config.h @@ -318,3 +318,4 @@ #endif /* SL_CLOCK_MANAGER_TREE_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_core_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_core_config.h index 27b173d2e..16d372fcf 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_core_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_core_config.h @@ -42,3 +42,4 @@ // <<< end of configuration section >>> #endif // SL_CORE_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_device_init_dcdc_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_device_init_dcdc_config.h index 4fb88397d..a14fce6d9 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_device_init_dcdc_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_device_init_dcdc_config.h @@ -56,3 +56,4 @@ // <<< end of configuration section >>> #endif // SL_DEVICE_INIT_DCDC_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_gp_interface_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_gp_interface_config.h index fd5aa20ea..0624696f3 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_gp_interface_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_gp_interface_config.h @@ -42,3 +42,4 @@ #define GP_TX_MAX_TIMEOUT_IN_MICRO_SECONDS 5000000 // // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_hfxo_manager_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_hfxo_manager_config.h index d9ccd3c70..87afc3778 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_hfxo_manager_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_hfxo_manager_config.h @@ -54,3 +54,4 @@ #endif /* SL_HFXO_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_main_start_task_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_main_start_task_config.h index 7752c098f..7cc81a4da 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_main_start_task_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_main_start_task_config.h @@ -103,3 +103,4 @@ #endif /* SL_MAIN_START_TASK_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_memory_manager_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_memory_manager_config.h index 4a16c29fe..02af7ec0c 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_memory_manager_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_memory_manager_config.h @@ -47,6 +47,12 @@ // Default: 1 #define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 +// Enables the double free protection for the pool. +// Setting this configuration to 0 will disable the double free protection for the memory pool. saving ~100 bytes of code. +// This setting has no effect on the memory pools power aware version. +// Default: 1 +#define SL_MEMORY_MANAGER_POOL_DOUBLE_FREE_PROTECTION_ENABLE 1 + // // <<< end of configuration section >>> @@ -58,4 +64,13 @@ // Default: 1 #define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 +// Enables retention statistics (retained size, retained high watermark, bank counts). +// Requires bank-retention hardware on the target; SL_CATALOG_BANK_RETENTION_CONTROL_* is defined only for devices that implement it (not every part or kit). +// Software configuration alone cannot add bank retention where the silicon has no such feature. +// Independent of heap statistics (SL_MEMORY_MANAGER_STATISTICS_API_ENABLE). +// When disabled, retention getters return (size_t)-1 or SL_STATUS_NOT_AVAILABLE. +// Default: 0. +#define SL_MEMORY_MANAGER_STATISTICS_RETENTION_ENABLE 0 + #endif /* SL_MEMORY_MANAGER_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_memory_manager_region_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_memory_manager_region_config.h index bd640b59b..a0a4007e7 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_memory_manager_region_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_memory_manager_region_config.h @@ -49,3 +49,4 @@ // <<< end of configuration section >>> #endif /* SL_MEMORY_MANAGER_REGION_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_openthread_features_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_openthread_features_config.h index a3697f8af..054fb51b4 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_openthread_features_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_openthread_features_config.h @@ -200,24 +200,31 @@ #endif // // IPv6 Limits -// Maximum IPv6 external unicast addresses +// Runtime IPv6 external address pools +// Enable runtime configuration of external unicast and multicast address pools via otIp6Init(). +#ifndef OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +#define OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE 0 +#endif +#if OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +// CLI support for runtime IPv6 external address pools +// Enable `ifconfig init` CLI command for testing otIp6Init() pool configuration. +#ifndef OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE +#define OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE 1 +#endif +// +#else +// Maximum IPv6 external unicast addresses (ignored in runtime mode) // Maximum number of IPv6 unicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS 4 #endif -// Maximum IPv6 external multicast addresses +// Maximum IPv6 external multicast addresses (ignored in runtime mode) // Maximum number of IPv6 multicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS 4 #endif -// Maximum IPv6 address registrations for MTD -// The maximum number of IPv6 address registrations for MTD. -// If left unchanged will default to the value of OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD -// 4 -#ifndef OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER -#define OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER (OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD) #endif // // Jam Detection @@ -286,37 +293,13 @@ #ifndef OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM #define OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM 2 #endif +// Instance-aware platform logging API +#ifndef OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE +#define OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE 0 +#endif +// // // -// Define maximum total source match table entries for both OT and Zigbee. -// In multi-instance builds (SoC or RCP/host), table must support all OT instances + Zigbee. -// For single instance (default), table sized to just OT children. -// This value is used to size all source match tables in both OT and Zigbee code. -// Note: this is purposedly not being setup with CMSIS annotations. -#ifndef RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE -#if SL_ZIGBEE_MAX_END_DEVICE_CHILDREN -// Multipan / DMP case: OT + Zigbee -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - ((OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * (OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM - 1)) \ - + SL_ZIGBEE_MAX_END_DEVICE_CHILDREN) -#else -// Multi-instance OT-only case -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - (OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM) -#endif -#else -// Single-instance OT (SoC / NCP / non-multipan RCP) -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES OPENTHREAD_CONFIG_MLE_MAX_CHILDREN -#endif -#endif -// Spinel Match Table -// Maximum number of spinel source match table entries -// Ensure that this value is the total of the number of openthread children times the number of openthread instances plus the number of Zigbee children. -#ifndef OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES -#define OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#endif -// // OTNS (OpenThread Network Simulator) #ifndef OPENTHREAD_CONFIG_OTNS_ENABLE #define OPENTHREAD_CONFIG_OTNS_ENABLE 0 @@ -379,6 +362,40 @@ #define OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE 1 #endif // +// Vendor Name string +// Vendor Name string +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +#if OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE +// Default: "RD:Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "RD:Silicon Labs" +#else +// Default: "Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "Silicon Labs" +#endif +#endif // OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +// Vendor Model string +// Vendor Model string +// Default: "OpenThread" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL "OpenThread" +#endif +// Vendor SW Version string +// Vendor SW Version string +// Default: "3.1.0.0" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION "3.1.0.0" +#endif +// Vendor App URL string +// Vendor App URL string +// Default: "www.silabs.com" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL "www.silabs.com" +#endif +// Run-time configuration of Vendor Info +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE 1 +#endif +// // Time Synchronization Service #ifndef OPENTHREAD_CONFIG_TIME_SYNC_ENABLE #define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 0 @@ -399,6 +416,11 @@ #define OPENTHREAD_CONFIG_MAC_BEACON_PAYLOAD_PARSING_ENABLE 1 #endif // +// Log crash dump after initialization +#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE +#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 +#endif +// // Radio Driver RX buffers // Maximum number of RX buffers // The maximum number of RX buffers to use in the radio driver. @@ -408,66 +430,7 @@ #endif // // -// Logging -// LOG_OUTPUT -// NONE -// APP -// PLATFORM_DEFINED -// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP -// OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT -#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#endif - -// DYNAMIC_LOG_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE -#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 -#endif - -// Enable Logging -#define OPENTHREAD_FULL_LOGS_ENABLE 0 -#if OPENTHREAD_FULL_LOGS_ENABLE - -// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. -// LOG_LEVEL -// NONE -// CRIT -// WARN -// NOTE -// INFO -// DEBG -// Default: OT_LOG_LEVEL_DEBG -// OT_LOG_LEVEL_DEBG -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL -#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG -#endif -// CLI -#ifndef OPENTHREAD_CONFIG_LOG_CLI -#define OPENTHREAD_CONFIG_LOG_CLI 1 -#endif -// PKT_DUMP -#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP -#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 -#endif -// PLATFORM -#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM -#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 -#endif -// PREPEND_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL -#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 -#endif - -#endif // OPENTHREAD_FULL_LOGS_ENABLE - -// Log crash dump after initialization -#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE -#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 -#endif - -// -// -// // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_FEATURES_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_openthread_log_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_openthread_log_config.h new file mode 100644 index 000000000..420892125 --- /dev/null +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_openthread_log_config.h @@ -0,0 +1,89 @@ +/******************************************************************************* + * @file + * @brief OpenThread log configuration file. + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_OPENTHREAD_LOG_CONFIG_H +#define _SL_OPENTHREAD_LOG_CONFIG_H + +//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- +// Logging +// LOG_OUTPUT +// NONE +// APP +// PLATFORM_DEFINED +// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP +// OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT +#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#endif + +// DYNAMIC_LOG_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE +#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 +#endif + +// Enable Logging +#define OPENTHREAD_FULL_LOGS_ENABLE 0 +#if OPENTHREAD_FULL_LOGS_ENABLE +// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. +// LOG_LEVEL +// NONE +// CRIT +// WARN +// NOTE +// INFO +// DEBG +// Default: OT_LOG_LEVEL_DEBG +// OT_LOG_LEVEL_DEBG +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL +#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG +#endif +// CLI +#ifndef OPENTHREAD_CONFIG_LOG_CLI +#define OPENTHREAD_CONFIG_LOG_CLI 1 +#endif +// PKT_DUMP +#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP +#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 +#endif +// PLATFORM +#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM +#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 +#endif +// PREPEND_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL +#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 +#endif +// +#endif // OPENTHREAD_FULL_LOGS_ENABLE +// +// +// <<< end of configuration section >>> +#endif // _SL_OPENTHREAD_LOG_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_openthread_radio_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_openthread_radio_config.h index 478a72430..1735c91c6 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_openthread_radio_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_openthread_radio_config.h @@ -40,6 +40,11 @@ #define SL_OPENTHREAD_RSSI_AVERAGING_TIME 16 // us // RSSI Average Timeout [us] #define SL_OPENTHREAD_RSSI_AVERAGING_TIMEOUT 300 // us +// Debug Counters Support +#ifndef RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT +#define RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT 0 // Set to 1 to enable debug counters in radio.c +#endif // // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_RADIO_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_openthread_rtos_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_openthread_rtos_config.h index 6dc710fcc..16a2b1709 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_openthread_rtos_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_openthread_rtos_config.h @@ -72,18 +72,10 @@ #define SL_OPENTHREAD_APP_TASK_MEM_SIZE (4608) // OpenThread serial task stack size in bytes <1000-20000> -// Default: 3072 +// Default: 3840 // Defines the stack size of the OpenThread RTOS serial task. The value is in bytes and // and will be word aligned when it is applied at the task creation. -#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3072) - -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread serial task prority -// Default: 16 (CMSIS-RTOS2 osPriorityBelowNormal) -// Defines OpenThread serial task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_SERIAL_TASK_PRIORITY (16) +#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3840) // // App Task @@ -107,3 +99,4 @@ // // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_power_manager_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_power_manager_config.h index 86b9fef27..1c71950d9 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_power_manager_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_power_manager_config.h @@ -98,3 +98,4 @@ #endif /* SL_POWER_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_pa_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_pa_config.h index 01edb4233..a87c90fda 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_pa_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_pa_config.h @@ -81,3 +81,4 @@ // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_PA_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_pa_tables_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_pa_tables_config.h index bd05ea57d..9a895fd24 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_pa_tables_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_pa_tables_config.h @@ -47,3 +47,4 @@ #include SL_RAIL_UTIL_PA_TABLE_HEADER #endif // SL_RAIL_UTIL_PA_TABLES_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_power_manager_init_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_power_manager_init_config.h index cbc69f24d..bcc7596c5 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_power_manager_init_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_power_manager_init_config.h @@ -42,3 +42,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_rssi_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_rssi_config.h index 938227e1d..a0e22c644 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_rssi_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_rssi_config.h @@ -46,3 +46,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_RSSI_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_sequencer_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_sequencer_config.h index 640ef0c0d..02977b219 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_sequencer_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_rail_util_sequencer_config.h @@ -44,3 +44,4 @@ extern "C" { #endif #endif // SL_RAIL_UTIL_SEQUENCER_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_simple_button_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_simple_button_config.h index 531f4f208..4cd53a96b 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_simple_button_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_simple_button_config.h @@ -70,3 +70,4 @@ // <<< end of configuration section >>> #endif // SL_SIMPLE_BUTTON_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/sl_sleeptimer_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/sl_sleeptimer_config.h index 8344ef5f1..c638bfeed 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/sl_sleeptimer_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/sl_sleeptimer_config.h @@ -52,6 +52,7 @@ // WTIMER // TIMER // Selection of the Timer Peripheral Used by the Sleeptimer +// If BURTC is needed as an EM4 wake-up source, it must not be used by Sleeptimer. #define SL_SLEEPTIMER_PERIPHERAL SL_SLEEPTIMER_PERIPHERAL_DEFAULT // TIMER/WTIMER Instance Used by Sleeptimer (not applicable for other peripherals) @@ -80,3 +81,4 @@ #endif /* SLEEPTIMER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4116A/config/uartdrv_config.h b/board-support/efr32/efr32mg26/BRD4116A/config/uartdrv_config.h index f41b347e1..b0fc7f703 100644 --- a/board-support/efr32/efr32mg26/BRD4116A/config/uartdrv_config.h +++ b/board-support/efr32/efr32mg26/BRD4116A/config/uartdrv_config.h @@ -121,3 +121,4 @@ /** @} (end addtogroup uartdrv) */ #endif /* __SILICON_LABS_UARTDRV_CONFIG_H__ */ + diff --git a/board-support/efr32/efr32mg26/BRD4117A/autogen/gatt_db.h b/board-support/efr32/efr32mg26/BRD4117A/autogen/gatt_db.h index c179e6b28..b3a2e67f9 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/autogen/gatt_db.h +++ b/board-support/efr32/efr32mg26/BRD4117A/autogen/gatt_db.h @@ -5,10 +5,6 @@ #ifndef __GATT_DB_H #define __GATT_DB_H -#if __cplusplus -extern "C" { -#endif - #include "sli_bt_gattdb_def.h" extern const sli_bt_gattdb_t gattdb; @@ -31,8 +27,5 @@ extern const sli_bt_gattdb_t gattdb; #define gattdb_CHIPoBLEChar_Tx_len 247 #define gattdb_CHIPoBLEChar_C3_len 512 -#if __cplusplus -} -#endif #endif // __GATT_DB_H diff --git a/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_bluetooth.c b/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_bluetooth.c index 0a5f1a969..0cf47b680 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_bluetooth.c +++ b/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_bluetooth.c @@ -76,13 +76,13 @@ void sl_bt_step(void) // Check the length of the next event, if any, and verify that the application // can process it. To prevent data loss, the event will be kept in the stack's // queue if the application cannot process it at the moment. - size_t event_len = sli_bgapi_device_peek_event_len(&sli_bt_bgapi_device); + size_t event_len = sli_bgapi_device_peek_event_len(sli_bt_bgapi_device); if ((event_len == 0) || (!sl_bt_can_process_event(event_len))) { return; } // Pop the event and process it if successful - sl_status_t status = sli_bgapi_device_pop_event(&sli_bt_bgapi_device, + sl_status_t status = sli_bgapi_device_pop_event(sli_bt_bgapi_device, sizeof(evt), &evt); diff --git a/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_component_catalog.h b/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_component_catalog.h index ddc382695..e7c2344f5 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_component_catalog.h +++ b/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_component_catalog.h @@ -4,7 +4,9 @@ // APIs present in project #define SL_CATALOG_BGAPI_PROTOCOL_PRESENT #define SL_CATALOG_BGAPI_PROTOCOL_RTOS_ADAPTATION_PRESENT +#define SL_CATALOG_BLUETOOTH_COMMON_PRESENT #define SL_CATALOG_BLUETOOTH_CONFIGURATION_PRESENT +#define SL_CATALOG_BLUETOOTH_CRYPTO_LIB_PSA_PRESENT #define SL_CATALOG_BLUETOOTH_CTE_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_FEATURE_ADVERTISER_PRESENT #define SL_CATALOG_BLUETOOTH_FEATURE_CONNECTION_PRESENT @@ -25,7 +27,9 @@ #define SL_CATALOG_CPP_SUPPORT_PRESENT #define SL_CATALOG_DEVICE_INIT_PRESENT #define SL_CATALOG_DEVICE_INIT_DCDC_PRESENT +#define SL_CATALOG_DMA_MANAGER_PRESENT #define SL_CATALOG_EMLIB_CORE_PRESENT +#define SL_CATALOG_EMLIB_GPIO_PRESENT #define SL_CATALOG_EMLIB_RMU_PRESENT #define SL_CATALOG_FREERTOS_KERNEL_PRESENT #define SL_CATALOG_KERNEL_PRESENT @@ -39,7 +43,7 @@ #ifdef DISPLAY_ENABLED #define SL_CATALOG_MEMLCD_USART_PRESENT #define SL_CATALOG_DMD_MEMLCD_PRESENT -#endif +#endif // DISPLAY_ENABLED #define SL_CATALOG_MEMORY_MANAGER_PRESENT #define SL_CATALOG_MEMORY_PROFILER_API_PRESENT #define SL_CATALOG_MPU_PRESENT @@ -56,7 +60,7 @@ #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_SEGGER_RTT_PRESENT #define SL_CATALOG_BTN0_PRESENT @@ -71,10 +75,23 @@ #define SL_CATALOG_SIMPLE_LED_LED1_PRESENT #define SL_CATALOG_SL_CORE_PRESENT #define SL_CATALOG_SL_MAIN_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_COMPATIBLE_PA_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_PA_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_SEQUENCER_PRESENT +#define SL_CATALOG_RAIL_UTIL_SEQUENCER_PRESENT #define SL_CATALOG_SLEEPTIMER_PRESENT #define SL_CATALOG_SLI_PROTOCOL_CRYPTO_PRESENT #if defined(CONFIG_ENABLE_UART) #define SL_CATALOG_UARTDRV_EUSART_PRESENT -#endif +#define SL_CATALOG_OPENTHREAD_UART_PRESENT +#endif // CONFIG_ENABLE_UART #endif // SL_COMPONENT_CATALOG_H diff --git a/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_dma_manager_instances.c b/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_dma_manager_instances.c new file mode 100644 index 000000000..f4339b2ed --- /dev/null +++ b/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_dma_manager_instances.c @@ -0,0 +1,51 @@ +/***************************************************************************//** + * @file + * @brief DMA Manager Instances Initialization. + ******************************************************************************* + * # License + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_dma_manager_instances.h" +#include "sl_dma_manager.h" +#include "sl_device_peripheral.h" + + + +sl_dma_handle_t sl_dma_handle_ldma0; + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + ******************************************************************************/ +void sl_dma_manager_instances_init(void) +{ + + // Initialize DMA Manager instance: LDMA0 + sl_dma_manager_init(&sl_dma_handle_ldma0, SL_PERIPHERAL_DMA_LDMA0); + +} + + diff --git a/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_dma_manager_instances.h b/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_dma_manager_instances.h new file mode 100644 index 000000000..1580ad2b2 --- /dev/null +++ b/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_dma_manager_instances.h @@ -0,0 +1,71 @@ +/***************************************************************************//** + * @file + * @brief DMA Manager Instances API. + ******************************************************************************* + * # License + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_DMA_MANAGER_INSTANCES_H +#define SL_DMA_MANAGER_INSTANCES_H + +#include "sl_dma_manager.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/***************************************************************************//** + * @addtogroup dma_manager DMA Manager + * @{ + ******************************************************************************/ + + + +extern sl_dma_handle_t sl_dma_handle_ldma0; + + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + * + * @details This function initializes all DMA Manager instances that have been + * configured through the component system. Each instance corresponds + * to a DMA peripheral (e.g., LDMA0, LDMA1). + * + * @note This function is typically called automatically during system + * initialization when the dma_manager_init component is included + * in the project. + ******************************************************************************/ +void sl_dma_manager_instances_init(void); + +/** @} (end addtogroup dma_manager) */ + +#ifdef __cplusplus +} +#endif + +#endif // SL_DMA_MANAGER_INSTANCES_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_event_handler.c b/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_event_handler.c index 357a278f8..ad03d05c5 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_event_handler.c +++ b/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_event_handler.c @@ -5,7 +5,6 @@ #include "sl_hfxo_manager.h" #include "sl_rail_util_compatible_pa.h" #if !(defined(SLI_SI91X_ENABLE_BLE) && SLI_SI91X_ENABLE_BLE) -#include "sl_bluetooth.h" #include "sl_rail_util_power_manager_init.h" #endif // !SLI_SI91X_ENABLE_BLE #include "sl_rail_util_power_manager_init.h" @@ -14,6 +13,7 @@ #include "btl_interface.h" #include "sl_board_control.h" #include "platform-efr32.h" +#include "sl_dma_manager_instances.h" #include "sl_bt_rtos_adaptation.h" #include "sl_bluetooth.h" #include "sl_debug_swo.h" @@ -70,6 +70,7 @@ void sl_platform_init(void) sl_hfxo_manager_init_hardware(); sl_board_init(); bootloader_init(); + sl_dma_manager_instances_init(); nvm3_initDefault(); } diff --git a/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_simple_led_instances.h b/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_simple_led_instances.h index 928fbe942..08c8291ae 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_simple_led_instances.h +++ b/board-support/efr32/efr32mg26/BRD4117A/autogen/sl_simple_led_instances.h @@ -31,10 +31,6 @@ #ifndef SL_SIMPLE_LED_INSTANCES_H #define SL_SIMPLE_LED_INSTANCES_H -#ifdef __cplusplus -extern "C" { -#endif - #include "sl_simple_led.h" extern const sl_led_t sl_led_led0; @@ -47,8 +43,4 @@ extern const sl_led_t *sl_simple_led_array[]; void sl_simple_led_init_instances(void); -#ifdef __cplusplus -} -#endif - #endif // SL_SIMPLE_LED_INIT_H diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/app_properties_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/app_properties_config.h index 6a6b97666..34418403f 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/app_properties_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/app_properties_config.h @@ -63,3 +63,4 @@ // #endif // APP_PROPERTIES_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/btconf/gatt_configuration.btconf b/board-support/efr32/efr32mg26/BRD4117A/config/btconf/gatt_configuration.btconf deleted file mode 100644 index 4d1efd972..000000000 --- a/board-support/efr32/efr32mg26/BRD4117A/config/btconf/gatt_configuration.btconf +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - Abstract: The generic_access service contains generic information about the device. All available Characteristics are readonly. - - - - - Empty Example - - - - - - - - - Abstract: The external appearance of this device. The values are composed of a category (10-bits) and sub-categories (6-bits). - 0000 - - - - - - - - - Abstract: The Device Information Service exposes manufacturer and/or vendor information about a device. Summary: This service exposes manufacturer information about a device. The Device Information Service is instantiated as a Primary Service. Only one instance of the Device Information Service is exposed on a device. - - - - Abstract: The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device. - Silicon Labs - - - - - - - - Abstract: The value of this characteristic is a UTF-8 string representing the model number assigned by the device vendor. - Blue Gecko - - - - - - - - Abstract: The SYSTEM ID characteristic consists of a structure with two fields. The first field are the LSOs and the second field contains the MSOs. This is a 64-bit structure which consists of a 40-bit manufacturer-defined identifier concatenated with a 24 bit unique Organizationally Unique Identifier (OUI). The OUI is issued by the IEEE Registration Authority (http://standards.ieee.org/regauth/index.html) and is required to be used in accordance with IEEE Standard 802-2001.6 while the least significant 40 bits are manufacturer defined. If System ID generated based on a Bluetooth Device Address, it is required to be done as follows. System ID and the Bluetooth Device Address have a very similar structure: a Bluetooth Device Address is 48 bits in length and consists of a 24 bit Company Assigned Identifier (manufacturer defined identifier) concatenated with a 24 bit Company Identifier (OUI). In order to encapsulate a Bluetooth Device Address as System ID, the Company Identifier is concatenated with 0xFFFE followed by the Company Assigned Identifier of the Bluetooth Address. For more guidelines related to EUI-64, refer to http://standards.ieee.org/develop/regauth/tut/eui64.pdf. Examples: If the system ID is based of a Bluetooth Device Address with a Company Identifier (OUI) is 0x123456 and the Company Assigned Identifier is 0x9ABCDE, then the System Identifier is required to be 0x123456FFFE9ABCDE. - 000102030405 - - - - - - - - - Custom service - - - - Custom characteristic - 00 - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/btl_interface_cfg.h b/board-support/efr32/efr32mg26/BRD4117A/config/btl_interface_cfg.h new file mode 100644 index 000000000..fc17ccfff --- /dev/null +++ b/board-support/efr32/efr32mg26/BRD4117A/config/btl_interface_cfg.h @@ -0,0 +1,64 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_H +#define BTL_INTERFACE_CFG_H + +#if !defined(BOOTLOADER_APPLOADER) + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_1) +#include "btl_interface_cfg_s2c1.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_2) +#include "btl_interface_cfg_s2c2.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_3) +#include "btl_interface_cfg_s2c3.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_4) +#include "btl_interface_cfg_s2c4.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_5) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_6) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_8) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_9) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_13) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_11) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif +#endif// !BOOTLOADER_APPLOADER + +#endif // BTL_INTERFACE_CFG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/buffer_pool_allocator_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/buffer_pool_allocator_config.h index 2c3fd2e67..9a96fedf3 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/buffer_pool_allocator_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/buffer_pool_allocator_config.h @@ -27,3 +27,4 @@ // <<< end of configuration section >>> #endif // __BUFFER_POOL_ALLOCATOR_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/circular_queue_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/circular_queue_config.h index 81a7173d6..fe1ba75d3 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/circular_queue_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/circular_queue_config.h @@ -21,3 +21,4 @@ // <<< end of configuration section >>> #endif // __CIRCULAR_QUEUE_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/dmadrv_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/dmadrv_config.h index ed105e4f3..dd58324d7 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/dmadrv_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/dmadrv_config.h @@ -24,3 +24,4 @@ // <<< end of configuration section >>> #endif // DMADRV_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/nvm3_default_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/nvm3_default_config.h index 2bf415f94..95cdbb7f5 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/nvm3_default_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/nvm3_default_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif // NVM3_DEFAULT_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_802154_radio_priority_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_802154_radio_priority_config.h index 77334ba2c..cc09e8ca9 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_802154_radio_priority_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_802154_radio_priority_config.h @@ -55,3 +55,4 @@ // <<< end of configuration section >>> #endif //__SL_802154_RADIO_PRIORITY_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_bgapi_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_bgapi_config.h index 1ae43b6b5..522d1c904 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_bgapi_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_bgapi_config.h @@ -41,3 +41,4 @@ // <<< end of configuration section >>> #endif // SL_BGAPI_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_bluetooth_advertiser_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_bluetooth_advertiser_config.h index 00163cd9a..7cac58bfe 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_bluetooth_advertiser_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_bluetooth_advertiser_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_bluetooth_common_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_bluetooth_common_config.h new file mode 100644 index 000000000..55c3749d5 --- /dev/null +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_bluetooth_common_config.h @@ -0,0 +1,53 @@ +/***************************************************************************//** + * @file sl_bluetooth_common_config.h + * @brief Bluetooth Common configuration + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_BLUETOOTH_COMMON_CONFIG_H +#define SL_BLUETOOTH_COMMON_CONFIG_H + +// <<< Use Configuration Wizard in Context Menu >>> + +// Bluetooth Common Configuration + +// Buffer memory size for Bluetooth +// Default: 3150 +// Define the buffer memory size for buffering data over Bluetooth connections, advertising +// and scanning. The default value is an estimation for achieving adequate throughput +// and supporting multiple simultaneous connections. Consider increasing this value for +// higher data throughput over connections, advertising or scanning long advertisement data. +#ifndef SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE +#define SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE (3150) +#endif + +// Bluetooth Common Configuration + +// <<< end of configuration section >>> + +#endif // SL_BLUETOOTH_COMMON_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_bluetooth_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_bluetooth_config.h index 93bfbbcc4..cfaaef06d 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_bluetooth_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_bluetooth_config.h @@ -66,6 +66,9 @@ // advertising and scanning. The default value is an estimation for achieving adequate throughput // and supporting multiple simultaneous connections. Consider increasing this value for // higher data throughput over connections, advertising or scanning long advertisement data. +// NOTE: SL_BT_CONFIG_BUFFER_SIZE is deprecated in Simplicity SDK Suite v2026.6.0 and marked +// for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONFIG_BUFFER_SIZE is replaced by +// SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #define SL_BT_CONFIG_BUFFER_SIZE (3150) // Enable using a custom Bluetooth address stored in NVM3 @@ -124,11 +127,23 @@ // A negative value indicates some power loss in the path. For example, // with radiated TX power set to +10 dBm and this configuration to -10 // (i.e., 1 dBm loss), the transmitter output power will be set to +11 dBm. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_TX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_TX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_TX (0) // RF RX path gain in 0.1dBm unit // Default: 0 // RX RF path gain is used to compensate the RSSI reports from the Bluetooth Stack. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_RX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_RX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_RX (0) // End RF Path @@ -161,8 +176,6 @@ #include "sl_bt_stack_config.h" #include "sl_bgapi_config.h" // For SL_BGAPI_MAX_PAYLOAD_SIZE -// NOTE: Struct sl_btctrl_ll_priorities is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// The Link Layer scheduler priority configuration is initialized via the Bluetooth Low Energy Controller component. #define SL_BT_CONFIG_DEFAULT \ { \ .config_flags = SL_BT_CONFIG_FLAGS, \ @@ -179,3 +192,4 @@ } #endif // SL_BLUETOOTH_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_bluetooth_connection_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_bluetooth_connection_config.h index 73a382509..08bc34759 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_bluetooth_connection_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_bluetooth_connection_config.h @@ -46,3 +46,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_bt_rtos_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_bt_rtos_config.h index b80c07967..fec091919 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_bt_rtos_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_bt_rtos_config.h @@ -42,3 +42,4 @@ #endif #endif // SL_BT_RTOS_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_bt_rtos_config_s2.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_bt_rtos_config_s2.h index eb4fe3ea2..bc4c37420 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_bt_rtos_config_s2.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_bt_rtos_config_s2.h @@ -82,3 +82,4 @@ // <<< end of configuration section >>> #endif // SL_BT_RTOS_CONFIG_S2_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_btctrl_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_btctrl_config.h index 403df1ffe..8dfdb6281 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_btctrl_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_btctrl_config.h @@ -7,7 +7,10 @@ // Bluetooth Controller Buffer Memory // Default: SL_BT_CONTROLLER_BUFFER_MEMORY -// Define the Amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// Define the amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// NOTE: SL_BT_CONTROLLER_BUFFER_MEMORY is deprecated in Simplicity SDK Suite v2026.6.0 and +// marked for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONTROLLER_BUFFER_MEMORY is +// replaced by SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #ifndef SL_BT_CONTROLLER_BUFFER_MEMORY #define SL_BT_CONTROLLER_BUFFER_MEMORY (8192) #endif @@ -64,7 +67,7 @@ #define SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE (0) #endif -// Minimum radiated TX power level in 0.1dBm unit +// Minimum radiated TX power level in 0.1dBm units // Default: 0 // Define the minimum radiated TX power level. // If the configured power level is lower than what the radio supports, the minimum supported level will be used. @@ -83,7 +86,7 @@ #define SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE (0) #endif -// Maximum radiated TX power level in 0.1dBm unit +// Maximum radiated TX power level in 0.1dBm units // Default: 0 // Define the maximum radiated TX power level. // If the configured power level is higher than what the radio supports, the maximum supported level will be used. @@ -97,6 +100,28 @@ // End TX Power Levels +// RF Path + +// TX RF path gain in 0.1dB units +// Default: 0 +// The Bluetooth controller takes TX RF path gain into account when adjusting transmitter +// output power. Power radiated from the antenna then matches the application request. +// A negative value indicates some power loss in the path. For example, +// with radiated TX power set to +10 dBm and this configuration to -10 +// (i.e., 1 dB loss), the transmitter output power will be set to +11 dBm. +#ifndef SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB (0) +#endif + +// RX RF path gain in 0.1dB units +// Default: 0 +// RX RF path gain is used to compensate the RSSI reports received by the Bluetooth controller. +#ifndef SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB (0) +#endif + +// End RF Path + // Bluetooth Controller Configuration for LE Connection // Total transmitted packets threshold for all connections to send the Number Of Completed Packets HCI event to the host <1-255> // Default: 4 @@ -136,16 +161,6 @@ #define SL_BT_CONTROLLER_USE_LEGACY_VENDOR_SPECIFIC_EVENT_CODE (0) #endif -// Adaptive Frequency Hopping operation mode -// Active AFH -// Passive AFH -// Choose between active AFH and passive AFH -// Default: Active AFH -// SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY -#ifndef SL_BT_CONTROLLER_ADAPTIVITY_MODE -#define SL_BT_CONTROLLER_ADAPTIVITY_MODE (SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY) -#endif - // Advertising Configuration // Include TX Power in the extended header of primary extended advertising packets // This is default setting to all advertising sets unless it is specifically overridden by VS_SiliconLabs_Set_Advertising_Config_Bits. @@ -172,3 +187,4 @@ // <<< end of configuration section >>> #endif // SL_BTCTRL_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_btctrl_scheduler_priority_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_btctrl_scheduler_priority_config.h index 0eec28095..fd0e66f83 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_btctrl_scheduler_priority_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_btctrl_scheduler_priority_config.h @@ -146,7 +146,7 @@ // Rail Mapping Window Min // <0-255:1> -// Default: 16 +// Default: 32 // Define the minimum value of RAIL mapping window. // This parameter specifies how task priorities are passed to radio // coexistence and multiprotocol schedulers. @@ -157,17 +157,17 @@ // If coexistence or multiprotocol configuration is not used, then these // parameters have no effect. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 16 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 32 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN // Rail Mapping Window Range // <0-255:1> -// Default: 32 +// Default: 16 // Define the maximum value of the RAIL mapping window. // See SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN for a description of // this parameter. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 32 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 16 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX // PAwR Tx - Min @@ -220,9 +220,9 @@ .conn_max = SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX, \ .init_min = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN, \ .init_max = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX, \ - .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN, \ - .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX \ - - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN), \ + .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX, \ + .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN \ + - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX), \ 0, \ .adv_step = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP, \ .scan_step = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP, \ @@ -233,3 +233,4 @@ } #endif // SL_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_clock_manager_oscillator_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_clock_manager_oscillator_config.h index 7240fca05..7403cb07b 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_clock_manager_oscillator_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_clock_manager_oscillator_config.h @@ -374,3 +374,4 @@ // <<< sl:end pin_tool >>> #endif /* SL_CLOCK_MANAGER_OSCILLATOR_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_clock_manager_tree_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_clock_manager_tree_config.h index eddb68431..193dec506 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_clock_manager_tree_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_clock_manager_tree_config.h @@ -318,3 +318,4 @@ #endif /* SL_CLOCK_MANAGER_TREE_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_core_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_core_config.h index 27b173d2e..16d372fcf 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_core_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_core_config.h @@ -42,3 +42,4 @@ // <<< end of configuration section >>> #endif // SL_CORE_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_device_init_dcdc_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_device_init_dcdc_config.h index 4fb88397d..a14fce6d9 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_device_init_dcdc_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_device_init_dcdc_config.h @@ -56,3 +56,4 @@ // <<< end of configuration section >>> #endif // SL_DEVICE_INIT_DCDC_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_gp_interface_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_gp_interface_config.h index fd5aa20ea..0624696f3 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_gp_interface_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_gp_interface_config.h @@ -42,3 +42,4 @@ #define GP_TX_MAX_TIMEOUT_IN_MICRO_SECONDS 5000000 // // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_hfxo_manager_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_hfxo_manager_config.h index d9ccd3c70..87afc3778 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_hfxo_manager_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_hfxo_manager_config.h @@ -54,3 +54,4 @@ #endif /* SL_HFXO_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_main_start_task_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_main_start_task_config.h index 7752c098f..7cc81a4da 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_main_start_task_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_main_start_task_config.h @@ -103,3 +103,4 @@ #endif /* SL_MAIN_START_TASK_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_memory_manager_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_memory_manager_config.h index 4a16c29fe..02af7ec0c 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_memory_manager_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_memory_manager_config.h @@ -47,6 +47,12 @@ // Default: 1 #define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 +// Enables the double free protection for the pool. +// Setting this configuration to 0 will disable the double free protection for the memory pool. saving ~100 bytes of code. +// This setting has no effect on the memory pools power aware version. +// Default: 1 +#define SL_MEMORY_MANAGER_POOL_DOUBLE_FREE_PROTECTION_ENABLE 1 + // // <<< end of configuration section >>> @@ -58,4 +64,13 @@ // Default: 1 #define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 +// Enables retention statistics (retained size, retained high watermark, bank counts). +// Requires bank-retention hardware on the target; SL_CATALOG_BANK_RETENTION_CONTROL_* is defined only for devices that implement it (not every part or kit). +// Software configuration alone cannot add bank retention where the silicon has no such feature. +// Independent of heap statistics (SL_MEMORY_MANAGER_STATISTICS_API_ENABLE). +// When disabled, retention getters return (size_t)-1 or SL_STATUS_NOT_AVAILABLE. +// Default: 0. +#define SL_MEMORY_MANAGER_STATISTICS_RETENTION_ENABLE 0 + #endif /* SL_MEMORY_MANAGER_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_memory_manager_region_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_memory_manager_region_config.h index bd640b59b..a0a4007e7 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_memory_manager_region_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_memory_manager_region_config.h @@ -49,3 +49,4 @@ // <<< end of configuration section >>> #endif /* SL_MEMORY_MANAGER_REGION_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_openthread_features_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_openthread_features_config.h index a3697f8af..054fb51b4 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_openthread_features_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_openthread_features_config.h @@ -200,24 +200,31 @@ #endif // // IPv6 Limits -// Maximum IPv6 external unicast addresses +// Runtime IPv6 external address pools +// Enable runtime configuration of external unicast and multicast address pools via otIp6Init(). +#ifndef OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +#define OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE 0 +#endif +#if OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +// CLI support for runtime IPv6 external address pools +// Enable `ifconfig init` CLI command for testing otIp6Init() pool configuration. +#ifndef OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE +#define OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE 1 +#endif +// +#else +// Maximum IPv6 external unicast addresses (ignored in runtime mode) // Maximum number of IPv6 unicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS 4 #endif -// Maximum IPv6 external multicast addresses +// Maximum IPv6 external multicast addresses (ignored in runtime mode) // Maximum number of IPv6 multicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS 4 #endif -// Maximum IPv6 address registrations for MTD -// The maximum number of IPv6 address registrations for MTD. -// If left unchanged will default to the value of OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD -// 4 -#ifndef OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER -#define OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER (OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD) #endif // // Jam Detection @@ -286,37 +293,13 @@ #ifndef OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM #define OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM 2 #endif +// Instance-aware platform logging API +#ifndef OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE +#define OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE 0 +#endif +// // // -// Define maximum total source match table entries for both OT and Zigbee. -// In multi-instance builds (SoC or RCP/host), table must support all OT instances + Zigbee. -// For single instance (default), table sized to just OT children. -// This value is used to size all source match tables in both OT and Zigbee code. -// Note: this is purposedly not being setup with CMSIS annotations. -#ifndef RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE -#if SL_ZIGBEE_MAX_END_DEVICE_CHILDREN -// Multipan / DMP case: OT + Zigbee -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - ((OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * (OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM - 1)) \ - + SL_ZIGBEE_MAX_END_DEVICE_CHILDREN) -#else -// Multi-instance OT-only case -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - (OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM) -#endif -#else -// Single-instance OT (SoC / NCP / non-multipan RCP) -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES OPENTHREAD_CONFIG_MLE_MAX_CHILDREN -#endif -#endif -// Spinel Match Table -// Maximum number of spinel source match table entries -// Ensure that this value is the total of the number of openthread children times the number of openthread instances plus the number of Zigbee children. -#ifndef OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES -#define OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#endif -// // OTNS (OpenThread Network Simulator) #ifndef OPENTHREAD_CONFIG_OTNS_ENABLE #define OPENTHREAD_CONFIG_OTNS_ENABLE 0 @@ -379,6 +362,40 @@ #define OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE 1 #endif // +// Vendor Name string +// Vendor Name string +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +#if OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE +// Default: "RD:Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "RD:Silicon Labs" +#else +// Default: "Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "Silicon Labs" +#endif +#endif // OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +// Vendor Model string +// Vendor Model string +// Default: "OpenThread" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL "OpenThread" +#endif +// Vendor SW Version string +// Vendor SW Version string +// Default: "3.1.0.0" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION "3.1.0.0" +#endif +// Vendor App URL string +// Vendor App URL string +// Default: "www.silabs.com" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL "www.silabs.com" +#endif +// Run-time configuration of Vendor Info +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE 1 +#endif +// // Time Synchronization Service #ifndef OPENTHREAD_CONFIG_TIME_SYNC_ENABLE #define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 0 @@ -399,6 +416,11 @@ #define OPENTHREAD_CONFIG_MAC_BEACON_PAYLOAD_PARSING_ENABLE 1 #endif // +// Log crash dump after initialization +#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE +#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 +#endif +// // Radio Driver RX buffers // Maximum number of RX buffers // The maximum number of RX buffers to use in the radio driver. @@ -408,66 +430,7 @@ #endif // // -// Logging -// LOG_OUTPUT -// NONE -// APP -// PLATFORM_DEFINED -// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP -// OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT -#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#endif - -// DYNAMIC_LOG_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE -#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 -#endif - -// Enable Logging -#define OPENTHREAD_FULL_LOGS_ENABLE 0 -#if OPENTHREAD_FULL_LOGS_ENABLE - -// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. -// LOG_LEVEL -// NONE -// CRIT -// WARN -// NOTE -// INFO -// DEBG -// Default: OT_LOG_LEVEL_DEBG -// OT_LOG_LEVEL_DEBG -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL -#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG -#endif -// CLI -#ifndef OPENTHREAD_CONFIG_LOG_CLI -#define OPENTHREAD_CONFIG_LOG_CLI 1 -#endif -// PKT_DUMP -#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP -#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 -#endif -// PLATFORM -#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM -#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 -#endif -// PREPEND_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL -#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 -#endif - -#endif // OPENTHREAD_FULL_LOGS_ENABLE - -// Log crash dump after initialization -#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE -#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 -#endif - -// -// -// // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_FEATURES_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_openthread_log_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_openthread_log_config.h new file mode 100644 index 000000000..420892125 --- /dev/null +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_openthread_log_config.h @@ -0,0 +1,89 @@ +/******************************************************************************* + * @file + * @brief OpenThread log configuration file. + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_OPENTHREAD_LOG_CONFIG_H +#define _SL_OPENTHREAD_LOG_CONFIG_H + +//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- +// Logging +// LOG_OUTPUT +// NONE +// APP +// PLATFORM_DEFINED +// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP +// OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT +#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#endif + +// DYNAMIC_LOG_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE +#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 +#endif + +// Enable Logging +#define OPENTHREAD_FULL_LOGS_ENABLE 0 +#if OPENTHREAD_FULL_LOGS_ENABLE +// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. +// LOG_LEVEL +// NONE +// CRIT +// WARN +// NOTE +// INFO +// DEBG +// Default: OT_LOG_LEVEL_DEBG +// OT_LOG_LEVEL_DEBG +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL +#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG +#endif +// CLI +#ifndef OPENTHREAD_CONFIG_LOG_CLI +#define OPENTHREAD_CONFIG_LOG_CLI 1 +#endif +// PKT_DUMP +#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP +#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 +#endif +// PLATFORM +#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM +#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 +#endif +// PREPEND_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL +#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 +#endif +// +#endif // OPENTHREAD_FULL_LOGS_ENABLE +// +// +// <<< end of configuration section >>> +#endif // _SL_OPENTHREAD_LOG_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_openthread_radio_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_openthread_radio_config.h index 478a72430..1735c91c6 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_openthread_radio_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_openthread_radio_config.h @@ -40,6 +40,11 @@ #define SL_OPENTHREAD_RSSI_AVERAGING_TIME 16 // us // RSSI Average Timeout [us] #define SL_OPENTHREAD_RSSI_AVERAGING_TIMEOUT 300 // us +// Debug Counters Support +#ifndef RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT +#define RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT 0 // Set to 1 to enable debug counters in radio.c +#endif // // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_RADIO_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_openthread_rtos_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_openthread_rtos_config.h index 6dc710fcc..16a2b1709 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_openthread_rtos_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_openthread_rtos_config.h @@ -72,18 +72,10 @@ #define SL_OPENTHREAD_APP_TASK_MEM_SIZE (4608) // OpenThread serial task stack size in bytes <1000-20000> -// Default: 3072 +// Default: 3840 // Defines the stack size of the OpenThread RTOS serial task. The value is in bytes and // and will be word aligned when it is applied at the task creation. -#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3072) - -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread serial task prority -// Default: 16 (CMSIS-RTOS2 osPriorityBelowNormal) -// Defines OpenThread serial task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_SERIAL_TASK_PRIORITY (16) +#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3840) // // App Task @@ -107,3 +99,4 @@ // // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_power_manager_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_power_manager_config.h index 86b9fef27..1c71950d9 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_power_manager_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_power_manager_config.h @@ -98,3 +98,4 @@ #endif /* SL_POWER_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_pa_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_pa_config.h index fcfe11243..76a717c40 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_pa_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_pa_config.h @@ -81,3 +81,4 @@ // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_PA_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_pa_tables_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_pa_tables_config.h index f2407fcfd..c8fa1b8c9 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_pa_tables_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_pa_tables_config.h @@ -45,3 +45,4 @@ #include SL_RAIL_UTIL_PA_TABLE_HEADER #endif // SL_RAIL_UTIL_PA_TABLES_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_power_manager_init_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_power_manager_init_config.h index cbc69f24d..bcc7596c5 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_power_manager_init_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_power_manager_init_config.h @@ -42,3 +42,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_rssi_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_rssi_config.h index 938227e1d..a0e22c644 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_rssi_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_rssi_config.h @@ -46,3 +46,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_RSSI_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_sequencer_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_sequencer_config.h index 72b05eb66..706e91c2f 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_sequencer_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_rail_util_sequencer_config.h @@ -44,3 +44,4 @@ extern "C" { #endif #endif // SL_RAIL_UTIL_SEQUENCER_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_simple_button_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_simple_button_config.h index 531f4f208..4cd53a96b 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_simple_button_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_simple_button_config.h @@ -70,3 +70,4 @@ // <<< end of configuration section >>> #endif // SL_SIMPLE_BUTTON_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/sl_sleeptimer_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/sl_sleeptimer_config.h index 8344ef5f1..c638bfeed 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/sl_sleeptimer_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/sl_sleeptimer_config.h @@ -52,6 +52,7 @@ // WTIMER // TIMER // Selection of the Timer Peripheral Used by the Sleeptimer +// If BURTC is needed as an EM4 wake-up source, it must not be used by Sleeptimer. #define SL_SLEEPTIMER_PERIPHERAL SL_SLEEPTIMER_PERIPHERAL_DEFAULT // TIMER/WTIMER Instance Used by Sleeptimer (not applicable for other peripherals) @@ -80,3 +81,4 @@ #endif /* SLEEPTIMER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4117A/config/uartdrv_config.h b/board-support/efr32/efr32mg26/BRD4117A/config/uartdrv_config.h index f41b347e1..b0fc7f703 100644 --- a/board-support/efr32/efr32mg26/BRD4117A/config/uartdrv_config.h +++ b/board-support/efr32/efr32mg26/BRD4117A/config/uartdrv_config.h @@ -121,3 +121,4 @@ /** @} (end addtogroup uartdrv) */ #endif /* __SILICON_LABS_UARTDRV_CONFIG_H__ */ + diff --git a/board-support/efr32/efr32mg26/BRD4118A/autogen/gatt_db.h b/board-support/efr32/efr32mg26/BRD4118A/autogen/gatt_db.h index c179e6b28..b3a2e67f9 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/autogen/gatt_db.h +++ b/board-support/efr32/efr32mg26/BRD4118A/autogen/gatt_db.h @@ -5,10 +5,6 @@ #ifndef __GATT_DB_H #define __GATT_DB_H -#if __cplusplus -extern "C" { -#endif - #include "sli_bt_gattdb_def.h" extern const sli_bt_gattdb_t gattdb; @@ -31,8 +27,5 @@ extern const sli_bt_gattdb_t gattdb; #define gattdb_CHIPoBLEChar_Tx_len 247 #define gattdb_CHIPoBLEChar_C3_len 512 -#if __cplusplus -} -#endif #endif // __GATT_DB_H diff --git a/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_bluetooth.c b/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_bluetooth.c index 0a5f1a969..0cf47b680 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_bluetooth.c +++ b/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_bluetooth.c @@ -76,13 +76,13 @@ void sl_bt_step(void) // Check the length of the next event, if any, and verify that the application // can process it. To prevent data loss, the event will be kept in the stack's // queue if the application cannot process it at the moment. - size_t event_len = sli_bgapi_device_peek_event_len(&sli_bt_bgapi_device); + size_t event_len = sli_bgapi_device_peek_event_len(sli_bt_bgapi_device); if ((event_len == 0) || (!sl_bt_can_process_event(event_len))) { return; } // Pop the event and process it if successful - sl_status_t status = sli_bgapi_device_pop_event(&sli_bt_bgapi_device, + sl_status_t status = sli_bgapi_device_pop_event(sli_bt_bgapi_device, sizeof(evt), &evt); diff --git a/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_component_catalog.h b/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_component_catalog.h index ddc382695..6074c1e05 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_component_catalog.h +++ b/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_component_catalog.h @@ -4,7 +4,9 @@ // APIs present in project #define SL_CATALOG_BGAPI_PROTOCOL_PRESENT #define SL_CATALOG_BGAPI_PROTOCOL_RTOS_ADAPTATION_PRESENT +#define SL_CATALOG_BLUETOOTH_COMMON_PRESENT #define SL_CATALOG_BLUETOOTH_CONFIGURATION_PRESENT +#define SL_CATALOG_BLUETOOTH_CRYPTO_LIB_PSA_PRESENT #define SL_CATALOG_BLUETOOTH_CTE_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_FEATURE_ADVERTISER_PRESENT #define SL_CATALOG_BLUETOOTH_FEATURE_CONNECTION_PRESENT @@ -25,7 +27,9 @@ #define SL_CATALOG_CPP_SUPPORT_PRESENT #define SL_CATALOG_DEVICE_INIT_PRESENT #define SL_CATALOG_DEVICE_INIT_DCDC_PRESENT +#define SL_CATALOG_DMA_MANAGER_PRESENT #define SL_CATALOG_EMLIB_CORE_PRESENT +#define SL_CATALOG_EMLIB_GPIO_PRESENT #define SL_CATALOG_EMLIB_RMU_PRESENT #define SL_CATALOG_FREERTOS_KERNEL_PRESENT #define SL_CATALOG_KERNEL_PRESENT @@ -37,9 +41,9 @@ #define SL_CATALOG_INTERRUPT_MANAGER_PRESENT #define SL_CATALOG_IOSTREAM_PRESENT #ifdef DISPLAY_ENABLED -#define SL_CATALOG_MEMLCD_USART_PRESENT #define SL_CATALOG_DMD_MEMLCD_PRESENT -#endif +#define SL_CATALOG_MEMLCD_USART_PRESENT +#endif // DISPLAY_ENABLED #define SL_CATALOG_MEMORY_MANAGER_PRESENT #define SL_CATALOG_MEMORY_PROFILER_API_PRESENT #define SL_CATALOG_MPU_PRESENT @@ -56,7 +60,7 @@ #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_SEGGER_RTT_PRESENT #define SL_CATALOG_BTN0_PRESENT @@ -71,10 +75,22 @@ #define SL_CATALOG_SIMPLE_LED_LED1_PRESENT #define SL_CATALOG_SL_CORE_PRESENT #define SL_CATALOG_SL_MAIN_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_COMPATIBLE_PA_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_PA_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_SEQUENCER_PRESENT +#define SL_CATALOG_RAIL_UTIL_SEQUENCER_PRESENT #define SL_CATALOG_SLEEPTIMER_PRESENT #define SL_CATALOG_SLI_PROTOCOL_CRYPTO_PRESENT #if defined(CONFIG_ENABLE_UART) #define SL_CATALOG_UARTDRV_EUSART_PRESENT -#endif - +#define SL_CATALOG_OPENTHREAD_UART_PRESENT +#endif // CONFIG_ENABLE_UART #endif // SL_COMPONENT_CATALOG_H diff --git a/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_dma_manager_instances.c b/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_dma_manager_instances.c new file mode 100644 index 000000000..f4339b2ed --- /dev/null +++ b/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_dma_manager_instances.c @@ -0,0 +1,51 @@ +/***************************************************************************//** + * @file + * @brief DMA Manager Instances Initialization. + ******************************************************************************* + * # License + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_dma_manager_instances.h" +#include "sl_dma_manager.h" +#include "sl_device_peripheral.h" + + + +sl_dma_handle_t sl_dma_handle_ldma0; + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + ******************************************************************************/ +void sl_dma_manager_instances_init(void) +{ + + // Initialize DMA Manager instance: LDMA0 + sl_dma_manager_init(&sl_dma_handle_ldma0, SL_PERIPHERAL_DMA_LDMA0); + +} + + diff --git a/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_dma_manager_instances.h b/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_dma_manager_instances.h new file mode 100644 index 000000000..1580ad2b2 --- /dev/null +++ b/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_dma_manager_instances.h @@ -0,0 +1,71 @@ +/***************************************************************************//** + * @file + * @brief DMA Manager Instances API. + ******************************************************************************* + * # License + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_DMA_MANAGER_INSTANCES_H +#define SL_DMA_MANAGER_INSTANCES_H + +#include "sl_dma_manager.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/***************************************************************************//** + * @addtogroup dma_manager DMA Manager + * @{ + ******************************************************************************/ + + + +extern sl_dma_handle_t sl_dma_handle_ldma0; + + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + * + * @details This function initializes all DMA Manager instances that have been + * configured through the component system. Each instance corresponds + * to a DMA peripheral (e.g., LDMA0, LDMA1). + * + * @note This function is typically called automatically during system + * initialization when the dma_manager_init component is included + * in the project. + ******************************************************************************/ +void sl_dma_manager_instances_init(void); + +/** @} (end addtogroup dma_manager) */ + +#ifdef __cplusplus +} +#endif + +#endif // SL_DMA_MANAGER_INSTANCES_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_event_handler.c b/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_event_handler.c index 357a278f8..ad03d05c5 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_event_handler.c +++ b/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_event_handler.c @@ -5,7 +5,6 @@ #include "sl_hfxo_manager.h" #include "sl_rail_util_compatible_pa.h" #if !(defined(SLI_SI91X_ENABLE_BLE) && SLI_SI91X_ENABLE_BLE) -#include "sl_bluetooth.h" #include "sl_rail_util_power_manager_init.h" #endif // !SLI_SI91X_ENABLE_BLE #include "sl_rail_util_power_manager_init.h" @@ -14,6 +13,7 @@ #include "btl_interface.h" #include "sl_board_control.h" #include "platform-efr32.h" +#include "sl_dma_manager_instances.h" #include "sl_bt_rtos_adaptation.h" #include "sl_bluetooth.h" #include "sl_debug_swo.h" @@ -70,6 +70,7 @@ void sl_platform_init(void) sl_hfxo_manager_init_hardware(); sl_board_init(); bootloader_init(); + sl_dma_manager_instances_init(); nvm3_initDefault(); } diff --git a/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_simple_led_instances.h b/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_simple_led_instances.h index 928fbe942..08c8291ae 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_simple_led_instances.h +++ b/board-support/efr32/efr32mg26/BRD4118A/autogen/sl_simple_led_instances.h @@ -31,10 +31,6 @@ #ifndef SL_SIMPLE_LED_INSTANCES_H #define SL_SIMPLE_LED_INSTANCES_H -#ifdef __cplusplus -extern "C" { -#endif - #include "sl_simple_led.h" extern const sl_led_t sl_led_led0; @@ -47,8 +43,4 @@ extern const sl_led_t *sl_simple_led_array[]; void sl_simple_led_init_instances(void); -#ifdef __cplusplus -} -#endif - #endif // SL_SIMPLE_LED_INIT_H diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/app_properties_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/app_properties_config.h index 6a6b97666..34418403f 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/app_properties_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/app_properties_config.h @@ -63,3 +63,4 @@ // #endif // APP_PROPERTIES_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/btconf/gatt_configuration.btconf b/board-support/efr32/efr32mg26/BRD4118A/config/btconf/gatt_configuration.btconf deleted file mode 100644 index 4d1efd972..000000000 --- a/board-support/efr32/efr32mg26/BRD4118A/config/btconf/gatt_configuration.btconf +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - Abstract: The generic_access service contains generic information about the device. All available Characteristics are readonly. - - - - - Empty Example - - - - - - - - - Abstract: The external appearance of this device. The values are composed of a category (10-bits) and sub-categories (6-bits). - 0000 - - - - - - - - - Abstract: The Device Information Service exposes manufacturer and/or vendor information about a device. Summary: This service exposes manufacturer information about a device. The Device Information Service is instantiated as a Primary Service. Only one instance of the Device Information Service is exposed on a device. - - - - Abstract: The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device. - Silicon Labs - - - - - - - - Abstract: The value of this characteristic is a UTF-8 string representing the model number assigned by the device vendor. - Blue Gecko - - - - - - - - Abstract: The SYSTEM ID characteristic consists of a structure with two fields. The first field are the LSOs and the second field contains the MSOs. This is a 64-bit structure which consists of a 40-bit manufacturer-defined identifier concatenated with a 24 bit unique Organizationally Unique Identifier (OUI). The OUI is issued by the IEEE Registration Authority (http://standards.ieee.org/regauth/index.html) and is required to be used in accordance with IEEE Standard 802-2001.6 while the least significant 40 bits are manufacturer defined. If System ID generated based on a Bluetooth Device Address, it is required to be done as follows. System ID and the Bluetooth Device Address have a very similar structure: a Bluetooth Device Address is 48 bits in length and consists of a 24 bit Company Assigned Identifier (manufacturer defined identifier) concatenated with a 24 bit Company Identifier (OUI). In order to encapsulate a Bluetooth Device Address as System ID, the Company Identifier is concatenated with 0xFFFE followed by the Company Assigned Identifier of the Bluetooth Address. For more guidelines related to EUI-64, refer to http://standards.ieee.org/develop/regauth/tut/eui64.pdf. Examples: If the system ID is based of a Bluetooth Device Address with a Company Identifier (OUI) is 0x123456 and the Company Assigned Identifier is 0x9ABCDE, then the System Identifier is required to be 0x123456FFFE9ABCDE. - 000102030405 - - - - - - - - - Custom service - - - - Custom characteristic - 00 - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/btl_interface_cfg.h b/board-support/efr32/efr32mg26/BRD4118A/config/btl_interface_cfg.h new file mode 100644 index 000000000..fc17ccfff --- /dev/null +++ b/board-support/efr32/efr32mg26/BRD4118A/config/btl_interface_cfg.h @@ -0,0 +1,64 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_H +#define BTL_INTERFACE_CFG_H + +#if !defined(BOOTLOADER_APPLOADER) + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_1) +#include "btl_interface_cfg_s2c1.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_2) +#include "btl_interface_cfg_s2c2.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_3) +#include "btl_interface_cfg_s2c3.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_4) +#include "btl_interface_cfg_s2c4.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_5) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_6) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_8) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_9) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_13) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_11) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif +#endif// !BOOTLOADER_APPLOADER + +#endif // BTL_INTERFACE_CFG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/buffer_pool_allocator_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/buffer_pool_allocator_config.h index 2c3fd2e67..9a96fedf3 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/buffer_pool_allocator_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/buffer_pool_allocator_config.h @@ -27,3 +27,4 @@ // <<< end of configuration section >>> #endif // __BUFFER_POOL_ALLOCATOR_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/circular_queue_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/circular_queue_config.h index 81a7173d6..fe1ba75d3 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/circular_queue_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/circular_queue_config.h @@ -21,3 +21,4 @@ // <<< end of configuration section >>> #endif // __CIRCULAR_QUEUE_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/dmadrv_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/dmadrv_config.h index ed105e4f3..dd58324d7 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/dmadrv_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/dmadrv_config.h @@ -24,3 +24,4 @@ // <<< end of configuration section >>> #endif // DMADRV_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/nvm3_default_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/nvm3_default_config.h index 2bf415f94..95cdbb7f5 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/nvm3_default_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/nvm3_default_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif // NVM3_DEFAULT_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_802154_radio_priority_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_802154_radio_priority_config.h index 77334ba2c..cc09e8ca9 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_802154_radio_priority_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_802154_radio_priority_config.h @@ -55,3 +55,4 @@ // <<< end of configuration section >>> #endif //__SL_802154_RADIO_PRIORITY_CONFIG_H__ + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_bgapi_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_bgapi_config.h index 1ae43b6b5..522d1c904 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_bgapi_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_bgapi_config.h @@ -41,3 +41,4 @@ // <<< end of configuration section >>> #endif // SL_BGAPI_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_bluetooth_advertiser_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_bluetooth_advertiser_config.h index 00163cd9a..7cac58bfe 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_bluetooth_advertiser_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_bluetooth_advertiser_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_bluetooth_common_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_bluetooth_common_config.h new file mode 100644 index 000000000..55c3749d5 --- /dev/null +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_bluetooth_common_config.h @@ -0,0 +1,53 @@ +/***************************************************************************//** + * @file sl_bluetooth_common_config.h + * @brief Bluetooth Common configuration + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_BLUETOOTH_COMMON_CONFIG_H +#define SL_BLUETOOTH_COMMON_CONFIG_H + +// <<< Use Configuration Wizard in Context Menu >>> + +// Bluetooth Common Configuration + +// Buffer memory size for Bluetooth +// Default: 3150 +// Define the buffer memory size for buffering data over Bluetooth connections, advertising +// and scanning. The default value is an estimation for achieving adequate throughput +// and supporting multiple simultaneous connections. Consider increasing this value for +// higher data throughput over connections, advertising or scanning long advertisement data. +#ifndef SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE +#define SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE (3150) +#endif + +// Bluetooth Common Configuration + +// <<< end of configuration section >>> + +#endif // SL_BLUETOOTH_COMMON_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_bluetooth_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_bluetooth_config.h index 93bfbbcc4..cfaaef06d 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_bluetooth_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_bluetooth_config.h @@ -66,6 +66,9 @@ // advertising and scanning. The default value is an estimation for achieving adequate throughput // and supporting multiple simultaneous connections. Consider increasing this value for // higher data throughput over connections, advertising or scanning long advertisement data. +// NOTE: SL_BT_CONFIG_BUFFER_SIZE is deprecated in Simplicity SDK Suite v2026.6.0 and marked +// for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONFIG_BUFFER_SIZE is replaced by +// SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #define SL_BT_CONFIG_BUFFER_SIZE (3150) // Enable using a custom Bluetooth address stored in NVM3 @@ -124,11 +127,23 @@ // A negative value indicates some power loss in the path. For example, // with radiated TX power set to +10 dBm and this configuration to -10 // (i.e., 1 dBm loss), the transmitter output power will be set to +11 dBm. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_TX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_TX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_TX (0) // RF RX path gain in 0.1dBm unit // Default: 0 // RX RF path gain is used to compensate the RSSI reports from the Bluetooth Stack. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_RX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_RX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_RX (0) // End RF Path @@ -161,8 +176,6 @@ #include "sl_bt_stack_config.h" #include "sl_bgapi_config.h" // For SL_BGAPI_MAX_PAYLOAD_SIZE -// NOTE: Struct sl_btctrl_ll_priorities is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// The Link Layer scheduler priority configuration is initialized via the Bluetooth Low Energy Controller component. #define SL_BT_CONFIG_DEFAULT \ { \ .config_flags = SL_BT_CONFIG_FLAGS, \ @@ -179,3 +192,4 @@ } #endif // SL_BLUETOOTH_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_bluetooth_connection_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_bluetooth_connection_config.h index 73a382509..08bc34759 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_bluetooth_connection_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_bluetooth_connection_config.h @@ -46,3 +46,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_bt_rtos_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_bt_rtos_config.h index b80c07967..fec091919 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_bt_rtos_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_bt_rtos_config.h @@ -42,3 +42,4 @@ #endif #endif // SL_BT_RTOS_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_bt_rtos_config_s2.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_bt_rtos_config_s2.h index eb4fe3ea2..bc4c37420 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_bt_rtos_config_s2.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_bt_rtos_config_s2.h @@ -82,3 +82,4 @@ // <<< end of configuration section >>> #endif // SL_BT_RTOS_CONFIG_S2_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_btctrl_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_btctrl_config.h index 403df1ffe..8dfdb6281 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_btctrl_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_btctrl_config.h @@ -7,7 +7,10 @@ // Bluetooth Controller Buffer Memory // Default: SL_BT_CONTROLLER_BUFFER_MEMORY -// Define the Amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// Define the amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// NOTE: SL_BT_CONTROLLER_BUFFER_MEMORY is deprecated in Simplicity SDK Suite v2026.6.0 and +// marked for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONTROLLER_BUFFER_MEMORY is +// replaced by SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #ifndef SL_BT_CONTROLLER_BUFFER_MEMORY #define SL_BT_CONTROLLER_BUFFER_MEMORY (8192) #endif @@ -64,7 +67,7 @@ #define SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE (0) #endif -// Minimum radiated TX power level in 0.1dBm unit +// Minimum radiated TX power level in 0.1dBm units // Default: 0 // Define the minimum radiated TX power level. // If the configured power level is lower than what the radio supports, the minimum supported level will be used. @@ -83,7 +86,7 @@ #define SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE (0) #endif -// Maximum radiated TX power level in 0.1dBm unit +// Maximum radiated TX power level in 0.1dBm units // Default: 0 // Define the maximum radiated TX power level. // If the configured power level is higher than what the radio supports, the maximum supported level will be used. @@ -97,6 +100,28 @@ // End TX Power Levels +// RF Path + +// TX RF path gain in 0.1dB units +// Default: 0 +// The Bluetooth controller takes TX RF path gain into account when adjusting transmitter +// output power. Power radiated from the antenna then matches the application request. +// A negative value indicates some power loss in the path. For example, +// with radiated TX power set to +10 dBm and this configuration to -10 +// (i.e., 1 dB loss), the transmitter output power will be set to +11 dBm. +#ifndef SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB (0) +#endif + +// RX RF path gain in 0.1dB units +// Default: 0 +// RX RF path gain is used to compensate the RSSI reports received by the Bluetooth controller. +#ifndef SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB (0) +#endif + +// End RF Path + // Bluetooth Controller Configuration for LE Connection // Total transmitted packets threshold for all connections to send the Number Of Completed Packets HCI event to the host <1-255> // Default: 4 @@ -136,16 +161,6 @@ #define SL_BT_CONTROLLER_USE_LEGACY_VENDOR_SPECIFIC_EVENT_CODE (0) #endif -// Adaptive Frequency Hopping operation mode -// Active AFH -// Passive AFH -// Choose between active AFH and passive AFH -// Default: Active AFH -// SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY -#ifndef SL_BT_CONTROLLER_ADAPTIVITY_MODE -#define SL_BT_CONTROLLER_ADAPTIVITY_MODE (SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY) -#endif - // Advertising Configuration // Include TX Power in the extended header of primary extended advertising packets // This is default setting to all advertising sets unless it is specifically overridden by VS_SiliconLabs_Set_Advertising_Config_Bits. @@ -172,3 +187,4 @@ // <<< end of configuration section >>> #endif // SL_BTCTRL_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_btctrl_scheduler_priority_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_btctrl_scheduler_priority_config.h index 0eec28095..fd0e66f83 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_btctrl_scheduler_priority_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_btctrl_scheduler_priority_config.h @@ -146,7 +146,7 @@ // Rail Mapping Window Min // <0-255:1> -// Default: 16 +// Default: 32 // Define the minimum value of RAIL mapping window. // This parameter specifies how task priorities are passed to radio // coexistence and multiprotocol schedulers. @@ -157,17 +157,17 @@ // If coexistence or multiprotocol configuration is not used, then these // parameters have no effect. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 16 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 32 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN // Rail Mapping Window Range // <0-255:1> -// Default: 32 +// Default: 16 // Define the maximum value of the RAIL mapping window. // See SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN for a description of // this parameter. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 32 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 16 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX // PAwR Tx - Min @@ -220,9 +220,9 @@ .conn_max = SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX, \ .init_min = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN, \ .init_max = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX, \ - .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN, \ - .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX \ - - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN), \ + .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX, \ + .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN \ + - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX), \ 0, \ .adv_step = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP, \ .scan_step = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP, \ @@ -233,3 +233,4 @@ } #endif // SL_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_clock_manager_oscillator_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_clock_manager_oscillator_config.h index 00e9e8592..2a1a9d3b0 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_clock_manager_oscillator_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_clock_manager_oscillator_config.h @@ -374,3 +374,4 @@ // <<< sl:end pin_tool >>> #endif /* SL_CLOCK_MANAGER_OSCILLATOR_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_clock_manager_tree_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_clock_manager_tree_config.h index eddb68431..193dec506 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_clock_manager_tree_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_clock_manager_tree_config.h @@ -318,3 +318,4 @@ #endif /* SL_CLOCK_MANAGER_TREE_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_core_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_core_config.h index 27b173d2e..16d372fcf 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_core_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_core_config.h @@ -42,3 +42,4 @@ // <<< end of configuration section >>> #endif // SL_CORE_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_device_init_dcdc_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_device_init_dcdc_config.h index 4fb88397d..a14fce6d9 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_device_init_dcdc_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_device_init_dcdc_config.h @@ -56,3 +56,4 @@ // <<< end of configuration section >>> #endif // SL_DEVICE_INIT_DCDC_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_gp_interface_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_gp_interface_config.h index fd5aa20ea..0624696f3 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_gp_interface_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_gp_interface_config.h @@ -42,3 +42,4 @@ #define GP_TX_MAX_TIMEOUT_IN_MICRO_SECONDS 5000000 // // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_hfxo_manager_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_hfxo_manager_config.h index d9ccd3c70..87afc3778 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_hfxo_manager_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_hfxo_manager_config.h @@ -54,3 +54,4 @@ #endif /* SL_HFXO_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_main_start_task_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_main_start_task_config.h index 7752c098f..7cc81a4da 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_main_start_task_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_main_start_task_config.h @@ -103,3 +103,4 @@ #endif /* SL_MAIN_START_TASK_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_memory_manager_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_memory_manager_config.h index 4a16c29fe..02af7ec0c 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_memory_manager_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_memory_manager_config.h @@ -47,6 +47,12 @@ // Default: 1 #define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 +// Enables the double free protection for the pool. +// Setting this configuration to 0 will disable the double free protection for the memory pool. saving ~100 bytes of code. +// This setting has no effect on the memory pools power aware version. +// Default: 1 +#define SL_MEMORY_MANAGER_POOL_DOUBLE_FREE_PROTECTION_ENABLE 1 + // // <<< end of configuration section >>> @@ -58,4 +64,13 @@ // Default: 1 #define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 +// Enables retention statistics (retained size, retained high watermark, bank counts). +// Requires bank-retention hardware on the target; SL_CATALOG_BANK_RETENTION_CONTROL_* is defined only for devices that implement it (not every part or kit). +// Software configuration alone cannot add bank retention where the silicon has no such feature. +// Independent of heap statistics (SL_MEMORY_MANAGER_STATISTICS_API_ENABLE). +// When disabled, retention getters return (size_t)-1 or SL_STATUS_NOT_AVAILABLE. +// Default: 0. +#define SL_MEMORY_MANAGER_STATISTICS_RETENTION_ENABLE 0 + #endif /* SL_MEMORY_MANAGER_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_memory_manager_region_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_memory_manager_region_config.h index bd640b59b..a0a4007e7 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_memory_manager_region_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_memory_manager_region_config.h @@ -49,3 +49,4 @@ // <<< end of configuration section >>> #endif /* SL_MEMORY_MANAGER_REGION_CONFIG_H */ + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_openthread_features_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_openthread_features_config.h index a3697f8af..054fb51b4 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_openthread_features_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_openthread_features_config.h @@ -200,24 +200,31 @@ #endif // // IPv6 Limits -// Maximum IPv6 external unicast addresses +// Runtime IPv6 external address pools +// Enable runtime configuration of external unicast and multicast address pools via otIp6Init(). +#ifndef OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +#define OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE 0 +#endif +#if OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +// CLI support for runtime IPv6 external address pools +// Enable `ifconfig init` CLI command for testing otIp6Init() pool configuration. +#ifndef OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE +#define OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE 1 +#endif +// +#else +// Maximum IPv6 external unicast addresses (ignored in runtime mode) // Maximum number of IPv6 unicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS 4 #endif -// Maximum IPv6 external multicast addresses +// Maximum IPv6 external multicast addresses (ignored in runtime mode) // Maximum number of IPv6 multicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS 4 #endif -// Maximum IPv6 address registrations for MTD -// The maximum number of IPv6 address registrations for MTD. -// If left unchanged will default to the value of OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD -// 4 -#ifndef OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER -#define OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER (OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD) #endif // // Jam Detection @@ -286,37 +293,13 @@ #ifndef OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM #define OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM 2 #endif +// Instance-aware platform logging API +#ifndef OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE +#define OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE 0 +#endif +// // // -// Define maximum total source match table entries for both OT and Zigbee. -// In multi-instance builds (SoC or RCP/host), table must support all OT instances + Zigbee. -// For single instance (default), table sized to just OT children. -// This value is used to size all source match tables in both OT and Zigbee code. -// Note: this is purposedly not being setup with CMSIS annotations. -#ifndef RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE -#if SL_ZIGBEE_MAX_END_DEVICE_CHILDREN -// Multipan / DMP case: OT + Zigbee -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - ((OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * (OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM - 1)) \ - + SL_ZIGBEE_MAX_END_DEVICE_CHILDREN) -#else -// Multi-instance OT-only case -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - (OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM) -#endif -#else -// Single-instance OT (SoC / NCP / non-multipan RCP) -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES OPENTHREAD_CONFIG_MLE_MAX_CHILDREN -#endif -#endif -// Spinel Match Table -// Maximum number of spinel source match table entries -// Ensure that this value is the total of the number of openthread children times the number of openthread instances plus the number of Zigbee children. -#ifndef OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES -#define OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#endif -// // OTNS (OpenThread Network Simulator) #ifndef OPENTHREAD_CONFIG_OTNS_ENABLE #define OPENTHREAD_CONFIG_OTNS_ENABLE 0 @@ -379,6 +362,40 @@ #define OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE 1 #endif // +// Vendor Name string +// Vendor Name string +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +#if OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE +// Default: "RD:Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "RD:Silicon Labs" +#else +// Default: "Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "Silicon Labs" +#endif +#endif // OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +// Vendor Model string +// Vendor Model string +// Default: "OpenThread" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL "OpenThread" +#endif +// Vendor SW Version string +// Vendor SW Version string +// Default: "3.1.0.0" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION "3.1.0.0" +#endif +// Vendor App URL string +// Vendor App URL string +// Default: "www.silabs.com" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL "www.silabs.com" +#endif +// Run-time configuration of Vendor Info +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE 1 +#endif +// // Time Synchronization Service #ifndef OPENTHREAD_CONFIG_TIME_SYNC_ENABLE #define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 0 @@ -399,6 +416,11 @@ #define OPENTHREAD_CONFIG_MAC_BEACON_PAYLOAD_PARSING_ENABLE 1 #endif // +// Log crash dump after initialization +#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE +#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 +#endif +// // Radio Driver RX buffers // Maximum number of RX buffers // The maximum number of RX buffers to use in the radio driver. @@ -408,66 +430,7 @@ #endif // // -// Logging -// LOG_OUTPUT -// NONE -// APP -// PLATFORM_DEFINED -// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP -// OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT -#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#endif - -// DYNAMIC_LOG_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE -#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 -#endif - -// Enable Logging -#define OPENTHREAD_FULL_LOGS_ENABLE 0 -#if OPENTHREAD_FULL_LOGS_ENABLE - -// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. -// LOG_LEVEL -// NONE -// CRIT -// WARN -// NOTE -// INFO -// DEBG -// Default: OT_LOG_LEVEL_DEBG -// OT_LOG_LEVEL_DEBG -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL -#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG -#endif -// CLI -#ifndef OPENTHREAD_CONFIG_LOG_CLI -#define OPENTHREAD_CONFIG_LOG_CLI 1 -#endif -// PKT_DUMP -#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP -#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 -#endif -// PLATFORM -#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM -#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 -#endif -// PREPEND_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL -#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 -#endif - -#endif // OPENTHREAD_FULL_LOGS_ENABLE - -// Log crash dump after initialization -#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE -#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 -#endif - -// -// -// // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_FEATURES_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_openthread_log_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_openthread_log_config.h new file mode 100644 index 000000000..420892125 --- /dev/null +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_openthread_log_config.h @@ -0,0 +1,89 @@ +/******************************************************************************* + * @file + * @brief OpenThread log configuration file. + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_OPENTHREAD_LOG_CONFIG_H +#define _SL_OPENTHREAD_LOG_CONFIG_H + +//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- +// Logging +// LOG_OUTPUT +// NONE +// APP +// PLATFORM_DEFINED +// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP +// OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT +#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#endif + +// DYNAMIC_LOG_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE +#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 +#endif + +// Enable Logging +#define OPENTHREAD_FULL_LOGS_ENABLE 0 +#if OPENTHREAD_FULL_LOGS_ENABLE +// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. +// LOG_LEVEL +// NONE +// CRIT +// WARN +// NOTE +// INFO +// DEBG +// Default: OT_LOG_LEVEL_DEBG +// OT_LOG_LEVEL_DEBG +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL +#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG +#endif +// CLI +#ifndef OPENTHREAD_CONFIG_LOG_CLI +#define OPENTHREAD_CONFIG_LOG_CLI 1 +#endif +// PKT_DUMP +#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP +#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 +#endif +// PLATFORM +#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM +#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 +#endif +// PREPEND_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL +#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 +#endif +// +#endif // OPENTHREAD_FULL_LOGS_ENABLE +// +// +// <<< end of configuration section >>> +#endif // _SL_OPENTHREAD_LOG_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_openthread_radio_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_openthread_radio_config.h index 478a72430..1735c91c6 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_openthread_radio_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_openthread_radio_config.h @@ -40,6 +40,11 @@ #define SL_OPENTHREAD_RSSI_AVERAGING_TIME 16 // us // RSSI Average Timeout [us] #define SL_OPENTHREAD_RSSI_AVERAGING_TIMEOUT 300 // us +// Debug Counters Support +#ifndef RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT +#define RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT 0 // Set to 1 to enable debug counters in radio.c +#endif // // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_RADIO_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_openthread_rtos_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_openthread_rtos_config.h index 6dc710fcc..16a2b1709 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_openthread_rtos_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_openthread_rtos_config.h @@ -72,18 +72,10 @@ #define SL_OPENTHREAD_APP_TASK_MEM_SIZE (4608) // OpenThread serial task stack size in bytes <1000-20000> -// Default: 3072 +// Default: 3840 // Defines the stack size of the OpenThread RTOS serial task. The value is in bytes and // and will be word aligned when it is applied at the task creation. -#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3072) - -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread serial task prority -// Default: 16 (CMSIS-RTOS2 osPriorityBelowNormal) -// Defines OpenThread serial task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_SERIAL_TASK_PRIORITY (16) +#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3840) // // App Task @@ -107,3 +99,4 @@ // // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_power_manager_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_power_manager_config.h index 86b9fef27..1c71950d9 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_power_manager_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_power_manager_config.h @@ -98,3 +98,4 @@ #endif /* SL_POWER_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_pa_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_pa_config.h index 01edb4233..a87c90fda 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_pa_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_pa_config.h @@ -81,3 +81,4 @@ // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_PA_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_pa_tables_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_pa_tables_config.h index 1242ebfef..479b618bf 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_pa_tables_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_pa_tables_config.h @@ -47,3 +47,4 @@ #include SL_RAIL_UTIL_PA_TABLE_HEADER #endif // SL_RAIL_UTIL_PA_TABLES_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_power_manager_init_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_power_manager_init_config.h index cbc69f24d..bcc7596c5 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_power_manager_init_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_power_manager_init_config.h @@ -42,3 +42,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_rssi_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_rssi_config.h index 938227e1d..a0e22c644 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_rssi_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_rssi_config.h @@ -46,3 +46,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_RSSI_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_sequencer_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_sequencer_config.h index 640ef0c0d..02977b219 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_sequencer_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_rail_util_sequencer_config.h @@ -44,3 +44,4 @@ extern "C" { #endif #endif // SL_RAIL_UTIL_SEQUENCER_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_simple_button_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_simple_button_config.h index 531f4f208..4cd53a96b 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_simple_button_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_simple_button_config.h @@ -70,3 +70,4 @@ // <<< end of configuration section >>> #endif // SL_SIMPLE_BUTTON_CONFIG_H + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/sl_sleeptimer_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/sl_sleeptimer_config.h index 8344ef5f1..c638bfeed 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/sl_sleeptimer_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/sl_sleeptimer_config.h @@ -52,6 +52,7 @@ // WTIMER // TIMER // Selection of the Timer Peripheral Used by the Sleeptimer +// If BURTC is needed as an EM4 wake-up source, it must not be used by Sleeptimer. #define SL_SLEEPTIMER_PERIPHERAL SL_SLEEPTIMER_PERIPHERAL_DEFAULT // TIMER/WTIMER Instance Used by Sleeptimer (not applicable for other peripherals) @@ -80,3 +81,4 @@ #endif /* SLEEPTIMER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/efr32mg26/BRD4118A/config/uartdrv_config.h b/board-support/efr32/efr32mg26/BRD4118A/config/uartdrv_config.h index f41b347e1..b0fc7f703 100644 --- a/board-support/efr32/efr32mg26/BRD4118A/config/uartdrv_config.h +++ b/board-support/efr32/efr32mg26/BRD4118A/config/uartdrv_config.h @@ -121,3 +121,4 @@ /** @} (end addtogroup uartdrv) */ #endif /* __SILICON_LABS_UARTDRV_CONFIG_H__ */ + diff --git a/board-support/efr32/mgm24/BRD2704A/autogen/gatt_db.h b/board-support/efr32/mgm24/BRD2704A/autogen/gatt_db.h index c179e6b28..b3a2e67f9 100644 --- a/board-support/efr32/mgm24/BRD2704A/autogen/gatt_db.h +++ b/board-support/efr32/mgm24/BRD2704A/autogen/gatt_db.h @@ -5,10 +5,6 @@ #ifndef __GATT_DB_H #define __GATT_DB_H -#if __cplusplus -extern "C" { -#endif - #include "sli_bt_gattdb_def.h" extern const sli_bt_gattdb_t gattdb; @@ -31,8 +27,5 @@ extern const sli_bt_gattdb_t gattdb; #define gattdb_CHIPoBLEChar_Tx_len 247 #define gattdb_CHIPoBLEChar_C3_len 512 -#if __cplusplus -} -#endif #endif // __GATT_DB_H diff --git a/board-support/efr32/mgm24/BRD2704A/autogen/sl_bluetooth.c b/board-support/efr32/mgm24/BRD2704A/autogen/sl_bluetooth.c index 0a5f1a969..0cf47b680 100644 --- a/board-support/efr32/mgm24/BRD2704A/autogen/sl_bluetooth.c +++ b/board-support/efr32/mgm24/BRD2704A/autogen/sl_bluetooth.c @@ -76,13 +76,13 @@ void sl_bt_step(void) // Check the length of the next event, if any, and verify that the application // can process it. To prevent data loss, the event will be kept in the stack's // queue if the application cannot process it at the moment. - size_t event_len = sli_bgapi_device_peek_event_len(&sli_bt_bgapi_device); + size_t event_len = sli_bgapi_device_peek_event_len(sli_bt_bgapi_device); if ((event_len == 0) || (!sl_bt_can_process_event(event_len))) { return; } // Pop the event and process it if successful - sl_status_t status = sli_bgapi_device_pop_event(&sli_bt_bgapi_device, + sl_status_t status = sli_bgapi_device_pop_event(sli_bt_bgapi_device, sizeof(evt), &evt); diff --git a/board-support/efr32/mgm24/BRD2704A/autogen/sl_component_catalog.h b/board-support/efr32/mgm24/BRD2704A/autogen/sl_component_catalog.h index 6c4ae0e88..b33d4fe4e 100644 --- a/board-support/efr32/mgm24/BRD2704A/autogen/sl_component_catalog.h +++ b/board-support/efr32/mgm24/BRD2704A/autogen/sl_component_catalog.h @@ -4,7 +4,9 @@ // APIs present in project #define SL_CATALOG_BGAPI_PROTOCOL_PRESENT #define SL_CATALOG_BGAPI_PROTOCOL_RTOS_ADAPTATION_PRESENT +#define SL_CATALOG_BLUETOOTH_COMMON_PRESENT #define SL_CATALOG_BLUETOOTH_CONFIGURATION_PRESENT +#define SL_CATALOG_BLUETOOTH_CRYPTO_LIB_PSA_PRESENT #define SL_CATALOG_BLUETOOTH_CTE_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_CS_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_FEATURE_ADVERTISER_PRESENT @@ -26,7 +28,9 @@ #define SL_CATALOG_CPP_SUPPORT_PRESENT #define SL_CATALOG_DEVICE_INIT_PRESENT #define SL_CATALOG_DEVICE_INIT_DCDC_PRESENT +#define SL_CATALOG_DMA_MANAGER_PRESENT #define SL_CATALOG_EMLIB_CORE_PRESENT +#define SL_CATALOG_EMLIB_GPIO_PRESENT #define SL_CATALOG_EMLIB_RMU_PRESENT #define SL_CATALOG_FREERTOS_KERNEL_PRESENT #define SL_CATALOG_KERNEL_PRESENT @@ -50,7 +54,7 @@ #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_SEGGER_RTT_PRESENT #define SL_CATALOG_LED0_PRESENT @@ -58,10 +62,22 @@ #define SL_CATALOG_SIMPLE_LED_LED0_PRESENT #define SL_CATALOG_SL_CORE_PRESENT #define SL_CATALOG_SL_MAIN_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_COMPATIBLE_PA_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_SEQUENCER_PRESENT +#define SL_CATALOG_RAIL_UTIL_SEQUENCER_PRESENT #define SL_CATALOG_SLEEPTIMER_PRESENT #define SL_CATALOG_SLI_PROTOCOL_CRYPTO_PRESENT #if defined(CONFIG_ENABLE_UART) #define SL_CATALOG_UARTDRV_EUSART_PRESENT -#endif +#define SL_CATALOG_OPENTHREAD_UART_PRESENT +#endif // CONFIG_ENABLE_UART #endif // SL_COMPONENT_CATALOG_H diff --git a/board-support/efr32/mgm24/BRD2704A/autogen/sl_dma_manager_instances.c b/board-support/efr32/mgm24/BRD2704A/autogen/sl_dma_manager_instances.c new file mode 100644 index 000000000..f4339b2ed --- /dev/null +++ b/board-support/efr32/mgm24/BRD2704A/autogen/sl_dma_manager_instances.c @@ -0,0 +1,51 @@ +/***************************************************************************//** + * @file + * @brief DMA Manager Instances Initialization. + ******************************************************************************* + * # License + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_dma_manager_instances.h" +#include "sl_dma_manager.h" +#include "sl_device_peripheral.h" + + + +sl_dma_handle_t sl_dma_handle_ldma0; + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + ******************************************************************************/ +void sl_dma_manager_instances_init(void) +{ + + // Initialize DMA Manager instance: LDMA0 + sl_dma_manager_init(&sl_dma_handle_ldma0, SL_PERIPHERAL_DMA_LDMA0); + +} + + diff --git a/board-support/efr32/mgm24/BRD2704A/autogen/sl_dma_manager_instances.h b/board-support/efr32/mgm24/BRD2704A/autogen/sl_dma_manager_instances.h new file mode 100644 index 000000000..1580ad2b2 --- /dev/null +++ b/board-support/efr32/mgm24/BRD2704A/autogen/sl_dma_manager_instances.h @@ -0,0 +1,71 @@ +/***************************************************************************//** + * @file + * @brief DMA Manager Instances API. + ******************************************************************************* + * # License + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_DMA_MANAGER_INSTANCES_H +#define SL_DMA_MANAGER_INSTANCES_H + +#include "sl_dma_manager.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/***************************************************************************//** + * @addtogroup dma_manager DMA Manager + * @{ + ******************************************************************************/ + + + +extern sl_dma_handle_t sl_dma_handle_ldma0; + + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + * + * @details This function initializes all DMA Manager instances that have been + * configured through the component system. Each instance corresponds + * to a DMA peripheral (e.g., LDMA0, LDMA1). + * + * @note This function is typically called automatically during system + * initialization when the dma_manager_init component is included + * in the project. + ******************************************************************************/ +void sl_dma_manager_instances_init(void); + +/** @} (end addtogroup dma_manager) */ + +#ifdef __cplusplus +} +#endif + +#endif // SL_DMA_MANAGER_INSTANCES_H + diff --git a/board-support/efr32/mgm24/BRD2704A/autogen/sl_event_handler.c b/board-support/efr32/mgm24/BRD2704A/autogen/sl_event_handler.c index aea242a58..da02811c6 100644 --- a/board-support/efr32/mgm24/BRD2704A/autogen/sl_event_handler.c +++ b/board-support/efr32/mgm24/BRD2704A/autogen/sl_event_handler.c @@ -5,7 +5,6 @@ #include "sl_hfxo_manager.h" #include "sl_rail_util_compatible_pa.h" #if !(defined(SLI_SI91X_ENABLE_BLE) && SLI_SI91X_ENABLE_BLE) -#include "sl_bluetooth.h" #include "sl_rail_util_power_manager_init.h" #endif // !SLI_SI91X_ENABLE_BLE #include "sl_rail_util_power_manager_init.h" @@ -15,6 +14,7 @@ #include "sl_fem_util.h" #include "sl_board_control.h" #include "platform-efr32.h" +#include "sl_dma_manager_instances.h" #include "sl_bt_rtos_adaptation.h" #include "sl_bluetooth.h" #include "sl_debug_swo.h" @@ -62,6 +62,7 @@ void sl_platform_init(void) sl_hfxo_manager_init_hardware(); sl_board_init(); bootloader_init(); + sl_dma_manager_instances_init(); nvm3_initDefault(); } diff --git a/board-support/efr32/mgm24/BRD2704A/autogen/sl_simple_led_instances.h b/board-support/efr32/mgm24/BRD2704A/autogen/sl_simple_led_instances.h index 379b291fc..65e980033 100644 --- a/board-support/efr32/mgm24/BRD2704A/autogen/sl_simple_led_instances.h +++ b/board-support/efr32/mgm24/BRD2704A/autogen/sl_simple_led_instances.h @@ -31,10 +31,6 @@ #ifndef SL_SIMPLE_LED_INSTANCES_H #define SL_SIMPLE_LED_INSTANCES_H -#ifdef __cplusplus -extern "C" { -#endif - #include "sl_simple_led.h" extern const sl_led_t sl_led_led0; @@ -46,8 +42,4 @@ extern const sl_led_t *sl_simple_led_array[]; void sl_simple_led_init_instances(void); -#ifdef __cplusplus -} -#endif - #endif // SL_SIMPLE_LED_INIT_H diff --git a/board-support/efr32/mgm24/BRD2704A/config/app_properties_config.h b/board-support/efr32/mgm24/BRD2704A/config/app_properties_config.h index 6a6b97666..34418403f 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/app_properties_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/app_properties_config.h @@ -63,3 +63,4 @@ // #endif // APP_PROPERTIES_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/btconf/gatt_configuration.btconf b/board-support/efr32/mgm24/BRD2704A/config/btconf/gatt_configuration.btconf deleted file mode 100644 index 4d1efd972..000000000 --- a/board-support/efr32/mgm24/BRD2704A/config/btconf/gatt_configuration.btconf +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - Abstract: The generic_access service contains generic information about the device. All available Characteristics are readonly. - - - - - Empty Example - - - - - - - - - Abstract: The external appearance of this device. The values are composed of a category (10-bits) and sub-categories (6-bits). - 0000 - - - - - - - - - Abstract: The Device Information Service exposes manufacturer and/or vendor information about a device. Summary: This service exposes manufacturer information about a device. The Device Information Service is instantiated as a Primary Service. Only one instance of the Device Information Service is exposed on a device. - - - - Abstract: The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device. - Silicon Labs - - - - - - - - Abstract: The value of this characteristic is a UTF-8 string representing the model number assigned by the device vendor. - Blue Gecko - - - - - - - - Abstract: The SYSTEM ID characteristic consists of a structure with two fields. The first field are the LSOs and the second field contains the MSOs. This is a 64-bit structure which consists of a 40-bit manufacturer-defined identifier concatenated with a 24 bit unique Organizationally Unique Identifier (OUI). The OUI is issued by the IEEE Registration Authority (http://standards.ieee.org/regauth/index.html) and is required to be used in accordance with IEEE Standard 802-2001.6 while the least significant 40 bits are manufacturer defined. If System ID generated based on a Bluetooth Device Address, it is required to be done as follows. System ID and the Bluetooth Device Address have a very similar structure: a Bluetooth Device Address is 48 bits in length and consists of a 24 bit Company Assigned Identifier (manufacturer defined identifier) concatenated with a 24 bit Company Identifier (OUI). In order to encapsulate a Bluetooth Device Address as System ID, the Company Identifier is concatenated with 0xFFFE followed by the Company Assigned Identifier of the Bluetooth Address. For more guidelines related to EUI-64, refer to http://standards.ieee.org/develop/regauth/tut/eui64.pdf. Examples: If the system ID is based of a Bluetooth Device Address with a Company Identifier (OUI) is 0x123456 and the Company Assigned Identifier is 0x9ABCDE, then the System Identifier is required to be 0x123456FFFE9ABCDE. - 000102030405 - - - - - - - - - Custom service - - - - Custom characteristic - 00 - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - diff --git a/board-support/efr32/mgm24/BRD2704A/config/btl_interface_cfg.h b/board-support/efr32/mgm24/BRD2704A/config/btl_interface_cfg.h new file mode 100644 index 000000000..fc17ccfff --- /dev/null +++ b/board-support/efr32/mgm24/BRD2704A/config/btl_interface_cfg.h @@ -0,0 +1,64 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_H +#define BTL_INTERFACE_CFG_H + +#if !defined(BOOTLOADER_APPLOADER) + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_1) +#include "btl_interface_cfg_s2c1.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_2) +#include "btl_interface_cfg_s2c2.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_3) +#include "btl_interface_cfg_s2c3.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_4) +#include "btl_interface_cfg_s2c4.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_5) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_6) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_8) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_9) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_13) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_11) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif +#endif// !BOOTLOADER_APPLOADER + +#endif // BTL_INTERFACE_CFG_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/btl_interface_cfg_s2c4.h b/board-support/efr32/mgm24/BRD2704A/config/btl_interface_cfg_s2c4.h new file mode 100644 index 000000000..a93bdec95 --- /dev/null +++ b/board-support/efr32/mgm24/BRD2704A/config/btl_interface_cfg_s2c4.h @@ -0,0 +1,322 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_S2C4_H +#define BTL_INTERFACE_CFG_S2C4_H + +// <<< Use Configuration Wizard in Context Menu >>> +// Bootloader Interface Trust Zone Security State Configuration + +// Disable multi tiered fallback logic +// The fault handling logic as well as the USART auto-detection logic will be disabled. +// The re-configuration of SMU will be handled by querying the running bootloader +// for the peripheral list. Querying the peripheral list is supported from the bootloader +// version 2.0.0. Check for the BOOTLOADER_CAPABILITY_PERIPHERAL_LIST capability to +// see if the running bootloader supports querying the peripheral list. +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 0 + +// Disable peripheral access fault handling +// The fault handling triggered by an erroneous access of peripherals will be disabled. +// +// This should be disabled iff all the peripherals that are in use by the bootloader +// have been properly configured by the "Manually override security state of peripherals" option. +#define BOOTLOADER_DISABLE_NVM3_FAULT_HANDLING 0 + +// Manually override the security state of peripherals in use by the bootloader +// Default: 0. +// Manually override the security state of peripherals. Choose the peripherals touched +// by the customized code to have a valid secure access state before interacting with the bootloader +// In practice, this means that the chosen peripherals will be available at the secure address, +// which is accessible by the bootloader. Once the application is entered back the secure access state +// is changed back to the original state. +// +// The USART auto-detection logic that detects which, if any, USART is in use by the bootloader +// will be disabled. Make sure to choose the correct USART used by the bootloader. +#define BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE 0 +// EMU +// Update secure access state of EMU before calling into bootloader +#define BOOTLOADER_PPUSATD0_EMU 0 + +// CMU +// Update secure access state of CMU before calling into bootloader +#define BOOTLOADER_PPUSATD0_CMU 0 + +// HFRCO0 +// Update secure access state of HFRCO0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_HFRCO0 0 + +// FSRCO +// Update secure access state of FSRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_FSRCO 0 + +// DPLL0 +// Update secure access state of DPLL0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_DPLL0 0 + +// LFXO +// Update secure access state of LFXO before calling into bootloader +#define BOOTLOADER_PPUSATD0_LFXO 0 + +// LFRCO +// Update secure access state of LFRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_LFRCO 0 + +// ULFRCO +// Update secure access state of ULFRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_ULFRCO 0 + +// MSC +// Update secure access state of MSC before calling into bootloader +#define BOOTLOADER_PPUSATD0_MSC 0 + +// ICACHE0 +// Update secure access state of ICACHE0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_ICACHE0 0 + +// PRS +// Update secure access state of PRS before calling into bootloader +#define BOOTLOADER_PPUSATD0_PRS 0 + +// GPIO +// Update secure access state of GPIO before calling into bootloader +#define BOOTLOADER_PPUSATD0_GPIO 0 + +// LDMA +// Update secure access state of LDMA before calling into bootloader +#define BOOTLOADER_PPUSATD0_LDMA 0 + +// LDMAXBAR +// Update secure access state of LDMAXBAR before calling into bootloader +#define BOOTLOADER_PPUSATD0_LDMAXBAR 0 + +// TIMER0 +// Update secure access state of TIMER0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER0 0 + +// TIMER1 +// Update secure access state of TIMER1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER1 0 + +// TIMER2 +// Update secure access state of TIMER2 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER2 0 + +// TIMER3 +// Update secure access state of TIMER3 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER3 0 + +// TIMER4 +// Update secure access state of TIMER4 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER4 0 + +// USART0 +// Update secure access state of USART0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_USART0 0 + +// BURTC +// Update secure access state of BURTC before calling into bootloader +#define BOOTLOADER_PPUSATD0_BURTC 0 + +// I2C1 +// Update secure access state of I2C1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_I2C1 0 + +// CHIPTESTCTRL +// Update secure access state of CHIPTESTCTRL before calling into bootloader +#define BOOTLOADER_PPUSATD0_CHIPTESTCTRL 0 + +// SYSCFGCFGNS +// Update secure access state of SYSCFGCFGNS before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSCFGCFGNS 0 + +// SYSCFG +// Update secure access state of SYSCFG before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSCFG 0 + +// BURAM +// Update secure access state of BURAM before calling into bootloader +#define BOOTLOADER_PPUSATD0_BURAM 0 + +// GPCRC +// Update secure access state of GPCRC before calling into bootloader +#define BOOTLOADER_PPUSATD0_GPCRC 0 + +// DCDC +// Update secure access state of DCDC before calling into bootloader +#define BOOTLOADER_PPUSATD0_DCDC 0 + +// HOSTMAILBOX +// Update secure access state of HOSTMAILBOX before calling into bootloader +#define BOOTLOADER_PPUSATD0_HOSTMAILBOX 0 + +// EUSART1 +// Update secure access state of EUSART1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_EUSART1 0 + +// SYSRTC +// Update secure access state of SYSRTC before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSRTC 0 + +// KEYSCAN +// Update secure access state of KEYSCAN before calling into bootloader +#define BOOTLOADER_PPUSATD1_KEYSCAN 0 + +// DMEM +// Update secure access state of DMEM before calling into bootloader +#define BOOTLOADER_PPUSATD1_DMEM 0 + +// RADIOAES +// Update secure access state of RADIOAES before calling into bootloader +#define BOOTLOADER_PPUSATD1_RADIOAES 0 + +// SMU +// Update secure access state of SMU before calling into bootloader +#define BOOTLOADER_PPUSATD1_SMU 0 + +// SMUCFGNS +// Update secure access state of SMUCFGNS before calling into bootloader +#define BOOTLOADER_PPUSATD1_SMUCFGNS 0 + +// LETIMER0 +// Update secure access state of LETIMER0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_LETIMER0 0 + +// IADC0 +// Update secure access state of IADC0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_IADC0 0 + +// ACMP0 +// Update secure access state of ACMP0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_ACMP0 0 + +// ACMP1 +// Update secure access state of ACMP1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_ACMP1 0 + +// AMUXCP0 +// Update secure access state of AMUXCP0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_AMUXCP0 0 + +// VDAC0 +// Update secure access state of VDAC0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_VDAC0 0 + +// VDAC1 +// Update secure access state of VDAC1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_VDAC1 0 + +// PCNT +// Update secure access state of PCNT before calling into bootloader +#define BOOTLOADER_PPUSATD1_PCNT 0 + +// HFRCO1 +// Update secure access state of HFRCO1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_HFRCO1 0 + +// HFXO0 +// Update secure access state of HFXO0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_HFXO0 0 + +// I2C0 +// Update secure access state of I2C0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_I2C0 0 + +// WDOG0 +// Update secure access state of WDOG0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_WDOG0 0 + +// WDOG1 +// Update secure access state of WDOG1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_WDOG1 0 + +// EUSART0 +// Update secure access state of EUSART0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_EUSART0 0 + +// SEMAILBOX +// Update secure access state of SEMAILBOX before calling into bootloader +#define BOOTLOADER_PPUSATD1_SEMAILBOX 0 + +// MVP +// Update secure access state of MVP before calling into bootloader +#define BOOTLOADER_PPUSATD1_MVP 0 + +// AHBRADIO +// Update secure access state of AHBRADIO before calling into bootloader +#define BOOTLOADER_PPUSATD1_AHBRADIO 0 +// + +// +// <<< end of configuration section >>> + +#if BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE == 1 +#define BOOTLOADER_PPUSATD0_MASK ((BOOTLOADER_PPUSATD0_EMU << _SMU_PPUSATD0_EMU_SHIFT) \ + | (BOOTLOADER_PPUSATD0_CMU << _SMU_PPUSATD0_CMU_SHIFT) \ + | (BOOTLOADER_PPUSATD0_HFRCO0 << _SMU_PPUSATD0_HFRCO0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_FSRCO << _SMU_PPUSATD0_FSRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_DPLL0 << _SMU_PPUSATD0_DPLL0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LFXO << _SMU_PPUSATD0_LFXO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LFRCO << _SMU_PPUSATD0_LFRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_ULFRCO << _SMU_PPUSATD0_ULFRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_MSC << _SMU_PPUSATD0_MSC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_ICACHE0 << _SMU_PPUSATD0_ICACHE0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_PRS << _SMU_PPUSATD0_PRS_SHIFT) \ + | (BOOTLOADER_PPUSATD0_GPIO << _SMU_PPUSATD0_GPIO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LDMA << _SMU_PPUSATD0_LDMA_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LDMAXBAR << _SMU_PPUSATD0_LDMAXBAR_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER0 << _SMU_PPUSATD0_TIMER0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER1 << _SMU_PPUSATD0_TIMER1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER2 << _SMU_PPUSATD0_TIMER2_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER3 << _SMU_PPUSATD0_TIMER3_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER4 << _SMU_PPUSATD0_TIMER4_SHIFT) \ + | (BOOTLOADER_PPUSATD0_USART0 << _SMU_PPUSATD0_USART0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_BURTC << _SMU_PPUSATD0_BURTC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_I2C1 << _SMU_PPUSATD0_I2C1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_CHIPTESTCTRL << _SMU_PPUSATD0_CHIPTESTCTRL_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSCFGCFGNS << _SMU_PPUSATD0_SYSCFGCFGNS_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSCFG << _SMU_PPUSATD0_SYSCFG_SHIFT) \ + | (BOOTLOADER_PPUSATD0_BURAM << _SMU_PPUSATD0_BURAM_SHIFT) \ + | (BOOTLOADER_PPUSATD0_GPCRC << _SMU_PPUSATD0_GPCRC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_DCDC << _SMU_PPUSATD0_DCDC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_HOSTMAILBOX << _SMU_PPUSATD0_HOSTMAILBOX_SHIFT) \ + | (BOOTLOADER_PPUSATD0_EUSART1 << _SMU_PPUSATD0_EUSART1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSRTC << _SMU_PPUSATD0_SYSRTC_SHIFT)) +#define BOOTLOADER_PPUSATD1_MASK ((BOOTLOADER_PPUSATD1_KEYSCAN << _SMU_PPUSATD1_KEYSCAN_SHIFT) \ + | (BOOTLOADER_PPUSATD1_DMEM << _SMU_PPUSATD1_DMEM_SHIFT) \ + | (BOOTLOADER_PPUSATD1_RADIOAES << _SMU_PPUSATD1_RADIOAES_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SMU << _SMU_PPUSATD1_SMU_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SMUCFGNS << _SMU_PPUSATD1_SMUCFGNS_SHIFT) \ + | (BOOTLOADER_PPUSATD1_LETIMER0 << _SMU_PPUSATD1_LETIMER0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_IADC0 << _SMU_PPUSATD1_IADC0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_ACMP0 << _SMU_PPUSATD1_ACMP0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_ACMP1 << _SMU_PPUSATD1_ACMP1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_AMUXCP0 << _SMU_PPUSATD1_AMUXCP0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_VDAC0 << _SMU_PPUSATD1_VDAC0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_VDAC1 << _SMU_PPUSATD1_VDAC1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_PCNT << _SMU_PPUSATD1_PCNT_SHIFT) \ + | (BOOTLOADER_PPUSATD1_HFRCO1 << _SMU_PPUSATD1_HFRCO1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_HFXO0 << _SMU_PPUSATD1_HFXO0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_I2C0 << _SMU_PPUSATD1_I2C0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_WDOG0 << _SMU_PPUSATD1_WDOG0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_WDOG1 << _SMU_PPUSATD1_WDOG1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_EUSART0 << _SMU_PPUSATD1_EUSART0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SEMAILBOX << _SMU_PPUSATD1_SEMAILBOX_SHIFT) \ + | (BOOTLOADER_PPUSATD1_MVP << _SMU_PPUSATD1_MVP_SHIFT) \ + | (BOOTLOADER_PPUSATD1_AHBRADIO << _SMU_PPUSATD1_AHBRADIO_SHIFT)) +#endif // BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE + +#endif // BTL_INTERFACE_CFG_S2C4_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/buffer_pool_allocator_config.h b/board-support/efr32/mgm24/BRD2704A/config/buffer_pool_allocator_config.h index 2c3fd2e67..9a96fedf3 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/buffer_pool_allocator_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/buffer_pool_allocator_config.h @@ -27,3 +27,4 @@ // <<< end of configuration section >>> #endif // __BUFFER_POOL_ALLOCATOR_CONFIG_H__ + diff --git a/board-support/efr32/mgm24/BRD2704A/config/circular_queue_config.h b/board-support/efr32/mgm24/BRD2704A/config/circular_queue_config.h index 81a7173d6..fe1ba75d3 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/circular_queue_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/circular_queue_config.h @@ -21,3 +21,4 @@ // <<< end of configuration section >>> #endif // __CIRCULAR_QUEUE_CONFIG_H__ + diff --git a/board-support/efr32/mgm24/BRD2704A/config/dmadrv_config.h b/board-support/efr32/mgm24/BRD2704A/config/dmadrv_config.h index ed105e4f3..dd58324d7 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/dmadrv_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/dmadrv_config.h @@ -24,3 +24,4 @@ // <<< end of configuration section >>> #endif // DMADRV_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/nvm3_default_config.h b/board-support/efr32/mgm24/BRD2704A/config/nvm3_default_config.h index 2bf415f94..95cdbb7f5 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/nvm3_default_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/nvm3_default_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif // NVM3_DEFAULT_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_802154_radio_priority_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_802154_radio_priority_config.h index 77334ba2c..cc09e8ca9 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_802154_radio_priority_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_802154_radio_priority_config.h @@ -55,3 +55,4 @@ // <<< end of configuration section >>> #endif //__SL_802154_RADIO_PRIORITY_CONFIG_H__ + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_bgapi_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_bgapi_config.h index 1ae43b6b5..522d1c904 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_bgapi_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_bgapi_config.h @@ -41,3 +41,4 @@ // <<< end of configuration section >>> #endif // SL_BGAPI_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_bluetooth_advertiser_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_bluetooth_advertiser_config.h index 00163cd9a..7cac58bfe 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_bluetooth_advertiser_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_bluetooth_advertiser_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_bluetooth_common_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_bluetooth_common_config.h new file mode 100644 index 000000000..55c3749d5 --- /dev/null +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_bluetooth_common_config.h @@ -0,0 +1,53 @@ +/***************************************************************************//** + * @file sl_bluetooth_common_config.h + * @brief Bluetooth Common configuration + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_BLUETOOTH_COMMON_CONFIG_H +#define SL_BLUETOOTH_COMMON_CONFIG_H + +// <<< Use Configuration Wizard in Context Menu >>> + +// Bluetooth Common Configuration + +// Buffer memory size for Bluetooth +// Default: 3150 +// Define the buffer memory size for buffering data over Bluetooth connections, advertising +// and scanning. The default value is an estimation for achieving adequate throughput +// and supporting multiple simultaneous connections. Consider increasing this value for +// higher data throughput over connections, advertising or scanning long advertisement data. +#ifndef SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE +#define SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE (3150) +#endif + +// Bluetooth Common Configuration + +// <<< end of configuration section >>> + +#endif // SL_BLUETOOTH_COMMON_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_bluetooth_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_bluetooth_config.h index 93bfbbcc4..cfaaef06d 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_bluetooth_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_bluetooth_config.h @@ -66,6 +66,9 @@ // advertising and scanning. The default value is an estimation for achieving adequate throughput // and supporting multiple simultaneous connections. Consider increasing this value for // higher data throughput over connections, advertising or scanning long advertisement data. +// NOTE: SL_BT_CONFIG_BUFFER_SIZE is deprecated in Simplicity SDK Suite v2026.6.0 and marked +// for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONFIG_BUFFER_SIZE is replaced by +// SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #define SL_BT_CONFIG_BUFFER_SIZE (3150) // Enable using a custom Bluetooth address stored in NVM3 @@ -124,11 +127,23 @@ // A negative value indicates some power loss in the path. For example, // with radiated TX power set to +10 dBm and this configuration to -10 // (i.e., 1 dBm loss), the transmitter output power will be set to +11 dBm. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_TX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_TX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_TX (0) // RF RX path gain in 0.1dBm unit // Default: 0 // RX RF path gain is used to compensate the RSSI reports from the Bluetooth Stack. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_RX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_RX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_RX (0) // End RF Path @@ -161,8 +176,6 @@ #include "sl_bt_stack_config.h" #include "sl_bgapi_config.h" // For SL_BGAPI_MAX_PAYLOAD_SIZE -// NOTE: Struct sl_btctrl_ll_priorities is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// The Link Layer scheduler priority configuration is initialized via the Bluetooth Low Energy Controller component. #define SL_BT_CONFIG_DEFAULT \ { \ .config_flags = SL_BT_CONFIG_FLAGS, \ @@ -179,3 +192,4 @@ } #endif // SL_BLUETOOTH_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_bluetooth_connection_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_bluetooth_connection_config.h index 73a382509..08bc34759 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_bluetooth_connection_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_bluetooth_connection_config.h @@ -46,3 +46,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_bt_rtos_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_bt_rtos_config.h index b80c07967..fec091919 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_bt_rtos_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_bt_rtos_config.h @@ -42,3 +42,4 @@ #endif #endif // SL_BT_RTOS_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_bt_rtos_config_s2.h b/board-support/efr32/mgm24/BRD2704A/config/sl_bt_rtos_config_s2.h index eb4fe3ea2..bc4c37420 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_bt_rtos_config_s2.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_bt_rtos_config_s2.h @@ -82,3 +82,4 @@ // <<< end of configuration section >>> #endif // SL_BT_RTOS_CONFIG_S2_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_btctrl_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_btctrl_config.h index 403df1ffe..8dfdb6281 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_btctrl_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_btctrl_config.h @@ -7,7 +7,10 @@ // Bluetooth Controller Buffer Memory // Default: SL_BT_CONTROLLER_BUFFER_MEMORY -// Define the Amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// Define the amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// NOTE: SL_BT_CONTROLLER_BUFFER_MEMORY is deprecated in Simplicity SDK Suite v2026.6.0 and +// marked for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONTROLLER_BUFFER_MEMORY is +// replaced by SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #ifndef SL_BT_CONTROLLER_BUFFER_MEMORY #define SL_BT_CONTROLLER_BUFFER_MEMORY (8192) #endif @@ -64,7 +67,7 @@ #define SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE (0) #endif -// Minimum radiated TX power level in 0.1dBm unit +// Minimum radiated TX power level in 0.1dBm units // Default: 0 // Define the minimum radiated TX power level. // If the configured power level is lower than what the radio supports, the minimum supported level will be used. @@ -83,7 +86,7 @@ #define SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE (0) #endif -// Maximum radiated TX power level in 0.1dBm unit +// Maximum radiated TX power level in 0.1dBm units // Default: 0 // Define the maximum radiated TX power level. // If the configured power level is higher than what the radio supports, the maximum supported level will be used. @@ -97,6 +100,28 @@ // End TX Power Levels +// RF Path + +// TX RF path gain in 0.1dB units +// Default: 0 +// The Bluetooth controller takes TX RF path gain into account when adjusting transmitter +// output power. Power radiated from the antenna then matches the application request. +// A negative value indicates some power loss in the path. For example, +// with radiated TX power set to +10 dBm and this configuration to -10 +// (i.e., 1 dB loss), the transmitter output power will be set to +11 dBm. +#ifndef SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB (0) +#endif + +// RX RF path gain in 0.1dB units +// Default: 0 +// RX RF path gain is used to compensate the RSSI reports received by the Bluetooth controller. +#ifndef SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB (0) +#endif + +// End RF Path + // Bluetooth Controller Configuration for LE Connection // Total transmitted packets threshold for all connections to send the Number Of Completed Packets HCI event to the host <1-255> // Default: 4 @@ -136,16 +161,6 @@ #define SL_BT_CONTROLLER_USE_LEGACY_VENDOR_SPECIFIC_EVENT_CODE (0) #endif -// Adaptive Frequency Hopping operation mode -// Active AFH -// Passive AFH -// Choose between active AFH and passive AFH -// Default: Active AFH -// SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY -#ifndef SL_BT_CONTROLLER_ADAPTIVITY_MODE -#define SL_BT_CONTROLLER_ADAPTIVITY_MODE (SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY) -#endif - // Advertising Configuration // Include TX Power in the extended header of primary extended advertising packets // This is default setting to all advertising sets unless it is specifically overridden by VS_SiliconLabs_Set_Advertising_Config_Bits. @@ -172,3 +187,4 @@ // <<< end of configuration section >>> #endif // SL_BTCTRL_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_btctrl_scheduler_priority_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_btctrl_scheduler_priority_config.h index 0eec28095..fd0e66f83 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_btctrl_scheduler_priority_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_btctrl_scheduler_priority_config.h @@ -146,7 +146,7 @@ // Rail Mapping Window Min // <0-255:1> -// Default: 16 +// Default: 32 // Define the minimum value of RAIL mapping window. // This parameter specifies how task priorities are passed to radio // coexistence and multiprotocol schedulers. @@ -157,17 +157,17 @@ // If coexistence or multiprotocol configuration is not used, then these // parameters have no effect. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 16 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 32 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN // Rail Mapping Window Range // <0-255:1> -// Default: 32 +// Default: 16 // Define the maximum value of the RAIL mapping window. // See SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN for a description of // this parameter. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 32 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 16 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX // PAwR Tx - Min @@ -220,9 +220,9 @@ .conn_max = SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX, \ .init_min = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN, \ .init_max = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX, \ - .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN, \ - .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX \ - - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN), \ + .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX, \ + .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN \ + - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX), \ 0, \ .adv_step = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP, \ .scan_step = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP, \ @@ -233,3 +233,4 @@ } #endif // SL_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_clock_manager_oscillator_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_clock_manager_oscillator_config.h index 3fc2a7c9b..6be746fbc 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_clock_manager_oscillator_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_clock_manager_oscillator_config.h @@ -374,3 +374,4 @@ // <<< sl:end pin_tool >>> #endif /* SL_CLOCK_MANAGER_OSCILLATOR_CONFIG_H */ + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_clock_manager_tree_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_clock_manager_tree_config.h index 74976e212..1d76d152d 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_clock_manager_tree_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_clock_manager_tree_config.h @@ -307,3 +307,4 @@ #endif /* SL_CLOCK_MANAGER_TREE_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_core_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_core_config.h index 27b173d2e..16d372fcf 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_core_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_core_config.h @@ -42,3 +42,4 @@ // <<< end of configuration section >>> #endif // SL_CORE_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_device_init_dcdc_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_device_init_dcdc_config.h index 35674eedf..a0a8241ec 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_device_init_dcdc_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_device_init_dcdc_config.h @@ -56,3 +56,4 @@ // <<< end of configuration section >>> #endif // SL_DEVICE_INIT_DCDC_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_fem_util_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_fem_util_config.h index d1281886b..022ce36ad 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_fem_util_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_fem_util_config.h @@ -74,3 +74,4 @@ #define SL_FEM_UTIL_RUNTIME_PHY_SELECT 0 #endif // SL_FEM_UTIL_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_gp_interface_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_gp_interface_config.h index fd5aa20ea..0624696f3 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_gp_interface_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_gp_interface_config.h @@ -42,3 +42,4 @@ #define GP_TX_MAX_TIMEOUT_IN_MICRO_SECONDS 5000000 // // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_hfxo_manager_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_hfxo_manager_config.h index d9ccd3c70..87afc3778 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_hfxo_manager_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_hfxo_manager_config.h @@ -54,3 +54,4 @@ #endif /* SL_HFXO_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_main_start_task_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_main_start_task_config.h index 7752c098f..7cc81a4da 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_main_start_task_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_main_start_task_config.h @@ -103,3 +103,4 @@ #endif /* SL_MAIN_START_TASK_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_memory_manager_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_memory_manager_config.h index 4a16c29fe..02af7ec0c 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_memory_manager_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_memory_manager_config.h @@ -47,6 +47,12 @@ // Default: 1 #define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 +// Enables the double free protection for the pool. +// Setting this configuration to 0 will disable the double free protection for the memory pool. saving ~100 bytes of code. +// This setting has no effect on the memory pools power aware version. +// Default: 1 +#define SL_MEMORY_MANAGER_POOL_DOUBLE_FREE_PROTECTION_ENABLE 1 + // // <<< end of configuration section >>> @@ -58,4 +64,13 @@ // Default: 1 #define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 +// Enables retention statistics (retained size, retained high watermark, bank counts). +// Requires bank-retention hardware on the target; SL_CATALOG_BANK_RETENTION_CONTROL_* is defined only for devices that implement it (not every part or kit). +// Software configuration alone cannot add bank retention where the silicon has no such feature. +// Independent of heap statistics (SL_MEMORY_MANAGER_STATISTICS_API_ENABLE). +// When disabled, retention getters return (size_t)-1 or SL_STATUS_NOT_AVAILABLE. +// Default: 0. +#define SL_MEMORY_MANAGER_STATISTICS_RETENTION_ENABLE 0 + #endif /* SL_MEMORY_MANAGER_CONFIG_H */ + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_memory_manager_region_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_memory_manager_region_config.h index bd640b59b..a0a4007e7 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_memory_manager_region_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_memory_manager_region_config.h @@ -49,3 +49,4 @@ // <<< end of configuration section >>> #endif /* SL_MEMORY_MANAGER_REGION_CONFIG_H */ + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_openthread_features_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_openthread_features_config.h index a3697f8af..054fb51b4 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_openthread_features_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_openthread_features_config.h @@ -200,24 +200,31 @@ #endif // // IPv6 Limits -// Maximum IPv6 external unicast addresses +// Runtime IPv6 external address pools +// Enable runtime configuration of external unicast and multicast address pools via otIp6Init(). +#ifndef OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +#define OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE 0 +#endif +#if OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +// CLI support for runtime IPv6 external address pools +// Enable `ifconfig init` CLI command for testing otIp6Init() pool configuration. +#ifndef OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE +#define OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE 1 +#endif +// +#else +// Maximum IPv6 external unicast addresses (ignored in runtime mode) // Maximum number of IPv6 unicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS 4 #endif -// Maximum IPv6 external multicast addresses +// Maximum IPv6 external multicast addresses (ignored in runtime mode) // Maximum number of IPv6 multicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS 4 #endif -// Maximum IPv6 address registrations for MTD -// The maximum number of IPv6 address registrations for MTD. -// If left unchanged will default to the value of OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD -// 4 -#ifndef OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER -#define OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER (OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD) #endif // // Jam Detection @@ -286,37 +293,13 @@ #ifndef OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM #define OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM 2 #endif +// Instance-aware platform logging API +#ifndef OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE +#define OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE 0 +#endif +// // // -// Define maximum total source match table entries for both OT and Zigbee. -// In multi-instance builds (SoC or RCP/host), table must support all OT instances + Zigbee. -// For single instance (default), table sized to just OT children. -// This value is used to size all source match tables in both OT and Zigbee code. -// Note: this is purposedly not being setup with CMSIS annotations. -#ifndef RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE -#if SL_ZIGBEE_MAX_END_DEVICE_CHILDREN -// Multipan / DMP case: OT + Zigbee -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - ((OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * (OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM - 1)) \ - + SL_ZIGBEE_MAX_END_DEVICE_CHILDREN) -#else -// Multi-instance OT-only case -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - (OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM) -#endif -#else -// Single-instance OT (SoC / NCP / non-multipan RCP) -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES OPENTHREAD_CONFIG_MLE_MAX_CHILDREN -#endif -#endif -// Spinel Match Table -// Maximum number of spinel source match table entries -// Ensure that this value is the total of the number of openthread children times the number of openthread instances plus the number of Zigbee children. -#ifndef OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES -#define OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#endif -// // OTNS (OpenThread Network Simulator) #ifndef OPENTHREAD_CONFIG_OTNS_ENABLE #define OPENTHREAD_CONFIG_OTNS_ENABLE 0 @@ -379,6 +362,40 @@ #define OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE 1 #endif // +// Vendor Name string +// Vendor Name string +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +#if OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE +// Default: "RD:Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "RD:Silicon Labs" +#else +// Default: "Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "Silicon Labs" +#endif +#endif // OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +// Vendor Model string +// Vendor Model string +// Default: "OpenThread" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL "OpenThread" +#endif +// Vendor SW Version string +// Vendor SW Version string +// Default: "3.1.0.0" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION "3.1.0.0" +#endif +// Vendor App URL string +// Vendor App URL string +// Default: "www.silabs.com" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL "www.silabs.com" +#endif +// Run-time configuration of Vendor Info +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE 1 +#endif +// // Time Synchronization Service #ifndef OPENTHREAD_CONFIG_TIME_SYNC_ENABLE #define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 0 @@ -399,6 +416,11 @@ #define OPENTHREAD_CONFIG_MAC_BEACON_PAYLOAD_PARSING_ENABLE 1 #endif // +// Log crash dump after initialization +#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE +#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 +#endif +// // Radio Driver RX buffers // Maximum number of RX buffers // The maximum number of RX buffers to use in the radio driver. @@ -408,66 +430,7 @@ #endif // // -// Logging -// LOG_OUTPUT -// NONE -// APP -// PLATFORM_DEFINED -// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP -// OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT -#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#endif - -// DYNAMIC_LOG_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE -#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 -#endif - -// Enable Logging -#define OPENTHREAD_FULL_LOGS_ENABLE 0 -#if OPENTHREAD_FULL_LOGS_ENABLE - -// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. -// LOG_LEVEL -// NONE -// CRIT -// WARN -// NOTE -// INFO -// DEBG -// Default: OT_LOG_LEVEL_DEBG -// OT_LOG_LEVEL_DEBG -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL -#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG -#endif -// CLI -#ifndef OPENTHREAD_CONFIG_LOG_CLI -#define OPENTHREAD_CONFIG_LOG_CLI 1 -#endif -// PKT_DUMP -#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP -#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 -#endif -// PLATFORM -#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM -#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 -#endif -// PREPEND_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL -#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 -#endif - -#endif // OPENTHREAD_FULL_LOGS_ENABLE - -// Log crash dump after initialization -#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE -#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 -#endif - -// -// -// // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_FEATURES_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_openthread_log_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_openthread_log_config.h new file mode 100644 index 000000000..420892125 --- /dev/null +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_openthread_log_config.h @@ -0,0 +1,89 @@ +/******************************************************************************* + * @file + * @brief OpenThread log configuration file. + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_OPENTHREAD_LOG_CONFIG_H +#define _SL_OPENTHREAD_LOG_CONFIG_H + +//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- +// Logging +// LOG_OUTPUT +// NONE +// APP +// PLATFORM_DEFINED +// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP +// OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT +#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#endif + +// DYNAMIC_LOG_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE +#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 +#endif + +// Enable Logging +#define OPENTHREAD_FULL_LOGS_ENABLE 0 +#if OPENTHREAD_FULL_LOGS_ENABLE +// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. +// LOG_LEVEL +// NONE +// CRIT +// WARN +// NOTE +// INFO +// DEBG +// Default: OT_LOG_LEVEL_DEBG +// OT_LOG_LEVEL_DEBG +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL +#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG +#endif +// CLI +#ifndef OPENTHREAD_CONFIG_LOG_CLI +#define OPENTHREAD_CONFIG_LOG_CLI 1 +#endif +// PKT_DUMP +#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP +#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 +#endif +// PLATFORM +#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM +#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 +#endif +// PREPEND_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL +#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 +#endif +// +#endif // OPENTHREAD_FULL_LOGS_ENABLE +// +// +// <<< end of configuration section >>> +#endif // _SL_OPENTHREAD_LOG_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_openthread_radio_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_openthread_radio_config.h index 478a72430..1735c91c6 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_openthread_radio_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_openthread_radio_config.h @@ -40,6 +40,11 @@ #define SL_OPENTHREAD_RSSI_AVERAGING_TIME 16 // us // RSSI Average Timeout [us] #define SL_OPENTHREAD_RSSI_AVERAGING_TIMEOUT 300 // us +// Debug Counters Support +#ifndef RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT +#define RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT 0 // Set to 1 to enable debug counters in radio.c +#endif // // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_RADIO_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_openthread_rtos_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_openthread_rtos_config.h index 6dc710fcc..16a2b1709 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_openthread_rtos_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_openthread_rtos_config.h @@ -72,18 +72,10 @@ #define SL_OPENTHREAD_APP_TASK_MEM_SIZE (4608) // OpenThread serial task stack size in bytes <1000-20000> -// Default: 3072 +// Default: 3840 // Defines the stack size of the OpenThread RTOS serial task. The value is in bytes and // and will be word aligned when it is applied at the task creation. -#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3072) - -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread serial task prority -// Default: 16 (CMSIS-RTOS2 osPriorityBelowNormal) -// Defines OpenThread serial task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_SERIAL_TASK_PRIORITY (16) +#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3840) // // App Task @@ -107,3 +99,4 @@ // // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_power_manager_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_power_manager_config.h index 86b9fef27..1c71950d9 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_power_manager_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_power_manager_config.h @@ -98,3 +98,4 @@ #endif /* SL_POWER_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_rail_util_pa_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_rail_util_pa_config.h index e43bfc96a..2d4f50c6f 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_rail_util_pa_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_rail_util_pa_config.h @@ -81,3 +81,4 @@ // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_PA_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_rail_util_power_manager_init_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_rail_util_power_manager_init_config.h index cbc69f24d..bcc7596c5 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_rail_util_power_manager_init_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_rail_util_power_manager_init_config.h @@ -42,3 +42,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_rail_util_rssi_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_rail_util_rssi_config.h index 128d705f5..d706e8785 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_rail_util_rssi_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_rail_util_rssi_config.h @@ -46,3 +46,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_RSSI_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_rail_util_sequencer_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_rail_util_sequencer_config.h index 72b05eb66..706e91c2f 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_rail_util_sequencer_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_rail_util_sequencer_config.h @@ -44,3 +44,4 @@ extern "C" { #endif #endif // SL_RAIL_UTIL_SEQUENCER_H + diff --git a/board-support/efr32/mgm24/BRD2704A/config/sl_sleeptimer_config.h b/board-support/efr32/mgm24/BRD2704A/config/sl_sleeptimer_config.h index 8344ef5f1..c638bfeed 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/sl_sleeptimer_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/sl_sleeptimer_config.h @@ -52,6 +52,7 @@ // WTIMER // TIMER // Selection of the Timer Peripheral Used by the Sleeptimer +// If BURTC is needed as an EM4 wake-up source, it must not be used by Sleeptimer. #define SL_SLEEPTIMER_PERIPHERAL SL_SLEEPTIMER_PERIPHERAL_DEFAULT // TIMER/WTIMER Instance Used by Sleeptimer (not applicable for other peripherals) @@ -80,3 +81,4 @@ #endif /* SLEEPTIMER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD2704A/config/uartdrv_config.h b/board-support/efr32/mgm24/BRD2704A/config/uartdrv_config.h index f41b347e1..b0fc7f703 100644 --- a/board-support/efr32/mgm24/BRD2704A/config/uartdrv_config.h +++ b/board-support/efr32/mgm24/BRD2704A/config/uartdrv_config.h @@ -121,3 +121,4 @@ /** @} (end addtogroup uartdrv) */ #endif /* __SILICON_LABS_UARTDRV_CONFIG_H__ */ + diff --git a/board-support/efr32/mgm24/BRD4316A/autogen/gatt_db.h b/board-support/efr32/mgm24/BRD4316A/autogen/gatt_db.h index c179e6b28..b3a2e67f9 100644 --- a/board-support/efr32/mgm24/BRD4316A/autogen/gatt_db.h +++ b/board-support/efr32/mgm24/BRD4316A/autogen/gatt_db.h @@ -5,10 +5,6 @@ #ifndef __GATT_DB_H #define __GATT_DB_H -#if __cplusplus -extern "C" { -#endif - #include "sli_bt_gattdb_def.h" extern const sli_bt_gattdb_t gattdb; @@ -31,8 +27,5 @@ extern const sli_bt_gattdb_t gattdb; #define gattdb_CHIPoBLEChar_Tx_len 247 #define gattdb_CHIPoBLEChar_C3_len 512 -#if __cplusplus -} -#endif #endif // __GATT_DB_H diff --git a/board-support/efr32/mgm24/BRD4316A/autogen/sl_bluetooth.c b/board-support/efr32/mgm24/BRD4316A/autogen/sl_bluetooth.c index 0a5f1a969..0cf47b680 100644 --- a/board-support/efr32/mgm24/BRD4316A/autogen/sl_bluetooth.c +++ b/board-support/efr32/mgm24/BRD4316A/autogen/sl_bluetooth.c @@ -76,13 +76,13 @@ void sl_bt_step(void) // Check the length of the next event, if any, and verify that the application // can process it. To prevent data loss, the event will be kept in the stack's // queue if the application cannot process it at the moment. - size_t event_len = sli_bgapi_device_peek_event_len(&sli_bt_bgapi_device); + size_t event_len = sli_bgapi_device_peek_event_len(sli_bt_bgapi_device); if ((event_len == 0) || (!sl_bt_can_process_event(event_len))) { return; } // Pop the event and process it if successful - sl_status_t status = sli_bgapi_device_pop_event(&sli_bt_bgapi_device, + sl_status_t status = sli_bgapi_device_pop_event(sli_bt_bgapi_device, sizeof(evt), &evt); diff --git a/board-support/efr32/mgm24/BRD4316A/autogen/sl_component_catalog.h b/board-support/efr32/mgm24/BRD4316A/autogen/sl_component_catalog.h index d3abc0290..593149215 100644 --- a/board-support/efr32/mgm24/BRD4316A/autogen/sl_component_catalog.h +++ b/board-support/efr32/mgm24/BRD4316A/autogen/sl_component_catalog.h @@ -4,7 +4,9 @@ // APIs present in project #define SL_CATALOG_BGAPI_PROTOCOL_PRESENT #define SL_CATALOG_BGAPI_PROTOCOL_RTOS_ADAPTATION_PRESENT +#define SL_CATALOG_BLUETOOTH_COMMON_PRESENT #define SL_CATALOG_BLUETOOTH_CONFIGURATION_PRESENT +#define SL_CATALOG_BLUETOOTH_CRYPTO_LIB_PSA_PRESENT #define SL_CATALOG_BLUETOOTH_CTE_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_CS_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_FEATURE_ADVERTISER_PRESENT @@ -26,7 +28,9 @@ #define SL_CATALOG_CPP_SUPPORT_PRESENT #define SL_CATALOG_DEVICE_INIT_PRESENT #define SL_CATALOG_DEVICE_INIT_DCDC_PRESENT +#define SL_CATALOG_DMA_MANAGER_PRESENT #define SL_CATALOG_EMLIB_CORE_PRESENT +#define SL_CATALOG_EMLIB_GPIO_PRESENT #define SL_CATALOG_EMLIB_RMU_PRESENT #define SL_CATALOG_FREERTOS_KERNEL_PRESENT #define SL_CATALOG_KERNEL_PRESENT @@ -43,7 +47,7 @@ #ifdef DISPLAY_ENABLED #define SL_CATALOG_DMD_MEMLCD_PRESENT #define SL_CATALOG_MEMLCD_USART_PRESENT -#endif +#endif // DISPLAY_ENABLED #ifdef CONFIG_USE_EXTERNAL_FLASH #define SL_CATALOG_MX25_FLASH_SHUTDOWN_USART_PRESENT #endif // CONFIG_USE_EXTERNAL_FLASH @@ -57,7 +61,7 @@ #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_SEGGER_RTT_PRESENT #define SL_CATALOG_BTN0_PRESENT @@ -67,10 +71,22 @@ #define SL_CATALOG_SIMPLE_BUTTON_BTN1_PRESENT #define SL_CATALOG_SL_CORE_PRESENT #define SL_CATALOG_SL_MAIN_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_COMPATIBLE_PA_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_SEQUENCER_PRESENT +#define SL_CATALOG_RAIL_UTIL_SEQUENCER_PRESENT #define SL_CATALOG_SLEEPTIMER_PRESENT #define SL_CATALOG_SLI_PROTOCOL_CRYPTO_PRESENT #if defined(CONFIG_ENABLE_UART) #define SL_CATALOG_UARTDRV_EUSART_PRESENT -#endif +#define SL_CATALOG_OPENTHREAD_UART_PRESENT +#endif // CONFIG_ENABLE_UART #endif // SL_COMPONENT_CATALOG_H diff --git a/board-support/efr32/mgm24/BRD4316A/autogen/sl_dma_manager_instances.c b/board-support/efr32/mgm24/BRD4316A/autogen/sl_dma_manager_instances.c new file mode 100644 index 000000000..f4339b2ed --- /dev/null +++ b/board-support/efr32/mgm24/BRD4316A/autogen/sl_dma_manager_instances.c @@ -0,0 +1,51 @@ +/***************************************************************************//** + * @file + * @brief DMA Manager Instances Initialization. + ******************************************************************************* + * # License + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_dma_manager_instances.h" +#include "sl_dma_manager.h" +#include "sl_device_peripheral.h" + + + +sl_dma_handle_t sl_dma_handle_ldma0; + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + ******************************************************************************/ +void sl_dma_manager_instances_init(void) +{ + + // Initialize DMA Manager instance: LDMA0 + sl_dma_manager_init(&sl_dma_handle_ldma0, SL_PERIPHERAL_DMA_LDMA0); + +} + + diff --git a/board-support/efr32/mgm24/BRD4316A/autogen/sl_dma_manager_instances.h b/board-support/efr32/mgm24/BRD4316A/autogen/sl_dma_manager_instances.h new file mode 100644 index 000000000..1580ad2b2 --- /dev/null +++ b/board-support/efr32/mgm24/BRD4316A/autogen/sl_dma_manager_instances.h @@ -0,0 +1,71 @@ +/***************************************************************************//** + * @file + * @brief DMA Manager Instances API. + ******************************************************************************* + * # License + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_DMA_MANAGER_INSTANCES_H +#define SL_DMA_MANAGER_INSTANCES_H + +#include "sl_dma_manager.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/***************************************************************************//** + * @addtogroup dma_manager DMA Manager + * @{ + ******************************************************************************/ + + + +extern sl_dma_handle_t sl_dma_handle_ldma0; + + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + * + * @details This function initializes all DMA Manager instances that have been + * configured through the component system. Each instance corresponds + * to a DMA peripheral (e.g., LDMA0, LDMA1). + * + * @note This function is typically called automatically during system + * initialization when the dma_manager_init component is included + * in the project. + ******************************************************************************/ +void sl_dma_manager_instances_init(void); + +/** @} (end addtogroup dma_manager) */ + +#ifdef __cplusplus +} +#endif + +#endif // SL_DMA_MANAGER_INSTANCES_H + diff --git a/board-support/efr32/mgm24/BRD4316A/autogen/sl_event_handler.c b/board-support/efr32/mgm24/BRD4316A/autogen/sl_event_handler.c index 5228ad91b..1a88ec3bf 100644 --- a/board-support/efr32/mgm24/BRD4316A/autogen/sl_event_handler.c +++ b/board-support/efr32/mgm24/BRD4316A/autogen/sl_event_handler.c @@ -5,7 +5,6 @@ #include "sl_hfxo_manager.h" #include "sl_rail_util_compatible_pa.h" #if !(defined(SLI_SI91X_ENABLE_BLE) && SLI_SI91X_ENABLE_BLE) -#include "sl_bluetooth.h" #include "sl_rail_util_power_manager_init.h" #endif // !SLI_SI91X_ENABLE_BLE #include "sl_rail_util_power_manager_init.h" @@ -15,6 +14,7 @@ #include "sl_fem_util.h" #include "sl_board_control.h" #include "platform-efr32.h" +#include "sl_dma_manager_instances.h" #include "sl_bt_rtos_adaptation.h" #include "sl_bluetooth.h" #include "sl_debug_swo.h" @@ -63,6 +63,7 @@ void sl_platform_init(void) sl_hfxo_manager_init_hardware(); sl_board_init(); bootloader_init(); + sl_dma_manager_instances_init(); nvm3_initDefault(); } diff --git a/board-support/efr32/mgm24/BRD4316A/config/app_properties_config.h b/board-support/efr32/mgm24/BRD4316A/config/app_properties_config.h index 6a6b97666..34418403f 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/app_properties_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/app_properties_config.h @@ -63,3 +63,4 @@ // #endif // APP_PROPERTIES_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/btconf/gatt_configuration.btconf b/board-support/efr32/mgm24/BRD4316A/config/btconf/gatt_configuration.btconf deleted file mode 100644 index 4d1efd972..000000000 --- a/board-support/efr32/mgm24/BRD4316A/config/btconf/gatt_configuration.btconf +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - Abstract: The generic_access service contains generic information about the device. All available Characteristics are readonly. - - - - - Empty Example - - - - - - - - - Abstract: The external appearance of this device. The values are composed of a category (10-bits) and sub-categories (6-bits). - 0000 - - - - - - - - - Abstract: The Device Information Service exposes manufacturer and/or vendor information about a device. Summary: This service exposes manufacturer information about a device. The Device Information Service is instantiated as a Primary Service. Only one instance of the Device Information Service is exposed on a device. - - - - Abstract: The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device. - Silicon Labs - - - - - - - - Abstract: The value of this characteristic is a UTF-8 string representing the model number assigned by the device vendor. - Blue Gecko - - - - - - - - Abstract: The SYSTEM ID characteristic consists of a structure with two fields. The first field are the LSOs and the second field contains the MSOs. This is a 64-bit structure which consists of a 40-bit manufacturer-defined identifier concatenated with a 24 bit unique Organizationally Unique Identifier (OUI). The OUI is issued by the IEEE Registration Authority (http://standards.ieee.org/regauth/index.html) and is required to be used in accordance with IEEE Standard 802-2001.6 while the least significant 40 bits are manufacturer defined. If System ID generated based on a Bluetooth Device Address, it is required to be done as follows. System ID and the Bluetooth Device Address have a very similar structure: a Bluetooth Device Address is 48 bits in length and consists of a 24 bit Company Assigned Identifier (manufacturer defined identifier) concatenated with a 24 bit Company Identifier (OUI). In order to encapsulate a Bluetooth Device Address as System ID, the Company Identifier is concatenated with 0xFFFE followed by the Company Assigned Identifier of the Bluetooth Address. For more guidelines related to EUI-64, refer to http://standards.ieee.org/develop/regauth/tut/eui64.pdf. Examples: If the system ID is based of a Bluetooth Device Address with a Company Identifier (OUI) is 0x123456 and the Company Assigned Identifier is 0x9ABCDE, then the System Identifier is required to be 0x123456FFFE9ABCDE. - 000102030405 - - - - - - - - - Custom service - - - - Custom characteristic - 00 - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - diff --git a/board-support/efr32/mgm24/BRD4316A/config/btl_interface_cfg.h b/board-support/efr32/mgm24/BRD4316A/config/btl_interface_cfg.h new file mode 100644 index 000000000..fc17ccfff --- /dev/null +++ b/board-support/efr32/mgm24/BRD4316A/config/btl_interface_cfg.h @@ -0,0 +1,64 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_H +#define BTL_INTERFACE_CFG_H + +#if !defined(BOOTLOADER_APPLOADER) + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_1) +#include "btl_interface_cfg_s2c1.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_2) +#include "btl_interface_cfg_s2c2.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_3) +#include "btl_interface_cfg_s2c3.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_4) +#include "btl_interface_cfg_s2c4.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_5) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_6) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_8) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_9) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_13) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_11) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif +#endif// !BOOTLOADER_APPLOADER + +#endif // BTL_INTERFACE_CFG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/btl_interface_cfg_s2c4.h b/board-support/efr32/mgm24/BRD4316A/config/btl_interface_cfg_s2c4.h new file mode 100644 index 000000000..a93bdec95 --- /dev/null +++ b/board-support/efr32/mgm24/BRD4316A/config/btl_interface_cfg_s2c4.h @@ -0,0 +1,322 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_S2C4_H +#define BTL_INTERFACE_CFG_S2C4_H + +// <<< Use Configuration Wizard in Context Menu >>> +// Bootloader Interface Trust Zone Security State Configuration + +// Disable multi tiered fallback logic +// The fault handling logic as well as the USART auto-detection logic will be disabled. +// The re-configuration of SMU will be handled by querying the running bootloader +// for the peripheral list. Querying the peripheral list is supported from the bootloader +// version 2.0.0. Check for the BOOTLOADER_CAPABILITY_PERIPHERAL_LIST capability to +// see if the running bootloader supports querying the peripheral list. +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 0 + +// Disable peripheral access fault handling +// The fault handling triggered by an erroneous access of peripherals will be disabled. +// +// This should be disabled iff all the peripherals that are in use by the bootloader +// have been properly configured by the "Manually override security state of peripherals" option. +#define BOOTLOADER_DISABLE_NVM3_FAULT_HANDLING 0 + +// Manually override the security state of peripherals in use by the bootloader +// Default: 0. +// Manually override the security state of peripherals. Choose the peripherals touched +// by the customized code to have a valid secure access state before interacting with the bootloader +// In practice, this means that the chosen peripherals will be available at the secure address, +// which is accessible by the bootloader. Once the application is entered back the secure access state +// is changed back to the original state. +// +// The USART auto-detection logic that detects which, if any, USART is in use by the bootloader +// will be disabled. Make sure to choose the correct USART used by the bootloader. +#define BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE 0 +// EMU +// Update secure access state of EMU before calling into bootloader +#define BOOTLOADER_PPUSATD0_EMU 0 + +// CMU +// Update secure access state of CMU before calling into bootloader +#define BOOTLOADER_PPUSATD0_CMU 0 + +// HFRCO0 +// Update secure access state of HFRCO0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_HFRCO0 0 + +// FSRCO +// Update secure access state of FSRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_FSRCO 0 + +// DPLL0 +// Update secure access state of DPLL0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_DPLL0 0 + +// LFXO +// Update secure access state of LFXO before calling into bootloader +#define BOOTLOADER_PPUSATD0_LFXO 0 + +// LFRCO +// Update secure access state of LFRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_LFRCO 0 + +// ULFRCO +// Update secure access state of ULFRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_ULFRCO 0 + +// MSC +// Update secure access state of MSC before calling into bootloader +#define BOOTLOADER_PPUSATD0_MSC 0 + +// ICACHE0 +// Update secure access state of ICACHE0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_ICACHE0 0 + +// PRS +// Update secure access state of PRS before calling into bootloader +#define BOOTLOADER_PPUSATD0_PRS 0 + +// GPIO +// Update secure access state of GPIO before calling into bootloader +#define BOOTLOADER_PPUSATD0_GPIO 0 + +// LDMA +// Update secure access state of LDMA before calling into bootloader +#define BOOTLOADER_PPUSATD0_LDMA 0 + +// LDMAXBAR +// Update secure access state of LDMAXBAR before calling into bootloader +#define BOOTLOADER_PPUSATD0_LDMAXBAR 0 + +// TIMER0 +// Update secure access state of TIMER0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER0 0 + +// TIMER1 +// Update secure access state of TIMER1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER1 0 + +// TIMER2 +// Update secure access state of TIMER2 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER2 0 + +// TIMER3 +// Update secure access state of TIMER3 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER3 0 + +// TIMER4 +// Update secure access state of TIMER4 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER4 0 + +// USART0 +// Update secure access state of USART0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_USART0 0 + +// BURTC +// Update secure access state of BURTC before calling into bootloader +#define BOOTLOADER_PPUSATD0_BURTC 0 + +// I2C1 +// Update secure access state of I2C1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_I2C1 0 + +// CHIPTESTCTRL +// Update secure access state of CHIPTESTCTRL before calling into bootloader +#define BOOTLOADER_PPUSATD0_CHIPTESTCTRL 0 + +// SYSCFGCFGNS +// Update secure access state of SYSCFGCFGNS before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSCFGCFGNS 0 + +// SYSCFG +// Update secure access state of SYSCFG before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSCFG 0 + +// BURAM +// Update secure access state of BURAM before calling into bootloader +#define BOOTLOADER_PPUSATD0_BURAM 0 + +// GPCRC +// Update secure access state of GPCRC before calling into bootloader +#define BOOTLOADER_PPUSATD0_GPCRC 0 + +// DCDC +// Update secure access state of DCDC before calling into bootloader +#define BOOTLOADER_PPUSATD0_DCDC 0 + +// HOSTMAILBOX +// Update secure access state of HOSTMAILBOX before calling into bootloader +#define BOOTLOADER_PPUSATD0_HOSTMAILBOX 0 + +// EUSART1 +// Update secure access state of EUSART1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_EUSART1 0 + +// SYSRTC +// Update secure access state of SYSRTC before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSRTC 0 + +// KEYSCAN +// Update secure access state of KEYSCAN before calling into bootloader +#define BOOTLOADER_PPUSATD1_KEYSCAN 0 + +// DMEM +// Update secure access state of DMEM before calling into bootloader +#define BOOTLOADER_PPUSATD1_DMEM 0 + +// RADIOAES +// Update secure access state of RADIOAES before calling into bootloader +#define BOOTLOADER_PPUSATD1_RADIOAES 0 + +// SMU +// Update secure access state of SMU before calling into bootloader +#define BOOTLOADER_PPUSATD1_SMU 0 + +// SMUCFGNS +// Update secure access state of SMUCFGNS before calling into bootloader +#define BOOTLOADER_PPUSATD1_SMUCFGNS 0 + +// LETIMER0 +// Update secure access state of LETIMER0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_LETIMER0 0 + +// IADC0 +// Update secure access state of IADC0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_IADC0 0 + +// ACMP0 +// Update secure access state of ACMP0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_ACMP0 0 + +// ACMP1 +// Update secure access state of ACMP1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_ACMP1 0 + +// AMUXCP0 +// Update secure access state of AMUXCP0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_AMUXCP0 0 + +// VDAC0 +// Update secure access state of VDAC0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_VDAC0 0 + +// VDAC1 +// Update secure access state of VDAC1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_VDAC1 0 + +// PCNT +// Update secure access state of PCNT before calling into bootloader +#define BOOTLOADER_PPUSATD1_PCNT 0 + +// HFRCO1 +// Update secure access state of HFRCO1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_HFRCO1 0 + +// HFXO0 +// Update secure access state of HFXO0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_HFXO0 0 + +// I2C0 +// Update secure access state of I2C0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_I2C0 0 + +// WDOG0 +// Update secure access state of WDOG0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_WDOG0 0 + +// WDOG1 +// Update secure access state of WDOG1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_WDOG1 0 + +// EUSART0 +// Update secure access state of EUSART0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_EUSART0 0 + +// SEMAILBOX +// Update secure access state of SEMAILBOX before calling into bootloader +#define BOOTLOADER_PPUSATD1_SEMAILBOX 0 + +// MVP +// Update secure access state of MVP before calling into bootloader +#define BOOTLOADER_PPUSATD1_MVP 0 + +// AHBRADIO +// Update secure access state of AHBRADIO before calling into bootloader +#define BOOTLOADER_PPUSATD1_AHBRADIO 0 +// + +// +// <<< end of configuration section >>> + +#if BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE == 1 +#define BOOTLOADER_PPUSATD0_MASK ((BOOTLOADER_PPUSATD0_EMU << _SMU_PPUSATD0_EMU_SHIFT) \ + | (BOOTLOADER_PPUSATD0_CMU << _SMU_PPUSATD0_CMU_SHIFT) \ + | (BOOTLOADER_PPUSATD0_HFRCO0 << _SMU_PPUSATD0_HFRCO0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_FSRCO << _SMU_PPUSATD0_FSRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_DPLL0 << _SMU_PPUSATD0_DPLL0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LFXO << _SMU_PPUSATD0_LFXO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LFRCO << _SMU_PPUSATD0_LFRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_ULFRCO << _SMU_PPUSATD0_ULFRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_MSC << _SMU_PPUSATD0_MSC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_ICACHE0 << _SMU_PPUSATD0_ICACHE0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_PRS << _SMU_PPUSATD0_PRS_SHIFT) \ + | (BOOTLOADER_PPUSATD0_GPIO << _SMU_PPUSATD0_GPIO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LDMA << _SMU_PPUSATD0_LDMA_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LDMAXBAR << _SMU_PPUSATD0_LDMAXBAR_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER0 << _SMU_PPUSATD0_TIMER0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER1 << _SMU_PPUSATD0_TIMER1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER2 << _SMU_PPUSATD0_TIMER2_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER3 << _SMU_PPUSATD0_TIMER3_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER4 << _SMU_PPUSATD0_TIMER4_SHIFT) \ + | (BOOTLOADER_PPUSATD0_USART0 << _SMU_PPUSATD0_USART0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_BURTC << _SMU_PPUSATD0_BURTC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_I2C1 << _SMU_PPUSATD0_I2C1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_CHIPTESTCTRL << _SMU_PPUSATD0_CHIPTESTCTRL_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSCFGCFGNS << _SMU_PPUSATD0_SYSCFGCFGNS_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSCFG << _SMU_PPUSATD0_SYSCFG_SHIFT) \ + | (BOOTLOADER_PPUSATD0_BURAM << _SMU_PPUSATD0_BURAM_SHIFT) \ + | (BOOTLOADER_PPUSATD0_GPCRC << _SMU_PPUSATD0_GPCRC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_DCDC << _SMU_PPUSATD0_DCDC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_HOSTMAILBOX << _SMU_PPUSATD0_HOSTMAILBOX_SHIFT) \ + | (BOOTLOADER_PPUSATD0_EUSART1 << _SMU_PPUSATD0_EUSART1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSRTC << _SMU_PPUSATD0_SYSRTC_SHIFT)) +#define BOOTLOADER_PPUSATD1_MASK ((BOOTLOADER_PPUSATD1_KEYSCAN << _SMU_PPUSATD1_KEYSCAN_SHIFT) \ + | (BOOTLOADER_PPUSATD1_DMEM << _SMU_PPUSATD1_DMEM_SHIFT) \ + | (BOOTLOADER_PPUSATD1_RADIOAES << _SMU_PPUSATD1_RADIOAES_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SMU << _SMU_PPUSATD1_SMU_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SMUCFGNS << _SMU_PPUSATD1_SMUCFGNS_SHIFT) \ + | (BOOTLOADER_PPUSATD1_LETIMER0 << _SMU_PPUSATD1_LETIMER0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_IADC0 << _SMU_PPUSATD1_IADC0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_ACMP0 << _SMU_PPUSATD1_ACMP0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_ACMP1 << _SMU_PPUSATD1_ACMP1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_AMUXCP0 << _SMU_PPUSATD1_AMUXCP0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_VDAC0 << _SMU_PPUSATD1_VDAC0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_VDAC1 << _SMU_PPUSATD1_VDAC1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_PCNT << _SMU_PPUSATD1_PCNT_SHIFT) \ + | (BOOTLOADER_PPUSATD1_HFRCO1 << _SMU_PPUSATD1_HFRCO1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_HFXO0 << _SMU_PPUSATD1_HFXO0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_I2C0 << _SMU_PPUSATD1_I2C0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_WDOG0 << _SMU_PPUSATD1_WDOG0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_WDOG1 << _SMU_PPUSATD1_WDOG1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_EUSART0 << _SMU_PPUSATD1_EUSART0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SEMAILBOX << _SMU_PPUSATD1_SEMAILBOX_SHIFT) \ + | (BOOTLOADER_PPUSATD1_MVP << _SMU_PPUSATD1_MVP_SHIFT) \ + | (BOOTLOADER_PPUSATD1_AHBRADIO << _SMU_PPUSATD1_AHBRADIO_SHIFT)) +#endif // BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE + +#endif // BTL_INTERFACE_CFG_S2C4_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/buffer_pool_allocator_config.h b/board-support/efr32/mgm24/BRD4316A/config/buffer_pool_allocator_config.h index 2c3fd2e67..9a96fedf3 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/buffer_pool_allocator_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/buffer_pool_allocator_config.h @@ -27,3 +27,4 @@ // <<< end of configuration section >>> #endif // __BUFFER_POOL_ALLOCATOR_CONFIG_H__ + diff --git a/board-support/efr32/mgm24/BRD4316A/config/circular_queue_config.h b/board-support/efr32/mgm24/BRD4316A/config/circular_queue_config.h index 81a7173d6..fe1ba75d3 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/circular_queue_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/circular_queue_config.h @@ -21,3 +21,4 @@ // <<< end of configuration section >>> #endif // __CIRCULAR_QUEUE_CONFIG_H__ + diff --git a/board-support/efr32/mgm24/BRD4316A/config/dmadrv_config.h b/board-support/efr32/mgm24/BRD4316A/config/dmadrv_config.h index ed105e4f3..dd58324d7 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/dmadrv_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/dmadrv_config.h @@ -24,3 +24,4 @@ // <<< end of configuration section >>> #endif // DMADRV_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/nvm3_default_config.h b/board-support/efr32/mgm24/BRD4316A/config/nvm3_default_config.h index 2bf415f94..95cdbb7f5 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/nvm3_default_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/nvm3_default_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif // NVM3_DEFAULT_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_802154_radio_priority_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_802154_radio_priority_config.h index 77334ba2c..cc09e8ca9 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_802154_radio_priority_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_802154_radio_priority_config.h @@ -55,3 +55,4 @@ // <<< end of configuration section >>> #endif //__SL_802154_RADIO_PRIORITY_CONFIG_H__ + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_bgapi_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_bgapi_config.h index 1ae43b6b5..522d1c904 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_bgapi_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_bgapi_config.h @@ -41,3 +41,4 @@ // <<< end of configuration section >>> #endif // SL_BGAPI_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_bluetooth_advertiser_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_bluetooth_advertiser_config.h index 00163cd9a..7cac58bfe 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_bluetooth_advertiser_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_bluetooth_advertiser_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_bluetooth_common_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_bluetooth_common_config.h new file mode 100644 index 000000000..55c3749d5 --- /dev/null +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_bluetooth_common_config.h @@ -0,0 +1,53 @@ +/***************************************************************************//** + * @file sl_bluetooth_common_config.h + * @brief Bluetooth Common configuration + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_BLUETOOTH_COMMON_CONFIG_H +#define SL_BLUETOOTH_COMMON_CONFIG_H + +// <<< Use Configuration Wizard in Context Menu >>> + +// Bluetooth Common Configuration + +// Buffer memory size for Bluetooth +// Default: 3150 +// Define the buffer memory size for buffering data over Bluetooth connections, advertising +// and scanning. The default value is an estimation for achieving adequate throughput +// and supporting multiple simultaneous connections. Consider increasing this value for +// higher data throughput over connections, advertising or scanning long advertisement data. +#ifndef SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE +#define SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE (3150) +#endif + +// Bluetooth Common Configuration + +// <<< end of configuration section >>> + +#endif // SL_BLUETOOTH_COMMON_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_bluetooth_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_bluetooth_config.h index 93bfbbcc4..cfaaef06d 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_bluetooth_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_bluetooth_config.h @@ -66,6 +66,9 @@ // advertising and scanning. The default value is an estimation for achieving adequate throughput // and supporting multiple simultaneous connections. Consider increasing this value for // higher data throughput over connections, advertising or scanning long advertisement data. +// NOTE: SL_BT_CONFIG_BUFFER_SIZE is deprecated in Simplicity SDK Suite v2026.6.0 and marked +// for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONFIG_BUFFER_SIZE is replaced by +// SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #define SL_BT_CONFIG_BUFFER_SIZE (3150) // Enable using a custom Bluetooth address stored in NVM3 @@ -124,11 +127,23 @@ // A negative value indicates some power loss in the path. For example, // with radiated TX power set to +10 dBm and this configuration to -10 // (i.e., 1 dBm loss), the transmitter output power will be set to +11 dBm. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_TX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_TX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_TX (0) // RF RX path gain in 0.1dBm unit // Default: 0 // RX RF path gain is used to compensate the RSSI reports from the Bluetooth Stack. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_RX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_RX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_RX (0) // End RF Path @@ -161,8 +176,6 @@ #include "sl_bt_stack_config.h" #include "sl_bgapi_config.h" // For SL_BGAPI_MAX_PAYLOAD_SIZE -// NOTE: Struct sl_btctrl_ll_priorities is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// The Link Layer scheduler priority configuration is initialized via the Bluetooth Low Energy Controller component. #define SL_BT_CONFIG_DEFAULT \ { \ .config_flags = SL_BT_CONFIG_FLAGS, \ @@ -179,3 +192,4 @@ } #endif // SL_BLUETOOTH_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_bluetooth_connection_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_bluetooth_connection_config.h index 73a382509..08bc34759 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_bluetooth_connection_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_bluetooth_connection_config.h @@ -46,3 +46,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_bt_rtos_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_bt_rtos_config.h index b80c07967..fec091919 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_bt_rtos_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_bt_rtos_config.h @@ -42,3 +42,4 @@ #endif #endif // SL_BT_RTOS_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_bt_rtos_config_s2.h b/board-support/efr32/mgm24/BRD4316A/config/sl_bt_rtos_config_s2.h index eb4fe3ea2..bc4c37420 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_bt_rtos_config_s2.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_bt_rtos_config_s2.h @@ -82,3 +82,4 @@ // <<< end of configuration section >>> #endif // SL_BT_RTOS_CONFIG_S2_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_btctrl_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_btctrl_config.h index 403df1ffe..8dfdb6281 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_btctrl_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_btctrl_config.h @@ -7,7 +7,10 @@ // Bluetooth Controller Buffer Memory // Default: SL_BT_CONTROLLER_BUFFER_MEMORY -// Define the Amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// Define the amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// NOTE: SL_BT_CONTROLLER_BUFFER_MEMORY is deprecated in Simplicity SDK Suite v2026.6.0 and +// marked for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONTROLLER_BUFFER_MEMORY is +// replaced by SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #ifndef SL_BT_CONTROLLER_BUFFER_MEMORY #define SL_BT_CONTROLLER_BUFFER_MEMORY (8192) #endif @@ -64,7 +67,7 @@ #define SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE (0) #endif -// Minimum radiated TX power level in 0.1dBm unit +// Minimum radiated TX power level in 0.1dBm units // Default: 0 // Define the minimum radiated TX power level. // If the configured power level is lower than what the radio supports, the minimum supported level will be used. @@ -83,7 +86,7 @@ #define SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE (0) #endif -// Maximum radiated TX power level in 0.1dBm unit +// Maximum radiated TX power level in 0.1dBm units // Default: 0 // Define the maximum radiated TX power level. // If the configured power level is higher than what the radio supports, the maximum supported level will be used. @@ -97,6 +100,28 @@ // End TX Power Levels +// RF Path + +// TX RF path gain in 0.1dB units +// Default: 0 +// The Bluetooth controller takes TX RF path gain into account when adjusting transmitter +// output power. Power radiated from the antenna then matches the application request. +// A negative value indicates some power loss in the path. For example, +// with radiated TX power set to +10 dBm and this configuration to -10 +// (i.e., 1 dB loss), the transmitter output power will be set to +11 dBm. +#ifndef SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB (0) +#endif + +// RX RF path gain in 0.1dB units +// Default: 0 +// RX RF path gain is used to compensate the RSSI reports received by the Bluetooth controller. +#ifndef SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB (0) +#endif + +// End RF Path + // Bluetooth Controller Configuration for LE Connection // Total transmitted packets threshold for all connections to send the Number Of Completed Packets HCI event to the host <1-255> // Default: 4 @@ -136,16 +161,6 @@ #define SL_BT_CONTROLLER_USE_LEGACY_VENDOR_SPECIFIC_EVENT_CODE (0) #endif -// Adaptive Frequency Hopping operation mode -// Active AFH -// Passive AFH -// Choose between active AFH and passive AFH -// Default: Active AFH -// SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY -#ifndef SL_BT_CONTROLLER_ADAPTIVITY_MODE -#define SL_BT_CONTROLLER_ADAPTIVITY_MODE (SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY) -#endif - // Advertising Configuration // Include TX Power in the extended header of primary extended advertising packets // This is default setting to all advertising sets unless it is specifically overridden by VS_SiliconLabs_Set_Advertising_Config_Bits. @@ -172,3 +187,4 @@ // <<< end of configuration section >>> #endif // SL_BTCTRL_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_btctrl_scheduler_priority_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_btctrl_scheduler_priority_config.h index 0eec28095..fd0e66f83 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_btctrl_scheduler_priority_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_btctrl_scheduler_priority_config.h @@ -146,7 +146,7 @@ // Rail Mapping Window Min // <0-255:1> -// Default: 16 +// Default: 32 // Define the minimum value of RAIL mapping window. // This parameter specifies how task priorities are passed to radio // coexistence and multiprotocol schedulers. @@ -157,17 +157,17 @@ // If coexistence or multiprotocol configuration is not used, then these // parameters have no effect. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 16 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 32 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN // Rail Mapping Window Range // <0-255:1> -// Default: 32 +// Default: 16 // Define the maximum value of the RAIL mapping window. // See SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN for a description of // this parameter. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 32 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 16 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX // PAwR Tx - Min @@ -220,9 +220,9 @@ .conn_max = SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX, \ .init_min = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN, \ .init_max = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX, \ - .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN, \ - .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX \ - - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN), \ + .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX, \ + .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN \ + - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX), \ 0, \ .adv_step = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP, \ .scan_step = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP, \ @@ -233,3 +233,4 @@ } #endif // SL_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_clock_manager_oscillator_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_clock_manager_oscillator_config.h index a66815036..ca6a4ae07 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_clock_manager_oscillator_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_clock_manager_oscillator_config.h @@ -374,3 +374,4 @@ // <<< sl:end pin_tool >>> #endif /* SL_CLOCK_MANAGER_OSCILLATOR_CONFIG_H */ + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_clock_manager_tree_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_clock_manager_tree_config.h index 1f6f2a089..1a05181af 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_clock_manager_tree_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_clock_manager_tree_config.h @@ -307,3 +307,4 @@ #endif /* SL_CLOCK_MANAGER_TREE_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_core_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_core_config.h index 27b173d2e..16d372fcf 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_core_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_core_config.h @@ -42,3 +42,4 @@ // <<< end of configuration section >>> #endif // SL_CORE_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_device_init_dcdc_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_device_init_dcdc_config.h index 059d2d670..7401017f1 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_device_init_dcdc_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_device_init_dcdc_config.h @@ -56,3 +56,4 @@ // <<< end of configuration section >>> #endif // SL_DEVICE_INIT_DCDC_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_fem_util_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_fem_util_config.h index d1281886b..022ce36ad 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_fem_util_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_fem_util_config.h @@ -74,3 +74,4 @@ #define SL_FEM_UTIL_RUNTIME_PHY_SELECT 0 #endif // SL_FEM_UTIL_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_gp_interface_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_gp_interface_config.h index fd5aa20ea..0624696f3 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_gp_interface_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_gp_interface_config.h @@ -42,3 +42,4 @@ #define GP_TX_MAX_TIMEOUT_IN_MICRO_SECONDS 5000000 // // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_hfxo_manager_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_hfxo_manager_config.h index d9ccd3c70..87afc3778 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_hfxo_manager_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_hfxo_manager_config.h @@ -54,3 +54,4 @@ #endif /* SL_HFXO_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_main_start_task_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_main_start_task_config.h index 7752c098f..7cc81a4da 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_main_start_task_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_main_start_task_config.h @@ -103,3 +103,4 @@ #endif /* SL_MAIN_START_TASK_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_memory_manager_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_memory_manager_config.h index 4a16c29fe..02af7ec0c 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_memory_manager_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_memory_manager_config.h @@ -47,6 +47,12 @@ // Default: 1 #define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 +// Enables the double free protection for the pool. +// Setting this configuration to 0 will disable the double free protection for the memory pool. saving ~100 bytes of code. +// This setting has no effect on the memory pools power aware version. +// Default: 1 +#define SL_MEMORY_MANAGER_POOL_DOUBLE_FREE_PROTECTION_ENABLE 1 + // // <<< end of configuration section >>> @@ -58,4 +64,13 @@ // Default: 1 #define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 +// Enables retention statistics (retained size, retained high watermark, bank counts). +// Requires bank-retention hardware on the target; SL_CATALOG_BANK_RETENTION_CONTROL_* is defined only for devices that implement it (not every part or kit). +// Software configuration alone cannot add bank retention where the silicon has no such feature. +// Independent of heap statistics (SL_MEMORY_MANAGER_STATISTICS_API_ENABLE). +// When disabled, retention getters return (size_t)-1 or SL_STATUS_NOT_AVAILABLE. +// Default: 0. +#define SL_MEMORY_MANAGER_STATISTICS_RETENTION_ENABLE 0 + #endif /* SL_MEMORY_MANAGER_CONFIG_H */ + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_memory_manager_region_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_memory_manager_region_config.h index bd640b59b..a0a4007e7 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_memory_manager_region_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_memory_manager_region_config.h @@ -49,3 +49,4 @@ // <<< end of configuration section >>> #endif /* SL_MEMORY_MANAGER_REGION_CONFIG_H */ + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_openthread_features_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_openthread_features_config.h index a3697f8af..054fb51b4 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_openthread_features_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_openthread_features_config.h @@ -200,24 +200,31 @@ #endif // // IPv6 Limits -// Maximum IPv6 external unicast addresses +// Runtime IPv6 external address pools +// Enable runtime configuration of external unicast and multicast address pools via otIp6Init(). +#ifndef OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +#define OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE 0 +#endif +#if OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +// CLI support for runtime IPv6 external address pools +// Enable `ifconfig init` CLI command for testing otIp6Init() pool configuration. +#ifndef OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE +#define OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE 1 +#endif +// +#else +// Maximum IPv6 external unicast addresses (ignored in runtime mode) // Maximum number of IPv6 unicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS 4 #endif -// Maximum IPv6 external multicast addresses +// Maximum IPv6 external multicast addresses (ignored in runtime mode) // Maximum number of IPv6 multicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS 4 #endif -// Maximum IPv6 address registrations for MTD -// The maximum number of IPv6 address registrations for MTD. -// If left unchanged will default to the value of OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD -// 4 -#ifndef OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER -#define OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER (OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD) #endif // // Jam Detection @@ -286,37 +293,13 @@ #ifndef OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM #define OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM 2 #endif +// Instance-aware platform logging API +#ifndef OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE +#define OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE 0 +#endif +// // // -// Define maximum total source match table entries for both OT and Zigbee. -// In multi-instance builds (SoC or RCP/host), table must support all OT instances + Zigbee. -// For single instance (default), table sized to just OT children. -// This value is used to size all source match tables in both OT and Zigbee code. -// Note: this is purposedly not being setup with CMSIS annotations. -#ifndef RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE -#if SL_ZIGBEE_MAX_END_DEVICE_CHILDREN -// Multipan / DMP case: OT + Zigbee -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - ((OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * (OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM - 1)) \ - + SL_ZIGBEE_MAX_END_DEVICE_CHILDREN) -#else -// Multi-instance OT-only case -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - (OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM) -#endif -#else -// Single-instance OT (SoC / NCP / non-multipan RCP) -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES OPENTHREAD_CONFIG_MLE_MAX_CHILDREN -#endif -#endif -// Spinel Match Table -// Maximum number of spinel source match table entries -// Ensure that this value is the total of the number of openthread children times the number of openthread instances plus the number of Zigbee children. -#ifndef OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES -#define OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#endif -// // OTNS (OpenThread Network Simulator) #ifndef OPENTHREAD_CONFIG_OTNS_ENABLE #define OPENTHREAD_CONFIG_OTNS_ENABLE 0 @@ -379,6 +362,40 @@ #define OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE 1 #endif // +// Vendor Name string +// Vendor Name string +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +#if OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE +// Default: "RD:Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "RD:Silicon Labs" +#else +// Default: "Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "Silicon Labs" +#endif +#endif // OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +// Vendor Model string +// Vendor Model string +// Default: "OpenThread" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL "OpenThread" +#endif +// Vendor SW Version string +// Vendor SW Version string +// Default: "3.1.0.0" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION "3.1.0.0" +#endif +// Vendor App URL string +// Vendor App URL string +// Default: "www.silabs.com" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL "www.silabs.com" +#endif +// Run-time configuration of Vendor Info +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE 1 +#endif +// // Time Synchronization Service #ifndef OPENTHREAD_CONFIG_TIME_SYNC_ENABLE #define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 0 @@ -399,6 +416,11 @@ #define OPENTHREAD_CONFIG_MAC_BEACON_PAYLOAD_PARSING_ENABLE 1 #endif // +// Log crash dump after initialization +#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE +#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 +#endif +// // Radio Driver RX buffers // Maximum number of RX buffers // The maximum number of RX buffers to use in the radio driver. @@ -408,66 +430,7 @@ #endif // // -// Logging -// LOG_OUTPUT -// NONE -// APP -// PLATFORM_DEFINED -// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP -// OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT -#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#endif - -// DYNAMIC_LOG_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE -#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 -#endif - -// Enable Logging -#define OPENTHREAD_FULL_LOGS_ENABLE 0 -#if OPENTHREAD_FULL_LOGS_ENABLE - -// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. -// LOG_LEVEL -// NONE -// CRIT -// WARN -// NOTE -// INFO -// DEBG -// Default: OT_LOG_LEVEL_DEBG -// OT_LOG_LEVEL_DEBG -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL -#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG -#endif -// CLI -#ifndef OPENTHREAD_CONFIG_LOG_CLI -#define OPENTHREAD_CONFIG_LOG_CLI 1 -#endif -// PKT_DUMP -#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP -#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 -#endif -// PLATFORM -#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM -#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 -#endif -// PREPEND_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL -#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 -#endif - -#endif // OPENTHREAD_FULL_LOGS_ENABLE - -// Log crash dump after initialization -#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE -#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 -#endif - -// -// -// // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_FEATURES_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_openthread_log_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_openthread_log_config.h new file mode 100644 index 000000000..420892125 --- /dev/null +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_openthread_log_config.h @@ -0,0 +1,89 @@ +/******************************************************************************* + * @file + * @brief OpenThread log configuration file. + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_OPENTHREAD_LOG_CONFIG_H +#define _SL_OPENTHREAD_LOG_CONFIG_H + +//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- +// Logging +// LOG_OUTPUT +// NONE +// APP +// PLATFORM_DEFINED +// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP +// OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT +#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#endif + +// DYNAMIC_LOG_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE +#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 +#endif + +// Enable Logging +#define OPENTHREAD_FULL_LOGS_ENABLE 0 +#if OPENTHREAD_FULL_LOGS_ENABLE +// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. +// LOG_LEVEL +// NONE +// CRIT +// WARN +// NOTE +// INFO +// DEBG +// Default: OT_LOG_LEVEL_DEBG +// OT_LOG_LEVEL_DEBG +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL +#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG +#endif +// CLI +#ifndef OPENTHREAD_CONFIG_LOG_CLI +#define OPENTHREAD_CONFIG_LOG_CLI 1 +#endif +// PKT_DUMP +#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP +#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 +#endif +// PLATFORM +#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM +#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 +#endif +// PREPEND_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL +#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 +#endif +// +#endif // OPENTHREAD_FULL_LOGS_ENABLE +// +// +// <<< end of configuration section >>> +#endif // _SL_OPENTHREAD_LOG_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_openthread_radio_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_openthread_radio_config.h index 478a72430..1735c91c6 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_openthread_radio_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_openthread_radio_config.h @@ -40,6 +40,11 @@ #define SL_OPENTHREAD_RSSI_AVERAGING_TIME 16 // us // RSSI Average Timeout [us] #define SL_OPENTHREAD_RSSI_AVERAGING_TIMEOUT 300 // us +// Debug Counters Support +#ifndef RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT +#define RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT 0 // Set to 1 to enable debug counters in radio.c +#endif // // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_RADIO_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_openthread_rtos_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_openthread_rtos_config.h index 6dc710fcc..16a2b1709 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_openthread_rtos_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_openthread_rtos_config.h @@ -72,18 +72,10 @@ #define SL_OPENTHREAD_APP_TASK_MEM_SIZE (4608) // OpenThread serial task stack size in bytes <1000-20000> -// Default: 3072 +// Default: 3840 // Defines the stack size of the OpenThread RTOS serial task. The value is in bytes and // and will be word aligned when it is applied at the task creation. -#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3072) - -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread serial task prority -// Default: 16 (CMSIS-RTOS2 osPriorityBelowNormal) -// Defines OpenThread serial task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_SERIAL_TASK_PRIORITY (16) +#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3840) // // App Task @@ -107,3 +99,4 @@ // // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_power_manager_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_power_manager_config.h index 86b9fef27..1c71950d9 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_power_manager_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_power_manager_config.h @@ -98,3 +98,4 @@ #endif /* SL_POWER_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_rail_util_pa_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_rail_util_pa_config.h index 787ac39a1..dfff36086 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_rail_util_pa_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_rail_util_pa_config.h @@ -81,3 +81,4 @@ // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_PA_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_rail_util_power_manager_init_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_rail_util_power_manager_init_config.h index cbc69f24d..bcc7596c5 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_rail_util_power_manager_init_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_rail_util_power_manager_init_config.h @@ -42,3 +42,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_rail_util_rssi_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_rail_util_rssi_config.h index 128d705f5..d706e8785 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_rail_util_rssi_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_rail_util_rssi_config.h @@ -46,3 +46,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_RSSI_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_rail_util_sequencer_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_rail_util_sequencer_config.h index 640ef0c0d..02977b219 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_rail_util_sequencer_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_rail_util_sequencer_config.h @@ -44,3 +44,4 @@ extern "C" { #endif #endif // SL_RAIL_UTIL_SEQUENCER_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_simple_button_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_simple_button_config.h index 531f4f208..4cd53a96b 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_simple_button_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_simple_button_config.h @@ -70,3 +70,4 @@ // <<< end of configuration section >>> #endif // SL_SIMPLE_BUTTON_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4316A/config/sl_sleeptimer_config.h b/board-support/efr32/mgm24/BRD4316A/config/sl_sleeptimer_config.h index 8344ef5f1..c638bfeed 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/sl_sleeptimer_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/sl_sleeptimer_config.h @@ -52,6 +52,7 @@ // WTIMER // TIMER // Selection of the Timer Peripheral Used by the Sleeptimer +// If BURTC is needed as an EM4 wake-up source, it must not be used by Sleeptimer. #define SL_SLEEPTIMER_PERIPHERAL SL_SLEEPTIMER_PERIPHERAL_DEFAULT // TIMER/WTIMER Instance Used by Sleeptimer (not applicable for other peripherals) @@ -80,3 +81,4 @@ #endif /* SLEEPTIMER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4316A/config/uartdrv_config.h b/board-support/efr32/mgm24/BRD4316A/config/uartdrv_config.h index f41b347e1..b0fc7f703 100644 --- a/board-support/efr32/mgm24/BRD4316A/config/uartdrv_config.h +++ b/board-support/efr32/mgm24/BRD4316A/config/uartdrv_config.h @@ -121,3 +121,4 @@ /** @} (end addtogroup uartdrv) */ #endif /* __SILICON_LABS_UARTDRV_CONFIG_H__ */ + diff --git a/board-support/efr32/mgm24/BRD4317A/autogen/gatt_db.h b/board-support/efr32/mgm24/BRD4317A/autogen/gatt_db.h index c179e6b28..b3a2e67f9 100644 --- a/board-support/efr32/mgm24/BRD4317A/autogen/gatt_db.h +++ b/board-support/efr32/mgm24/BRD4317A/autogen/gatt_db.h @@ -5,10 +5,6 @@ #ifndef __GATT_DB_H #define __GATT_DB_H -#if __cplusplus -extern "C" { -#endif - #include "sli_bt_gattdb_def.h" extern const sli_bt_gattdb_t gattdb; @@ -31,8 +27,5 @@ extern const sli_bt_gattdb_t gattdb; #define gattdb_CHIPoBLEChar_Tx_len 247 #define gattdb_CHIPoBLEChar_C3_len 512 -#if __cplusplus -} -#endif #endif // __GATT_DB_H diff --git a/board-support/efr32/mgm24/BRD4317A/autogen/sl_bluetooth.c b/board-support/efr32/mgm24/BRD4317A/autogen/sl_bluetooth.c index 0a5f1a969..0cf47b680 100644 --- a/board-support/efr32/mgm24/BRD4317A/autogen/sl_bluetooth.c +++ b/board-support/efr32/mgm24/BRD4317A/autogen/sl_bluetooth.c @@ -76,13 +76,13 @@ void sl_bt_step(void) // Check the length of the next event, if any, and verify that the application // can process it. To prevent data loss, the event will be kept in the stack's // queue if the application cannot process it at the moment. - size_t event_len = sli_bgapi_device_peek_event_len(&sli_bt_bgapi_device); + size_t event_len = sli_bgapi_device_peek_event_len(sli_bt_bgapi_device); if ((event_len == 0) || (!sl_bt_can_process_event(event_len))) { return; } // Pop the event and process it if successful - sl_status_t status = sli_bgapi_device_pop_event(&sli_bt_bgapi_device, + sl_status_t status = sli_bgapi_device_pop_event(sli_bt_bgapi_device, sizeof(evt), &evt); diff --git a/board-support/efr32/mgm24/BRD4317A/autogen/sl_component_catalog.h b/board-support/efr32/mgm24/BRD4317A/autogen/sl_component_catalog.h index 7fec96be4..a1924040f 100644 --- a/board-support/efr32/mgm24/BRD4317A/autogen/sl_component_catalog.h +++ b/board-support/efr32/mgm24/BRD4317A/autogen/sl_component_catalog.h @@ -4,7 +4,9 @@ // APIs present in project #define SL_CATALOG_BGAPI_PROTOCOL_PRESENT #define SL_CATALOG_BGAPI_PROTOCOL_RTOS_ADAPTATION_PRESENT +#define SL_CATALOG_BLUETOOTH_COMMON_PRESENT #define SL_CATALOG_BLUETOOTH_CONFIGURATION_PRESENT +#define SL_CATALOG_BLUETOOTH_CRYPTO_LIB_PSA_PRESENT #define SL_CATALOG_BLUETOOTH_CTE_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_CS_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_FEATURE_ADVERTISER_PRESENT @@ -26,7 +28,9 @@ #define SL_CATALOG_CPP_SUPPORT_PRESENT #define SL_CATALOG_DEVICE_INIT_PRESENT #define SL_CATALOG_DEVICE_INIT_DCDC_PRESENT +#define SL_CATALOG_DMA_MANAGER_PRESENT #define SL_CATALOG_EMLIB_CORE_PRESENT +#define SL_CATALOG_EMLIB_GPIO_PRESENT #define SL_CATALOG_EMLIB_RMU_PRESENT #define SL_CATALOG_FREERTOS_KERNEL_PRESENT #define SL_CATALOG_KERNEL_PRESENT @@ -38,9 +42,9 @@ #define SL_CATALOG_INTERRUPT_MANAGER_PRESENT #define SL_CATALOG_IOSTREAM_PRESENT #ifdef DISPLAY_ENABLED -#define SL_CATALOG_MEMLCD_USART_PRESENT #define SL_CATALOG_DMD_MEMLCD_PRESENT -#endif +#define SL_CATALOG_MEMLCD_USART_PRESENT +#endif // DISPLAY_ENABLED #define SL_CATALOG_MEMORY_MANAGER_PRESENT #define SL_CATALOG_MEMORY_PROFILER_API_PRESENT #define SL_CATALOG_MPU_PRESENT @@ -57,7 +61,7 @@ #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_SEGGER_RTT_PRESENT #define SL_CATALOG_BTN0_PRESENT @@ -67,10 +71,21 @@ #define SL_CATALOG_SIMPLE_BUTTON_BTN1_PRESENT #define SL_CATALOG_SL_CORE_PRESENT #define SL_CATALOG_SL_MAIN_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_COMPATIBLE_PA_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_SEQUENCER_PRESENT +#define SL_CATALOG_RAIL_UTIL_SEQUENCER_PRESENT #define SL_CATALOG_SLEEPTIMER_PRESENT #define SL_CATALOG_SLI_PROTOCOL_CRYPTO_PRESENT #if defined(CONFIG_ENABLE_UART) #define SL_CATALOG_UARTDRV_EUSART_PRESENT -#endif - +#define SL_CATALOG_OPENTHREAD_UART_PRESENT +#endif // CONFIG_ENABLE_UART #endif // SL_COMPONENT_CATALOG_H diff --git a/board-support/efr32/mgm24/BRD4317A/autogen/sl_dma_manager_instances.c b/board-support/efr32/mgm24/BRD4317A/autogen/sl_dma_manager_instances.c new file mode 100644 index 000000000..f4339b2ed --- /dev/null +++ b/board-support/efr32/mgm24/BRD4317A/autogen/sl_dma_manager_instances.c @@ -0,0 +1,51 @@ +/***************************************************************************//** + * @file + * @brief DMA Manager Instances Initialization. + ******************************************************************************* + * # License + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_dma_manager_instances.h" +#include "sl_dma_manager.h" +#include "sl_device_peripheral.h" + + + +sl_dma_handle_t sl_dma_handle_ldma0; + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + ******************************************************************************/ +void sl_dma_manager_instances_init(void) +{ + + // Initialize DMA Manager instance: LDMA0 + sl_dma_manager_init(&sl_dma_handle_ldma0, SL_PERIPHERAL_DMA_LDMA0); + +} + + diff --git a/board-support/efr32/mgm24/BRD4317A/autogen/sl_dma_manager_instances.h b/board-support/efr32/mgm24/BRD4317A/autogen/sl_dma_manager_instances.h new file mode 100644 index 000000000..1580ad2b2 --- /dev/null +++ b/board-support/efr32/mgm24/BRD4317A/autogen/sl_dma_manager_instances.h @@ -0,0 +1,71 @@ +/***************************************************************************//** + * @file + * @brief DMA Manager Instances API. + ******************************************************************************* + * # License + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_DMA_MANAGER_INSTANCES_H +#define SL_DMA_MANAGER_INSTANCES_H + +#include "sl_dma_manager.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/***************************************************************************//** + * @addtogroup dma_manager DMA Manager + * @{ + ******************************************************************************/ + + + +extern sl_dma_handle_t sl_dma_handle_ldma0; + + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + * + * @details This function initializes all DMA Manager instances that have been + * configured through the component system. Each instance corresponds + * to a DMA peripheral (e.g., LDMA0, LDMA1). + * + * @note This function is typically called automatically during system + * initialization when the dma_manager_init component is included + * in the project. + ******************************************************************************/ +void sl_dma_manager_instances_init(void); + +/** @} (end addtogroup dma_manager) */ + +#ifdef __cplusplus +} +#endif + +#endif // SL_DMA_MANAGER_INSTANCES_H + diff --git a/board-support/efr32/mgm24/BRD4317A/autogen/sl_event_handler.c b/board-support/efr32/mgm24/BRD4317A/autogen/sl_event_handler.c index 2ca895fa3..3a0a2d1e5 100644 --- a/board-support/efr32/mgm24/BRD4317A/autogen/sl_event_handler.c +++ b/board-support/efr32/mgm24/BRD4317A/autogen/sl_event_handler.c @@ -5,7 +5,6 @@ #include "sl_hfxo_manager.h" #include "sl_rail_util_compatible_pa.h" #if !(defined(SLI_SI91X_ENABLE_BLE) && SLI_SI91X_ENABLE_BLE) -#include "sl_bluetooth.h" #include "sl_rail_util_power_manager_init.h" #endif // !SLI_SI91X_ENABLE_BLE #include "sl_rail_util_power_manager_init.h" @@ -15,6 +14,7 @@ #include "sl_fem_util.h" #include "sl_board_control.h" #include "platform-efr32.h" +#include "sl_dma_manager_instances.h" #include "sl_bt_rtos_adaptation.h" #include "sl_bluetooth.h" #include "sl_debug_swo.h" @@ -63,6 +63,7 @@ void sl_platform_init(void) sl_hfxo_manager_init_hardware(); sl_board_init(); bootloader_init(); + sl_dma_manager_instances_init(); nvm3_initDefault(); } diff --git a/board-support/efr32/mgm24/BRD4317A/config/app_properties_config.h b/board-support/efr32/mgm24/BRD4317A/config/app_properties_config.h index 6a6b97666..34418403f 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/app_properties_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/app_properties_config.h @@ -63,3 +63,4 @@ // #endif // APP_PROPERTIES_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/btconf/gatt_configuration.btconf b/board-support/efr32/mgm24/BRD4317A/config/btconf/gatt_configuration.btconf deleted file mode 100644 index 4d1efd972..000000000 --- a/board-support/efr32/mgm24/BRD4317A/config/btconf/gatt_configuration.btconf +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - Abstract: The generic_access service contains generic information about the device. All available Characteristics are readonly. - - - - - Empty Example - - - - - - - - - Abstract: The external appearance of this device. The values are composed of a category (10-bits) and sub-categories (6-bits). - 0000 - - - - - - - - - Abstract: The Device Information Service exposes manufacturer and/or vendor information about a device. Summary: This service exposes manufacturer information about a device. The Device Information Service is instantiated as a Primary Service. Only one instance of the Device Information Service is exposed on a device. - - - - Abstract: The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device. - Silicon Labs - - - - - - - - Abstract: The value of this characteristic is a UTF-8 string representing the model number assigned by the device vendor. - Blue Gecko - - - - - - - - Abstract: The SYSTEM ID characteristic consists of a structure with two fields. The first field are the LSOs and the second field contains the MSOs. This is a 64-bit structure which consists of a 40-bit manufacturer-defined identifier concatenated with a 24 bit unique Organizationally Unique Identifier (OUI). The OUI is issued by the IEEE Registration Authority (http://standards.ieee.org/regauth/index.html) and is required to be used in accordance with IEEE Standard 802-2001.6 while the least significant 40 bits are manufacturer defined. If System ID generated based on a Bluetooth Device Address, it is required to be done as follows. System ID and the Bluetooth Device Address have a very similar structure: a Bluetooth Device Address is 48 bits in length and consists of a 24 bit Company Assigned Identifier (manufacturer defined identifier) concatenated with a 24 bit Company Identifier (OUI). In order to encapsulate a Bluetooth Device Address as System ID, the Company Identifier is concatenated with 0xFFFE followed by the Company Assigned Identifier of the Bluetooth Address. For more guidelines related to EUI-64, refer to http://standards.ieee.org/develop/regauth/tut/eui64.pdf. Examples: If the system ID is based of a Bluetooth Device Address with a Company Identifier (OUI) is 0x123456 and the Company Assigned Identifier is 0x9ABCDE, then the System Identifier is required to be 0x123456FFFE9ABCDE. - 000102030405 - - - - - - - - - Custom service - - - - Custom characteristic - 00 - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - diff --git a/board-support/efr32/mgm24/BRD4317A/config/btl_interface_cfg.h b/board-support/efr32/mgm24/BRD4317A/config/btl_interface_cfg.h new file mode 100644 index 000000000..fc17ccfff --- /dev/null +++ b/board-support/efr32/mgm24/BRD4317A/config/btl_interface_cfg.h @@ -0,0 +1,64 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_H +#define BTL_INTERFACE_CFG_H + +#if !defined(BOOTLOADER_APPLOADER) + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_1) +#include "btl_interface_cfg_s2c1.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_2) +#include "btl_interface_cfg_s2c2.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_3) +#include "btl_interface_cfg_s2c3.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_4) +#include "btl_interface_cfg_s2c4.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_5) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_6) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_8) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_9) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_13) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_11) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif +#endif// !BOOTLOADER_APPLOADER + +#endif // BTL_INTERFACE_CFG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/btl_interface_cfg_s2c4.h b/board-support/efr32/mgm24/BRD4317A/config/btl_interface_cfg_s2c4.h new file mode 100644 index 000000000..a93bdec95 --- /dev/null +++ b/board-support/efr32/mgm24/BRD4317A/config/btl_interface_cfg_s2c4.h @@ -0,0 +1,322 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_S2C4_H +#define BTL_INTERFACE_CFG_S2C4_H + +// <<< Use Configuration Wizard in Context Menu >>> +// Bootloader Interface Trust Zone Security State Configuration + +// Disable multi tiered fallback logic +// The fault handling logic as well as the USART auto-detection logic will be disabled. +// The re-configuration of SMU will be handled by querying the running bootloader +// for the peripheral list. Querying the peripheral list is supported from the bootloader +// version 2.0.0. Check for the BOOTLOADER_CAPABILITY_PERIPHERAL_LIST capability to +// see if the running bootloader supports querying the peripheral list. +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 0 + +// Disable peripheral access fault handling +// The fault handling triggered by an erroneous access of peripherals will be disabled. +// +// This should be disabled iff all the peripherals that are in use by the bootloader +// have been properly configured by the "Manually override security state of peripherals" option. +#define BOOTLOADER_DISABLE_NVM3_FAULT_HANDLING 0 + +// Manually override the security state of peripherals in use by the bootloader +// Default: 0. +// Manually override the security state of peripherals. Choose the peripherals touched +// by the customized code to have a valid secure access state before interacting with the bootloader +// In practice, this means that the chosen peripherals will be available at the secure address, +// which is accessible by the bootloader. Once the application is entered back the secure access state +// is changed back to the original state. +// +// The USART auto-detection logic that detects which, if any, USART is in use by the bootloader +// will be disabled. Make sure to choose the correct USART used by the bootloader. +#define BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE 0 +// EMU +// Update secure access state of EMU before calling into bootloader +#define BOOTLOADER_PPUSATD0_EMU 0 + +// CMU +// Update secure access state of CMU before calling into bootloader +#define BOOTLOADER_PPUSATD0_CMU 0 + +// HFRCO0 +// Update secure access state of HFRCO0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_HFRCO0 0 + +// FSRCO +// Update secure access state of FSRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_FSRCO 0 + +// DPLL0 +// Update secure access state of DPLL0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_DPLL0 0 + +// LFXO +// Update secure access state of LFXO before calling into bootloader +#define BOOTLOADER_PPUSATD0_LFXO 0 + +// LFRCO +// Update secure access state of LFRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_LFRCO 0 + +// ULFRCO +// Update secure access state of ULFRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_ULFRCO 0 + +// MSC +// Update secure access state of MSC before calling into bootloader +#define BOOTLOADER_PPUSATD0_MSC 0 + +// ICACHE0 +// Update secure access state of ICACHE0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_ICACHE0 0 + +// PRS +// Update secure access state of PRS before calling into bootloader +#define BOOTLOADER_PPUSATD0_PRS 0 + +// GPIO +// Update secure access state of GPIO before calling into bootloader +#define BOOTLOADER_PPUSATD0_GPIO 0 + +// LDMA +// Update secure access state of LDMA before calling into bootloader +#define BOOTLOADER_PPUSATD0_LDMA 0 + +// LDMAXBAR +// Update secure access state of LDMAXBAR before calling into bootloader +#define BOOTLOADER_PPUSATD0_LDMAXBAR 0 + +// TIMER0 +// Update secure access state of TIMER0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER0 0 + +// TIMER1 +// Update secure access state of TIMER1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER1 0 + +// TIMER2 +// Update secure access state of TIMER2 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER2 0 + +// TIMER3 +// Update secure access state of TIMER3 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER3 0 + +// TIMER4 +// Update secure access state of TIMER4 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER4 0 + +// USART0 +// Update secure access state of USART0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_USART0 0 + +// BURTC +// Update secure access state of BURTC before calling into bootloader +#define BOOTLOADER_PPUSATD0_BURTC 0 + +// I2C1 +// Update secure access state of I2C1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_I2C1 0 + +// CHIPTESTCTRL +// Update secure access state of CHIPTESTCTRL before calling into bootloader +#define BOOTLOADER_PPUSATD0_CHIPTESTCTRL 0 + +// SYSCFGCFGNS +// Update secure access state of SYSCFGCFGNS before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSCFGCFGNS 0 + +// SYSCFG +// Update secure access state of SYSCFG before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSCFG 0 + +// BURAM +// Update secure access state of BURAM before calling into bootloader +#define BOOTLOADER_PPUSATD0_BURAM 0 + +// GPCRC +// Update secure access state of GPCRC before calling into bootloader +#define BOOTLOADER_PPUSATD0_GPCRC 0 + +// DCDC +// Update secure access state of DCDC before calling into bootloader +#define BOOTLOADER_PPUSATD0_DCDC 0 + +// HOSTMAILBOX +// Update secure access state of HOSTMAILBOX before calling into bootloader +#define BOOTLOADER_PPUSATD0_HOSTMAILBOX 0 + +// EUSART1 +// Update secure access state of EUSART1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_EUSART1 0 + +// SYSRTC +// Update secure access state of SYSRTC before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSRTC 0 + +// KEYSCAN +// Update secure access state of KEYSCAN before calling into bootloader +#define BOOTLOADER_PPUSATD1_KEYSCAN 0 + +// DMEM +// Update secure access state of DMEM before calling into bootloader +#define BOOTLOADER_PPUSATD1_DMEM 0 + +// RADIOAES +// Update secure access state of RADIOAES before calling into bootloader +#define BOOTLOADER_PPUSATD1_RADIOAES 0 + +// SMU +// Update secure access state of SMU before calling into bootloader +#define BOOTLOADER_PPUSATD1_SMU 0 + +// SMUCFGNS +// Update secure access state of SMUCFGNS before calling into bootloader +#define BOOTLOADER_PPUSATD1_SMUCFGNS 0 + +// LETIMER0 +// Update secure access state of LETIMER0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_LETIMER0 0 + +// IADC0 +// Update secure access state of IADC0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_IADC0 0 + +// ACMP0 +// Update secure access state of ACMP0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_ACMP0 0 + +// ACMP1 +// Update secure access state of ACMP1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_ACMP1 0 + +// AMUXCP0 +// Update secure access state of AMUXCP0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_AMUXCP0 0 + +// VDAC0 +// Update secure access state of VDAC0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_VDAC0 0 + +// VDAC1 +// Update secure access state of VDAC1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_VDAC1 0 + +// PCNT +// Update secure access state of PCNT before calling into bootloader +#define BOOTLOADER_PPUSATD1_PCNT 0 + +// HFRCO1 +// Update secure access state of HFRCO1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_HFRCO1 0 + +// HFXO0 +// Update secure access state of HFXO0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_HFXO0 0 + +// I2C0 +// Update secure access state of I2C0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_I2C0 0 + +// WDOG0 +// Update secure access state of WDOG0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_WDOG0 0 + +// WDOG1 +// Update secure access state of WDOG1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_WDOG1 0 + +// EUSART0 +// Update secure access state of EUSART0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_EUSART0 0 + +// SEMAILBOX +// Update secure access state of SEMAILBOX before calling into bootloader +#define BOOTLOADER_PPUSATD1_SEMAILBOX 0 + +// MVP +// Update secure access state of MVP before calling into bootloader +#define BOOTLOADER_PPUSATD1_MVP 0 + +// AHBRADIO +// Update secure access state of AHBRADIO before calling into bootloader +#define BOOTLOADER_PPUSATD1_AHBRADIO 0 +// + +// +// <<< end of configuration section >>> + +#if BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE == 1 +#define BOOTLOADER_PPUSATD0_MASK ((BOOTLOADER_PPUSATD0_EMU << _SMU_PPUSATD0_EMU_SHIFT) \ + | (BOOTLOADER_PPUSATD0_CMU << _SMU_PPUSATD0_CMU_SHIFT) \ + | (BOOTLOADER_PPUSATD0_HFRCO0 << _SMU_PPUSATD0_HFRCO0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_FSRCO << _SMU_PPUSATD0_FSRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_DPLL0 << _SMU_PPUSATD0_DPLL0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LFXO << _SMU_PPUSATD0_LFXO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LFRCO << _SMU_PPUSATD0_LFRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_ULFRCO << _SMU_PPUSATD0_ULFRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_MSC << _SMU_PPUSATD0_MSC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_ICACHE0 << _SMU_PPUSATD0_ICACHE0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_PRS << _SMU_PPUSATD0_PRS_SHIFT) \ + | (BOOTLOADER_PPUSATD0_GPIO << _SMU_PPUSATD0_GPIO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LDMA << _SMU_PPUSATD0_LDMA_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LDMAXBAR << _SMU_PPUSATD0_LDMAXBAR_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER0 << _SMU_PPUSATD0_TIMER0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER1 << _SMU_PPUSATD0_TIMER1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER2 << _SMU_PPUSATD0_TIMER2_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER3 << _SMU_PPUSATD0_TIMER3_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER4 << _SMU_PPUSATD0_TIMER4_SHIFT) \ + | (BOOTLOADER_PPUSATD0_USART0 << _SMU_PPUSATD0_USART0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_BURTC << _SMU_PPUSATD0_BURTC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_I2C1 << _SMU_PPUSATD0_I2C1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_CHIPTESTCTRL << _SMU_PPUSATD0_CHIPTESTCTRL_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSCFGCFGNS << _SMU_PPUSATD0_SYSCFGCFGNS_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSCFG << _SMU_PPUSATD0_SYSCFG_SHIFT) \ + | (BOOTLOADER_PPUSATD0_BURAM << _SMU_PPUSATD0_BURAM_SHIFT) \ + | (BOOTLOADER_PPUSATD0_GPCRC << _SMU_PPUSATD0_GPCRC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_DCDC << _SMU_PPUSATD0_DCDC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_HOSTMAILBOX << _SMU_PPUSATD0_HOSTMAILBOX_SHIFT) \ + | (BOOTLOADER_PPUSATD0_EUSART1 << _SMU_PPUSATD0_EUSART1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSRTC << _SMU_PPUSATD0_SYSRTC_SHIFT)) +#define BOOTLOADER_PPUSATD1_MASK ((BOOTLOADER_PPUSATD1_KEYSCAN << _SMU_PPUSATD1_KEYSCAN_SHIFT) \ + | (BOOTLOADER_PPUSATD1_DMEM << _SMU_PPUSATD1_DMEM_SHIFT) \ + | (BOOTLOADER_PPUSATD1_RADIOAES << _SMU_PPUSATD1_RADIOAES_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SMU << _SMU_PPUSATD1_SMU_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SMUCFGNS << _SMU_PPUSATD1_SMUCFGNS_SHIFT) \ + | (BOOTLOADER_PPUSATD1_LETIMER0 << _SMU_PPUSATD1_LETIMER0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_IADC0 << _SMU_PPUSATD1_IADC0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_ACMP0 << _SMU_PPUSATD1_ACMP0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_ACMP1 << _SMU_PPUSATD1_ACMP1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_AMUXCP0 << _SMU_PPUSATD1_AMUXCP0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_VDAC0 << _SMU_PPUSATD1_VDAC0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_VDAC1 << _SMU_PPUSATD1_VDAC1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_PCNT << _SMU_PPUSATD1_PCNT_SHIFT) \ + | (BOOTLOADER_PPUSATD1_HFRCO1 << _SMU_PPUSATD1_HFRCO1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_HFXO0 << _SMU_PPUSATD1_HFXO0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_I2C0 << _SMU_PPUSATD1_I2C0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_WDOG0 << _SMU_PPUSATD1_WDOG0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_WDOG1 << _SMU_PPUSATD1_WDOG1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_EUSART0 << _SMU_PPUSATD1_EUSART0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SEMAILBOX << _SMU_PPUSATD1_SEMAILBOX_SHIFT) \ + | (BOOTLOADER_PPUSATD1_MVP << _SMU_PPUSATD1_MVP_SHIFT) \ + | (BOOTLOADER_PPUSATD1_AHBRADIO << _SMU_PPUSATD1_AHBRADIO_SHIFT)) +#endif // BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE + +#endif // BTL_INTERFACE_CFG_S2C4_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/buffer_pool_allocator_config.h b/board-support/efr32/mgm24/BRD4317A/config/buffer_pool_allocator_config.h index 2c3fd2e67..9a96fedf3 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/buffer_pool_allocator_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/buffer_pool_allocator_config.h @@ -27,3 +27,4 @@ // <<< end of configuration section >>> #endif // __BUFFER_POOL_ALLOCATOR_CONFIG_H__ + diff --git a/board-support/efr32/mgm24/BRD4317A/config/circular_queue_config.h b/board-support/efr32/mgm24/BRD4317A/config/circular_queue_config.h index 81a7173d6..fe1ba75d3 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/circular_queue_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/circular_queue_config.h @@ -21,3 +21,4 @@ // <<< end of configuration section >>> #endif // __CIRCULAR_QUEUE_CONFIG_H__ + diff --git a/board-support/efr32/mgm24/BRD4317A/config/dmadrv_config.h b/board-support/efr32/mgm24/BRD4317A/config/dmadrv_config.h index ed105e4f3..dd58324d7 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/dmadrv_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/dmadrv_config.h @@ -24,3 +24,4 @@ // <<< end of configuration section >>> #endif // DMADRV_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/nvm3_default_config.h b/board-support/efr32/mgm24/BRD4317A/config/nvm3_default_config.h index 2bf415f94..95cdbb7f5 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/nvm3_default_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/nvm3_default_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif // NVM3_DEFAULT_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_802154_radio_priority_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_802154_radio_priority_config.h index 77334ba2c..cc09e8ca9 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_802154_radio_priority_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_802154_radio_priority_config.h @@ -55,3 +55,4 @@ // <<< end of configuration section >>> #endif //__SL_802154_RADIO_PRIORITY_CONFIG_H__ + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_bgapi_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_bgapi_config.h index 1ae43b6b5..522d1c904 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_bgapi_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_bgapi_config.h @@ -41,3 +41,4 @@ // <<< end of configuration section >>> #endif // SL_BGAPI_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_bluetooth_advertiser_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_bluetooth_advertiser_config.h index 00163cd9a..7cac58bfe 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_bluetooth_advertiser_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_bluetooth_advertiser_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_bluetooth_common_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_bluetooth_common_config.h new file mode 100644 index 000000000..55c3749d5 --- /dev/null +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_bluetooth_common_config.h @@ -0,0 +1,53 @@ +/***************************************************************************//** + * @file sl_bluetooth_common_config.h + * @brief Bluetooth Common configuration + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_BLUETOOTH_COMMON_CONFIG_H +#define SL_BLUETOOTH_COMMON_CONFIG_H + +// <<< Use Configuration Wizard in Context Menu >>> + +// Bluetooth Common Configuration + +// Buffer memory size for Bluetooth +// Default: 3150 +// Define the buffer memory size for buffering data over Bluetooth connections, advertising +// and scanning. The default value is an estimation for achieving adequate throughput +// and supporting multiple simultaneous connections. Consider increasing this value for +// higher data throughput over connections, advertising or scanning long advertisement data. +#ifndef SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE +#define SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE (3150) +#endif + +// Bluetooth Common Configuration + +// <<< end of configuration section >>> + +#endif // SL_BLUETOOTH_COMMON_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_bluetooth_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_bluetooth_config.h index 93bfbbcc4..cfaaef06d 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_bluetooth_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_bluetooth_config.h @@ -66,6 +66,9 @@ // advertising and scanning. The default value is an estimation for achieving adequate throughput // and supporting multiple simultaneous connections. Consider increasing this value for // higher data throughput over connections, advertising or scanning long advertisement data. +// NOTE: SL_BT_CONFIG_BUFFER_SIZE is deprecated in Simplicity SDK Suite v2026.6.0 and marked +// for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONFIG_BUFFER_SIZE is replaced by +// SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #define SL_BT_CONFIG_BUFFER_SIZE (3150) // Enable using a custom Bluetooth address stored in NVM3 @@ -124,11 +127,23 @@ // A negative value indicates some power loss in the path. For example, // with radiated TX power set to +10 dBm and this configuration to -10 // (i.e., 1 dBm loss), the transmitter output power will be set to +11 dBm. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_TX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_TX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_TX (0) // RF RX path gain in 0.1dBm unit // Default: 0 // RX RF path gain is used to compensate the RSSI reports from the Bluetooth Stack. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_RX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_RX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_RX (0) // End RF Path @@ -161,8 +176,6 @@ #include "sl_bt_stack_config.h" #include "sl_bgapi_config.h" // For SL_BGAPI_MAX_PAYLOAD_SIZE -// NOTE: Struct sl_btctrl_ll_priorities is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// The Link Layer scheduler priority configuration is initialized via the Bluetooth Low Energy Controller component. #define SL_BT_CONFIG_DEFAULT \ { \ .config_flags = SL_BT_CONFIG_FLAGS, \ @@ -179,3 +192,4 @@ } #endif // SL_BLUETOOTH_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_bluetooth_connection_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_bluetooth_connection_config.h index 73a382509..08bc34759 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_bluetooth_connection_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_bluetooth_connection_config.h @@ -46,3 +46,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_bt_rtos_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_bt_rtos_config.h index b80c07967..fec091919 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_bt_rtos_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_bt_rtos_config.h @@ -42,3 +42,4 @@ #endif #endif // SL_BT_RTOS_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_bt_rtos_config_s2.h b/board-support/efr32/mgm24/BRD4317A/config/sl_bt_rtos_config_s2.h index eb4fe3ea2..bc4c37420 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_bt_rtos_config_s2.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_bt_rtos_config_s2.h @@ -82,3 +82,4 @@ // <<< end of configuration section >>> #endif // SL_BT_RTOS_CONFIG_S2_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_btctrl_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_btctrl_config.h index 403df1ffe..8dfdb6281 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_btctrl_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_btctrl_config.h @@ -7,7 +7,10 @@ // Bluetooth Controller Buffer Memory // Default: SL_BT_CONTROLLER_BUFFER_MEMORY -// Define the Amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// Define the amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// NOTE: SL_BT_CONTROLLER_BUFFER_MEMORY is deprecated in Simplicity SDK Suite v2026.6.0 and +// marked for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONTROLLER_BUFFER_MEMORY is +// replaced by SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #ifndef SL_BT_CONTROLLER_BUFFER_MEMORY #define SL_BT_CONTROLLER_BUFFER_MEMORY (8192) #endif @@ -64,7 +67,7 @@ #define SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE (0) #endif -// Minimum radiated TX power level in 0.1dBm unit +// Minimum radiated TX power level in 0.1dBm units // Default: 0 // Define the minimum radiated TX power level. // If the configured power level is lower than what the radio supports, the minimum supported level will be used. @@ -83,7 +86,7 @@ #define SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE (0) #endif -// Maximum radiated TX power level in 0.1dBm unit +// Maximum radiated TX power level in 0.1dBm units // Default: 0 // Define the maximum radiated TX power level. // If the configured power level is higher than what the radio supports, the maximum supported level will be used. @@ -97,6 +100,28 @@ // End TX Power Levels +// RF Path + +// TX RF path gain in 0.1dB units +// Default: 0 +// The Bluetooth controller takes TX RF path gain into account when adjusting transmitter +// output power. Power radiated from the antenna then matches the application request. +// A negative value indicates some power loss in the path. For example, +// with radiated TX power set to +10 dBm and this configuration to -10 +// (i.e., 1 dB loss), the transmitter output power will be set to +11 dBm. +#ifndef SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB (0) +#endif + +// RX RF path gain in 0.1dB units +// Default: 0 +// RX RF path gain is used to compensate the RSSI reports received by the Bluetooth controller. +#ifndef SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB (0) +#endif + +// End RF Path + // Bluetooth Controller Configuration for LE Connection // Total transmitted packets threshold for all connections to send the Number Of Completed Packets HCI event to the host <1-255> // Default: 4 @@ -136,16 +161,6 @@ #define SL_BT_CONTROLLER_USE_LEGACY_VENDOR_SPECIFIC_EVENT_CODE (0) #endif -// Adaptive Frequency Hopping operation mode -// Active AFH -// Passive AFH -// Choose between active AFH and passive AFH -// Default: Active AFH -// SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY -#ifndef SL_BT_CONTROLLER_ADAPTIVITY_MODE -#define SL_BT_CONTROLLER_ADAPTIVITY_MODE (SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY) -#endif - // Advertising Configuration // Include TX Power in the extended header of primary extended advertising packets // This is default setting to all advertising sets unless it is specifically overridden by VS_SiliconLabs_Set_Advertising_Config_Bits. @@ -172,3 +187,4 @@ // <<< end of configuration section >>> #endif // SL_BTCTRL_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_btctrl_scheduler_priority_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_btctrl_scheduler_priority_config.h index 0eec28095..fd0e66f83 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_btctrl_scheduler_priority_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_btctrl_scheduler_priority_config.h @@ -146,7 +146,7 @@ // Rail Mapping Window Min // <0-255:1> -// Default: 16 +// Default: 32 // Define the minimum value of RAIL mapping window. // This parameter specifies how task priorities are passed to radio // coexistence and multiprotocol schedulers. @@ -157,17 +157,17 @@ // If coexistence or multiprotocol configuration is not used, then these // parameters have no effect. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 16 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 32 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN // Rail Mapping Window Range // <0-255:1> -// Default: 32 +// Default: 16 // Define the maximum value of the RAIL mapping window. // See SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN for a description of // this parameter. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 32 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 16 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX // PAwR Tx - Min @@ -220,9 +220,9 @@ .conn_max = SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX, \ .init_min = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN, \ .init_max = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX, \ - .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN, \ - .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX \ - - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN), \ + .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX, \ + .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN \ + - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX), \ 0, \ .adv_step = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP, \ .scan_step = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP, \ @@ -233,3 +233,4 @@ } #endif // SL_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_clock_manager_oscillator_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_clock_manager_oscillator_config.h index a66815036..ca6a4ae07 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_clock_manager_oscillator_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_clock_manager_oscillator_config.h @@ -374,3 +374,4 @@ // <<< sl:end pin_tool >>> #endif /* SL_CLOCK_MANAGER_OSCILLATOR_CONFIG_H */ + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_clock_manager_tree_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_clock_manager_tree_config.h index 1f6f2a089..1a05181af 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_clock_manager_tree_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_clock_manager_tree_config.h @@ -307,3 +307,4 @@ #endif /* SL_CLOCK_MANAGER_TREE_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_core_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_core_config.h index 27b173d2e..16d372fcf 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_core_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_core_config.h @@ -42,3 +42,4 @@ // <<< end of configuration section >>> #endif // SL_CORE_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_device_init_dcdc_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_device_init_dcdc_config.h index 35674eedf..a0a8241ec 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_device_init_dcdc_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_device_init_dcdc_config.h @@ -56,3 +56,4 @@ // <<< end of configuration section >>> #endif // SL_DEVICE_INIT_DCDC_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_fem_util_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_fem_util_config.h index d1281886b..022ce36ad 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_fem_util_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_fem_util_config.h @@ -74,3 +74,4 @@ #define SL_FEM_UTIL_RUNTIME_PHY_SELECT 0 #endif // SL_FEM_UTIL_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_gp_interface_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_gp_interface_config.h index fd5aa20ea..0624696f3 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_gp_interface_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_gp_interface_config.h @@ -42,3 +42,4 @@ #define GP_TX_MAX_TIMEOUT_IN_MICRO_SECONDS 5000000 // // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_hfxo_manager_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_hfxo_manager_config.h index d9ccd3c70..87afc3778 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_hfxo_manager_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_hfxo_manager_config.h @@ -54,3 +54,4 @@ #endif /* SL_HFXO_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_main_start_task_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_main_start_task_config.h index 7752c098f..7cc81a4da 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_main_start_task_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_main_start_task_config.h @@ -103,3 +103,4 @@ #endif /* SL_MAIN_START_TASK_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_memory_manager_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_memory_manager_config.h index 4a16c29fe..02af7ec0c 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_memory_manager_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_memory_manager_config.h @@ -47,6 +47,12 @@ // Default: 1 #define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 +// Enables the double free protection for the pool. +// Setting this configuration to 0 will disable the double free protection for the memory pool. saving ~100 bytes of code. +// This setting has no effect on the memory pools power aware version. +// Default: 1 +#define SL_MEMORY_MANAGER_POOL_DOUBLE_FREE_PROTECTION_ENABLE 1 + // // <<< end of configuration section >>> @@ -58,4 +64,13 @@ // Default: 1 #define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 +// Enables retention statistics (retained size, retained high watermark, bank counts). +// Requires bank-retention hardware on the target; SL_CATALOG_BANK_RETENTION_CONTROL_* is defined only for devices that implement it (not every part or kit). +// Software configuration alone cannot add bank retention where the silicon has no such feature. +// Independent of heap statistics (SL_MEMORY_MANAGER_STATISTICS_API_ENABLE). +// When disabled, retention getters return (size_t)-1 or SL_STATUS_NOT_AVAILABLE. +// Default: 0. +#define SL_MEMORY_MANAGER_STATISTICS_RETENTION_ENABLE 0 + #endif /* SL_MEMORY_MANAGER_CONFIG_H */ + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_memory_manager_region_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_memory_manager_region_config.h index bd640b59b..a0a4007e7 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_memory_manager_region_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_memory_manager_region_config.h @@ -49,3 +49,4 @@ // <<< end of configuration section >>> #endif /* SL_MEMORY_MANAGER_REGION_CONFIG_H */ + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_openthread_features_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_openthread_features_config.h index a3697f8af..054fb51b4 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_openthread_features_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_openthread_features_config.h @@ -200,24 +200,31 @@ #endif // // IPv6 Limits -// Maximum IPv6 external unicast addresses +// Runtime IPv6 external address pools +// Enable runtime configuration of external unicast and multicast address pools via otIp6Init(). +#ifndef OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +#define OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE 0 +#endif +#if OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +// CLI support for runtime IPv6 external address pools +// Enable `ifconfig init` CLI command for testing otIp6Init() pool configuration. +#ifndef OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE +#define OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE 1 +#endif +// +#else +// Maximum IPv6 external unicast addresses (ignored in runtime mode) // Maximum number of IPv6 unicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS 4 #endif -// Maximum IPv6 external multicast addresses +// Maximum IPv6 external multicast addresses (ignored in runtime mode) // Maximum number of IPv6 multicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS 4 #endif -// Maximum IPv6 address registrations for MTD -// The maximum number of IPv6 address registrations for MTD. -// If left unchanged will default to the value of OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD -// 4 -#ifndef OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER -#define OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER (OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD) #endif // // Jam Detection @@ -286,37 +293,13 @@ #ifndef OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM #define OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM 2 #endif +// Instance-aware platform logging API +#ifndef OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE +#define OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE 0 +#endif +// // // -// Define maximum total source match table entries for both OT and Zigbee. -// In multi-instance builds (SoC or RCP/host), table must support all OT instances + Zigbee. -// For single instance (default), table sized to just OT children. -// This value is used to size all source match tables in both OT and Zigbee code. -// Note: this is purposedly not being setup with CMSIS annotations. -#ifndef RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE -#if SL_ZIGBEE_MAX_END_DEVICE_CHILDREN -// Multipan / DMP case: OT + Zigbee -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - ((OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * (OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM - 1)) \ - + SL_ZIGBEE_MAX_END_DEVICE_CHILDREN) -#else -// Multi-instance OT-only case -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - (OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM) -#endif -#else -// Single-instance OT (SoC / NCP / non-multipan RCP) -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES OPENTHREAD_CONFIG_MLE_MAX_CHILDREN -#endif -#endif -// Spinel Match Table -// Maximum number of spinel source match table entries -// Ensure that this value is the total of the number of openthread children times the number of openthread instances plus the number of Zigbee children. -#ifndef OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES -#define OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#endif -// // OTNS (OpenThread Network Simulator) #ifndef OPENTHREAD_CONFIG_OTNS_ENABLE #define OPENTHREAD_CONFIG_OTNS_ENABLE 0 @@ -379,6 +362,40 @@ #define OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE 1 #endif // +// Vendor Name string +// Vendor Name string +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +#if OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE +// Default: "RD:Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "RD:Silicon Labs" +#else +// Default: "Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "Silicon Labs" +#endif +#endif // OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +// Vendor Model string +// Vendor Model string +// Default: "OpenThread" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL "OpenThread" +#endif +// Vendor SW Version string +// Vendor SW Version string +// Default: "3.1.0.0" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION "3.1.0.0" +#endif +// Vendor App URL string +// Vendor App URL string +// Default: "www.silabs.com" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL "www.silabs.com" +#endif +// Run-time configuration of Vendor Info +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE 1 +#endif +// // Time Synchronization Service #ifndef OPENTHREAD_CONFIG_TIME_SYNC_ENABLE #define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 0 @@ -399,6 +416,11 @@ #define OPENTHREAD_CONFIG_MAC_BEACON_PAYLOAD_PARSING_ENABLE 1 #endif // +// Log crash dump after initialization +#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE +#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 +#endif +// // Radio Driver RX buffers // Maximum number of RX buffers // The maximum number of RX buffers to use in the radio driver. @@ -408,66 +430,7 @@ #endif // // -// Logging -// LOG_OUTPUT -// NONE -// APP -// PLATFORM_DEFINED -// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP -// OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT -#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#endif - -// DYNAMIC_LOG_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE -#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 -#endif - -// Enable Logging -#define OPENTHREAD_FULL_LOGS_ENABLE 0 -#if OPENTHREAD_FULL_LOGS_ENABLE - -// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. -// LOG_LEVEL -// NONE -// CRIT -// WARN -// NOTE -// INFO -// DEBG -// Default: OT_LOG_LEVEL_DEBG -// OT_LOG_LEVEL_DEBG -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL -#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG -#endif -// CLI -#ifndef OPENTHREAD_CONFIG_LOG_CLI -#define OPENTHREAD_CONFIG_LOG_CLI 1 -#endif -// PKT_DUMP -#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP -#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 -#endif -// PLATFORM -#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM -#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 -#endif -// PREPEND_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL -#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 -#endif - -#endif // OPENTHREAD_FULL_LOGS_ENABLE - -// Log crash dump after initialization -#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE -#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 -#endif - -// -// -// // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_FEATURES_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_openthread_log_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_openthread_log_config.h new file mode 100644 index 000000000..420892125 --- /dev/null +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_openthread_log_config.h @@ -0,0 +1,89 @@ +/******************************************************************************* + * @file + * @brief OpenThread log configuration file. + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_OPENTHREAD_LOG_CONFIG_H +#define _SL_OPENTHREAD_LOG_CONFIG_H + +//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- +// Logging +// LOG_OUTPUT +// NONE +// APP +// PLATFORM_DEFINED +// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP +// OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT +#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#endif + +// DYNAMIC_LOG_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE +#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 +#endif + +// Enable Logging +#define OPENTHREAD_FULL_LOGS_ENABLE 0 +#if OPENTHREAD_FULL_LOGS_ENABLE +// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. +// LOG_LEVEL +// NONE +// CRIT +// WARN +// NOTE +// INFO +// DEBG +// Default: OT_LOG_LEVEL_DEBG +// OT_LOG_LEVEL_DEBG +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL +#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG +#endif +// CLI +#ifndef OPENTHREAD_CONFIG_LOG_CLI +#define OPENTHREAD_CONFIG_LOG_CLI 1 +#endif +// PKT_DUMP +#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP +#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 +#endif +// PLATFORM +#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM +#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 +#endif +// PREPEND_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL +#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 +#endif +// +#endif // OPENTHREAD_FULL_LOGS_ENABLE +// +// +// <<< end of configuration section >>> +#endif // _SL_OPENTHREAD_LOG_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_openthread_radio_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_openthread_radio_config.h index 478a72430..1735c91c6 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_openthread_radio_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_openthread_radio_config.h @@ -40,6 +40,11 @@ #define SL_OPENTHREAD_RSSI_AVERAGING_TIME 16 // us // RSSI Average Timeout [us] #define SL_OPENTHREAD_RSSI_AVERAGING_TIMEOUT 300 // us +// Debug Counters Support +#ifndef RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT +#define RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT 0 // Set to 1 to enable debug counters in radio.c +#endif // // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_RADIO_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_openthread_rtos_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_openthread_rtos_config.h index 6dc710fcc..16a2b1709 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_openthread_rtos_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_openthread_rtos_config.h @@ -72,18 +72,10 @@ #define SL_OPENTHREAD_APP_TASK_MEM_SIZE (4608) // OpenThread serial task stack size in bytes <1000-20000> -// Default: 3072 +// Default: 3840 // Defines the stack size of the OpenThread RTOS serial task. The value is in bytes and // and will be word aligned when it is applied at the task creation. -#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3072) - -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread serial task prority -// Default: 16 (CMSIS-RTOS2 osPriorityBelowNormal) -// Defines OpenThread serial task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_SERIAL_TASK_PRIORITY (16) +#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3840) // // App Task @@ -107,3 +99,4 @@ // // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_power_manager_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_power_manager_config.h index 86b9fef27..1c71950d9 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_power_manager_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_power_manager_config.h @@ -98,3 +98,4 @@ #endif /* SL_POWER_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_rail_util_pa_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_rail_util_pa_config.h index e43bfc96a..2d4f50c6f 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_rail_util_pa_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_rail_util_pa_config.h @@ -81,3 +81,4 @@ // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_PA_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_rail_util_power_manager_init_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_rail_util_power_manager_init_config.h index cbc69f24d..bcc7596c5 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_rail_util_power_manager_init_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_rail_util_power_manager_init_config.h @@ -42,3 +42,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_rail_util_rssi_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_rail_util_rssi_config.h index 128d705f5..d706e8785 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_rail_util_rssi_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_rail_util_rssi_config.h @@ -46,3 +46,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_RSSI_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_rail_util_sequencer_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_rail_util_sequencer_config.h index 72b05eb66..706e91c2f 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_rail_util_sequencer_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_rail_util_sequencer_config.h @@ -44,3 +44,4 @@ extern "C" { #endif #endif // SL_RAIL_UTIL_SEQUENCER_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_simple_button_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_simple_button_config.h index 531f4f208..4cd53a96b 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_simple_button_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_simple_button_config.h @@ -70,3 +70,4 @@ // <<< end of configuration section >>> #endif // SL_SIMPLE_BUTTON_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4317A/config/sl_sleeptimer_config.h b/board-support/efr32/mgm24/BRD4317A/config/sl_sleeptimer_config.h index 8344ef5f1..c638bfeed 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/sl_sleeptimer_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/sl_sleeptimer_config.h @@ -52,6 +52,7 @@ // WTIMER // TIMER // Selection of the Timer Peripheral Used by the Sleeptimer +// If BURTC is needed as an EM4 wake-up source, it must not be used by Sleeptimer. #define SL_SLEEPTIMER_PERIPHERAL SL_SLEEPTIMER_PERIPHERAL_DEFAULT // TIMER/WTIMER Instance Used by Sleeptimer (not applicable for other peripherals) @@ -80,3 +81,4 @@ #endif /* SLEEPTIMER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4317A/config/uartdrv_config.h b/board-support/efr32/mgm24/BRD4317A/config/uartdrv_config.h index f41b347e1..b0fc7f703 100644 --- a/board-support/efr32/mgm24/BRD4317A/config/uartdrv_config.h +++ b/board-support/efr32/mgm24/BRD4317A/config/uartdrv_config.h @@ -121,3 +121,4 @@ /** @} (end addtogroup uartdrv) */ #endif /* __SILICON_LABS_UARTDRV_CONFIG_H__ */ + diff --git a/board-support/efr32/mgm24/BRD4318A/autogen/gatt_db.h b/board-support/efr32/mgm24/BRD4318A/autogen/gatt_db.h index c179e6b28..b3a2e67f9 100644 --- a/board-support/efr32/mgm24/BRD4318A/autogen/gatt_db.h +++ b/board-support/efr32/mgm24/BRD4318A/autogen/gatt_db.h @@ -5,10 +5,6 @@ #ifndef __GATT_DB_H #define __GATT_DB_H -#if __cplusplus -extern "C" { -#endif - #include "sli_bt_gattdb_def.h" extern const sli_bt_gattdb_t gattdb; @@ -31,8 +27,5 @@ extern const sli_bt_gattdb_t gattdb; #define gattdb_CHIPoBLEChar_Tx_len 247 #define gattdb_CHIPoBLEChar_C3_len 512 -#if __cplusplus -} -#endif #endif // __GATT_DB_H diff --git a/board-support/efr32/mgm24/BRD4318A/autogen/sl_bluetooth.c b/board-support/efr32/mgm24/BRD4318A/autogen/sl_bluetooth.c index 0a5f1a969..0cf47b680 100644 --- a/board-support/efr32/mgm24/BRD4318A/autogen/sl_bluetooth.c +++ b/board-support/efr32/mgm24/BRD4318A/autogen/sl_bluetooth.c @@ -76,13 +76,13 @@ void sl_bt_step(void) // Check the length of the next event, if any, and verify that the application // can process it. To prevent data loss, the event will be kept in the stack's // queue if the application cannot process it at the moment. - size_t event_len = sli_bgapi_device_peek_event_len(&sli_bt_bgapi_device); + size_t event_len = sli_bgapi_device_peek_event_len(sli_bt_bgapi_device); if ((event_len == 0) || (!sl_bt_can_process_event(event_len))) { return; } // Pop the event and process it if successful - sl_status_t status = sli_bgapi_device_pop_event(&sli_bt_bgapi_device, + sl_status_t status = sli_bgapi_device_pop_event(sli_bt_bgapi_device, sizeof(evt), &evt); diff --git a/board-support/efr32/mgm24/BRD4318A/autogen/sl_component_catalog.h b/board-support/efr32/mgm24/BRD4318A/autogen/sl_component_catalog.h index d8005d952..cf322938f 100644 --- a/board-support/efr32/mgm24/BRD4318A/autogen/sl_component_catalog.h +++ b/board-support/efr32/mgm24/BRD4318A/autogen/sl_component_catalog.h @@ -4,7 +4,9 @@ // APIs present in project #define SL_CATALOG_BGAPI_PROTOCOL_PRESENT #define SL_CATALOG_BGAPI_PROTOCOL_RTOS_ADAPTATION_PRESENT +#define SL_CATALOG_BLUETOOTH_COMMON_PRESENT #define SL_CATALOG_BLUETOOTH_CONFIGURATION_PRESENT +#define SL_CATALOG_BLUETOOTH_CRYPTO_LIB_PSA_PRESENT #define SL_CATALOG_BLUETOOTH_CTE_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_CS_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_FEATURE_ADVERTISER_PRESENT @@ -26,7 +28,9 @@ #define SL_CATALOG_CPP_SUPPORT_PRESENT #define SL_CATALOG_DEVICE_INIT_PRESENT #define SL_CATALOG_DEVICE_INIT_DCDC_PRESENT +#define SL_CATALOG_DMA_MANAGER_PRESENT #define SL_CATALOG_EMLIB_CORE_PRESENT +#define SL_CATALOG_EMLIB_GPIO_PRESENT #define SL_CATALOG_EMLIB_RMU_PRESENT #define SL_CATALOG_FREERTOS_KERNEL_PRESENT #define SL_CATALOG_KERNEL_PRESENT @@ -38,9 +42,9 @@ #define SL_CATALOG_INTERRUPT_MANAGER_PRESENT #define SL_CATALOG_IOSTREAM_PRESENT #ifdef DISPLAY_ENABLED -#define SL_CATALOG_MEMLCD_USART_PRESENT #define SL_CATALOG_DMD_MEMLCD_PRESENT -#endif +#define SL_CATALOG_MEMLCD_USART_PRESENT +#endif // DISPLAY_ENABLED #define SL_CATALOG_MEMORY_MANAGER_PRESENT #define SL_CATALOG_MEMORY_PROFILER_API_PRESENT #define SL_CATALOG_MPU_PRESENT @@ -57,7 +61,7 @@ #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_SEGGER_RTT_PRESENT #define SL_CATALOG_BTN0_PRESENT @@ -66,16 +70,23 @@ #define SL_CATALOG_BTN1_PRESENT #define SL_CATALOG_SIMPLE_BUTTON_BTN1_PRESENT #define SL_CATALOG_SL_CORE_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_SL_MAIN_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_COMPATIBLE_PA_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_SEQUENCER_PRESENT +#define SL_CATALOG_RAIL_UTIL_SEQUENCER_PRESENT #define SL_CATALOG_SLEEPTIMER_PRESENT #define SL_CATALOG_SLI_PROTOCOL_CRYPTO_PRESENT #if defined(CONFIG_ENABLE_UART) #define SL_CATALOG_UARTDRV_EUSART_PRESENT -#endif +#define SL_CATALOG_OPENTHREAD_UART_PRESENT +#endif // CONFIG_ENABLE_UART #endif // SL_COMPONENT_CATALOG_H diff --git a/board-support/efr32/mgm24/BRD4318A/autogen/sl_dma_manager_instances.c b/board-support/efr32/mgm24/BRD4318A/autogen/sl_dma_manager_instances.c new file mode 100644 index 000000000..f4339b2ed --- /dev/null +++ b/board-support/efr32/mgm24/BRD4318A/autogen/sl_dma_manager_instances.c @@ -0,0 +1,51 @@ +/***************************************************************************//** + * @file + * @brief DMA Manager Instances Initialization. + ******************************************************************************* + * # License + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_dma_manager_instances.h" +#include "sl_dma_manager.h" +#include "sl_device_peripheral.h" + + + +sl_dma_handle_t sl_dma_handle_ldma0; + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + ******************************************************************************/ +void sl_dma_manager_instances_init(void) +{ + + // Initialize DMA Manager instance: LDMA0 + sl_dma_manager_init(&sl_dma_handle_ldma0, SL_PERIPHERAL_DMA_LDMA0); + +} + + diff --git a/board-support/efr32/mgm24/BRD4318A/autogen/sl_dma_manager_instances.h b/board-support/efr32/mgm24/BRD4318A/autogen/sl_dma_manager_instances.h new file mode 100644 index 000000000..1580ad2b2 --- /dev/null +++ b/board-support/efr32/mgm24/BRD4318A/autogen/sl_dma_manager_instances.h @@ -0,0 +1,71 @@ +/***************************************************************************//** + * @file + * @brief DMA Manager Instances API. + ******************************************************************************* + * # License + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_DMA_MANAGER_INSTANCES_H +#define SL_DMA_MANAGER_INSTANCES_H + +#include "sl_dma_manager.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/***************************************************************************//** + * @addtogroup dma_manager DMA Manager + * @{ + ******************************************************************************/ + + + +extern sl_dma_handle_t sl_dma_handle_ldma0; + + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + * + * @details This function initializes all DMA Manager instances that have been + * configured through the component system. Each instance corresponds + * to a DMA peripheral (e.g., LDMA0, LDMA1). + * + * @note This function is typically called automatically during system + * initialization when the dma_manager_init component is included + * in the project. + ******************************************************************************/ +void sl_dma_manager_instances_init(void); + +/** @} (end addtogroup dma_manager) */ + +#ifdef __cplusplus +} +#endif + +#endif // SL_DMA_MANAGER_INSTANCES_H + diff --git a/board-support/efr32/mgm24/BRD4318A/autogen/sl_event_handler.c b/board-support/efr32/mgm24/BRD4318A/autogen/sl_event_handler.c index d736dfb43..c8477831c 100644 --- a/board-support/efr32/mgm24/BRD4318A/autogen/sl_event_handler.c +++ b/board-support/efr32/mgm24/BRD4318A/autogen/sl_event_handler.c @@ -5,7 +5,6 @@ #include "sl_hfxo_manager.h" #include "sl_rail_util_compatible_pa.h" #if !(defined(SLI_SI91X_ENABLE_BLE) && SLI_SI91X_ENABLE_BLE) -#include "sl_bluetooth.h" #include "sl_rail_util_power_manager_init.h" #endif // !SLI_SI91X_ENABLE_BLE #include "sl_rail_util_power_manager_init.h" @@ -15,6 +14,7 @@ #include "sl_fem_util.h" #include "sl_board_control.h" #include "platform-efr32.h" +#include "sl_dma_manager_instances.h" #include "sl_bt_rtos_adaptation.h" #include "sl_bluetooth.h" #include "sl_debug_swo.h" @@ -64,6 +64,7 @@ void sl_platform_init(void) sl_hfxo_manager_init_hardware(); sl_board_init(); bootloader_init(); + sl_dma_manager_instances_init(); nvm3_initDefault(); } diff --git a/board-support/efr32/mgm24/BRD4318A/config/app_properties_config.h b/board-support/efr32/mgm24/BRD4318A/config/app_properties_config.h index 6a6b97666..34418403f 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/app_properties_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/app_properties_config.h @@ -63,3 +63,4 @@ // #endif // APP_PROPERTIES_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/btconf/gatt_configuration.btconf b/board-support/efr32/mgm24/BRD4318A/config/btconf/gatt_configuration.btconf deleted file mode 100644 index 4d1efd972..000000000 --- a/board-support/efr32/mgm24/BRD4318A/config/btconf/gatt_configuration.btconf +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - Abstract: The generic_access service contains generic information about the device. All available Characteristics are readonly. - - - - - Empty Example - - - - - - - - - Abstract: The external appearance of this device. The values are composed of a category (10-bits) and sub-categories (6-bits). - 0000 - - - - - - - - - Abstract: The Device Information Service exposes manufacturer and/or vendor information about a device. Summary: This service exposes manufacturer information about a device. The Device Information Service is instantiated as a Primary Service. Only one instance of the Device Information Service is exposed on a device. - - - - Abstract: The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device. - Silicon Labs - - - - - - - - Abstract: The value of this characteristic is a UTF-8 string representing the model number assigned by the device vendor. - Blue Gecko - - - - - - - - Abstract: The SYSTEM ID characteristic consists of a structure with two fields. The first field are the LSOs and the second field contains the MSOs. This is a 64-bit structure which consists of a 40-bit manufacturer-defined identifier concatenated with a 24 bit unique Organizationally Unique Identifier (OUI). The OUI is issued by the IEEE Registration Authority (http://standards.ieee.org/regauth/index.html) and is required to be used in accordance with IEEE Standard 802-2001.6 while the least significant 40 bits are manufacturer defined. If System ID generated based on a Bluetooth Device Address, it is required to be done as follows. System ID and the Bluetooth Device Address have a very similar structure: a Bluetooth Device Address is 48 bits in length and consists of a 24 bit Company Assigned Identifier (manufacturer defined identifier) concatenated with a 24 bit Company Identifier (OUI). In order to encapsulate a Bluetooth Device Address as System ID, the Company Identifier is concatenated with 0xFFFE followed by the Company Assigned Identifier of the Bluetooth Address. For more guidelines related to EUI-64, refer to http://standards.ieee.org/develop/regauth/tut/eui64.pdf. Examples: If the system ID is based of a Bluetooth Device Address with a Company Identifier (OUI) is 0x123456 and the Company Assigned Identifier is 0x9ABCDE, then the System Identifier is required to be 0x123456FFFE9ABCDE. - 000102030405 - - - - - - - - - Custom service - - - - Custom characteristic - 00 - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - diff --git a/board-support/efr32/mgm24/BRD4318A/config/btl_interface_cfg.h b/board-support/efr32/mgm24/BRD4318A/config/btl_interface_cfg.h new file mode 100644 index 000000000..fc17ccfff --- /dev/null +++ b/board-support/efr32/mgm24/BRD4318A/config/btl_interface_cfg.h @@ -0,0 +1,64 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_H +#define BTL_INTERFACE_CFG_H + +#if !defined(BOOTLOADER_APPLOADER) + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_1) +#include "btl_interface_cfg_s2c1.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_2) +#include "btl_interface_cfg_s2c2.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_3) +#include "btl_interface_cfg_s2c3.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_4) +#include "btl_interface_cfg_s2c4.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_5) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_6) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_8) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_9) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_13) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_11) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif +#endif// !BOOTLOADER_APPLOADER + +#endif // BTL_INTERFACE_CFG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/btl_interface_cfg_s2c4.h b/board-support/efr32/mgm24/BRD4318A/config/btl_interface_cfg_s2c4.h new file mode 100644 index 000000000..a93bdec95 --- /dev/null +++ b/board-support/efr32/mgm24/BRD4318A/config/btl_interface_cfg_s2c4.h @@ -0,0 +1,322 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_S2C4_H +#define BTL_INTERFACE_CFG_S2C4_H + +// <<< Use Configuration Wizard in Context Menu >>> +// Bootloader Interface Trust Zone Security State Configuration + +// Disable multi tiered fallback logic +// The fault handling logic as well as the USART auto-detection logic will be disabled. +// The re-configuration of SMU will be handled by querying the running bootloader +// for the peripheral list. Querying the peripheral list is supported from the bootloader +// version 2.0.0. Check for the BOOTLOADER_CAPABILITY_PERIPHERAL_LIST capability to +// see if the running bootloader supports querying the peripheral list. +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 0 + +// Disable peripheral access fault handling +// The fault handling triggered by an erroneous access of peripherals will be disabled. +// +// This should be disabled iff all the peripherals that are in use by the bootloader +// have been properly configured by the "Manually override security state of peripherals" option. +#define BOOTLOADER_DISABLE_NVM3_FAULT_HANDLING 0 + +// Manually override the security state of peripherals in use by the bootloader +// Default: 0. +// Manually override the security state of peripherals. Choose the peripherals touched +// by the customized code to have a valid secure access state before interacting with the bootloader +// In practice, this means that the chosen peripherals will be available at the secure address, +// which is accessible by the bootloader. Once the application is entered back the secure access state +// is changed back to the original state. +// +// The USART auto-detection logic that detects which, if any, USART is in use by the bootloader +// will be disabled. Make sure to choose the correct USART used by the bootloader. +#define BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE 0 +// EMU +// Update secure access state of EMU before calling into bootloader +#define BOOTLOADER_PPUSATD0_EMU 0 + +// CMU +// Update secure access state of CMU before calling into bootloader +#define BOOTLOADER_PPUSATD0_CMU 0 + +// HFRCO0 +// Update secure access state of HFRCO0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_HFRCO0 0 + +// FSRCO +// Update secure access state of FSRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_FSRCO 0 + +// DPLL0 +// Update secure access state of DPLL0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_DPLL0 0 + +// LFXO +// Update secure access state of LFXO before calling into bootloader +#define BOOTLOADER_PPUSATD0_LFXO 0 + +// LFRCO +// Update secure access state of LFRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_LFRCO 0 + +// ULFRCO +// Update secure access state of ULFRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_ULFRCO 0 + +// MSC +// Update secure access state of MSC before calling into bootloader +#define BOOTLOADER_PPUSATD0_MSC 0 + +// ICACHE0 +// Update secure access state of ICACHE0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_ICACHE0 0 + +// PRS +// Update secure access state of PRS before calling into bootloader +#define BOOTLOADER_PPUSATD0_PRS 0 + +// GPIO +// Update secure access state of GPIO before calling into bootloader +#define BOOTLOADER_PPUSATD0_GPIO 0 + +// LDMA +// Update secure access state of LDMA before calling into bootloader +#define BOOTLOADER_PPUSATD0_LDMA 0 + +// LDMAXBAR +// Update secure access state of LDMAXBAR before calling into bootloader +#define BOOTLOADER_PPUSATD0_LDMAXBAR 0 + +// TIMER0 +// Update secure access state of TIMER0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER0 0 + +// TIMER1 +// Update secure access state of TIMER1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER1 0 + +// TIMER2 +// Update secure access state of TIMER2 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER2 0 + +// TIMER3 +// Update secure access state of TIMER3 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER3 0 + +// TIMER4 +// Update secure access state of TIMER4 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER4 0 + +// USART0 +// Update secure access state of USART0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_USART0 0 + +// BURTC +// Update secure access state of BURTC before calling into bootloader +#define BOOTLOADER_PPUSATD0_BURTC 0 + +// I2C1 +// Update secure access state of I2C1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_I2C1 0 + +// CHIPTESTCTRL +// Update secure access state of CHIPTESTCTRL before calling into bootloader +#define BOOTLOADER_PPUSATD0_CHIPTESTCTRL 0 + +// SYSCFGCFGNS +// Update secure access state of SYSCFGCFGNS before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSCFGCFGNS 0 + +// SYSCFG +// Update secure access state of SYSCFG before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSCFG 0 + +// BURAM +// Update secure access state of BURAM before calling into bootloader +#define BOOTLOADER_PPUSATD0_BURAM 0 + +// GPCRC +// Update secure access state of GPCRC before calling into bootloader +#define BOOTLOADER_PPUSATD0_GPCRC 0 + +// DCDC +// Update secure access state of DCDC before calling into bootloader +#define BOOTLOADER_PPUSATD0_DCDC 0 + +// HOSTMAILBOX +// Update secure access state of HOSTMAILBOX before calling into bootloader +#define BOOTLOADER_PPUSATD0_HOSTMAILBOX 0 + +// EUSART1 +// Update secure access state of EUSART1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_EUSART1 0 + +// SYSRTC +// Update secure access state of SYSRTC before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSRTC 0 + +// KEYSCAN +// Update secure access state of KEYSCAN before calling into bootloader +#define BOOTLOADER_PPUSATD1_KEYSCAN 0 + +// DMEM +// Update secure access state of DMEM before calling into bootloader +#define BOOTLOADER_PPUSATD1_DMEM 0 + +// RADIOAES +// Update secure access state of RADIOAES before calling into bootloader +#define BOOTLOADER_PPUSATD1_RADIOAES 0 + +// SMU +// Update secure access state of SMU before calling into bootloader +#define BOOTLOADER_PPUSATD1_SMU 0 + +// SMUCFGNS +// Update secure access state of SMUCFGNS before calling into bootloader +#define BOOTLOADER_PPUSATD1_SMUCFGNS 0 + +// LETIMER0 +// Update secure access state of LETIMER0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_LETIMER0 0 + +// IADC0 +// Update secure access state of IADC0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_IADC0 0 + +// ACMP0 +// Update secure access state of ACMP0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_ACMP0 0 + +// ACMP1 +// Update secure access state of ACMP1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_ACMP1 0 + +// AMUXCP0 +// Update secure access state of AMUXCP0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_AMUXCP0 0 + +// VDAC0 +// Update secure access state of VDAC0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_VDAC0 0 + +// VDAC1 +// Update secure access state of VDAC1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_VDAC1 0 + +// PCNT +// Update secure access state of PCNT before calling into bootloader +#define BOOTLOADER_PPUSATD1_PCNT 0 + +// HFRCO1 +// Update secure access state of HFRCO1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_HFRCO1 0 + +// HFXO0 +// Update secure access state of HFXO0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_HFXO0 0 + +// I2C0 +// Update secure access state of I2C0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_I2C0 0 + +// WDOG0 +// Update secure access state of WDOG0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_WDOG0 0 + +// WDOG1 +// Update secure access state of WDOG1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_WDOG1 0 + +// EUSART0 +// Update secure access state of EUSART0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_EUSART0 0 + +// SEMAILBOX +// Update secure access state of SEMAILBOX before calling into bootloader +#define BOOTLOADER_PPUSATD1_SEMAILBOX 0 + +// MVP +// Update secure access state of MVP before calling into bootloader +#define BOOTLOADER_PPUSATD1_MVP 0 + +// AHBRADIO +// Update secure access state of AHBRADIO before calling into bootloader +#define BOOTLOADER_PPUSATD1_AHBRADIO 0 +// + +// +// <<< end of configuration section >>> + +#if BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE == 1 +#define BOOTLOADER_PPUSATD0_MASK ((BOOTLOADER_PPUSATD0_EMU << _SMU_PPUSATD0_EMU_SHIFT) \ + | (BOOTLOADER_PPUSATD0_CMU << _SMU_PPUSATD0_CMU_SHIFT) \ + | (BOOTLOADER_PPUSATD0_HFRCO0 << _SMU_PPUSATD0_HFRCO0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_FSRCO << _SMU_PPUSATD0_FSRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_DPLL0 << _SMU_PPUSATD0_DPLL0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LFXO << _SMU_PPUSATD0_LFXO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LFRCO << _SMU_PPUSATD0_LFRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_ULFRCO << _SMU_PPUSATD0_ULFRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_MSC << _SMU_PPUSATD0_MSC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_ICACHE0 << _SMU_PPUSATD0_ICACHE0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_PRS << _SMU_PPUSATD0_PRS_SHIFT) \ + | (BOOTLOADER_PPUSATD0_GPIO << _SMU_PPUSATD0_GPIO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LDMA << _SMU_PPUSATD0_LDMA_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LDMAXBAR << _SMU_PPUSATD0_LDMAXBAR_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER0 << _SMU_PPUSATD0_TIMER0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER1 << _SMU_PPUSATD0_TIMER1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER2 << _SMU_PPUSATD0_TIMER2_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER3 << _SMU_PPUSATD0_TIMER3_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER4 << _SMU_PPUSATD0_TIMER4_SHIFT) \ + | (BOOTLOADER_PPUSATD0_USART0 << _SMU_PPUSATD0_USART0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_BURTC << _SMU_PPUSATD0_BURTC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_I2C1 << _SMU_PPUSATD0_I2C1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_CHIPTESTCTRL << _SMU_PPUSATD0_CHIPTESTCTRL_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSCFGCFGNS << _SMU_PPUSATD0_SYSCFGCFGNS_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSCFG << _SMU_PPUSATD0_SYSCFG_SHIFT) \ + | (BOOTLOADER_PPUSATD0_BURAM << _SMU_PPUSATD0_BURAM_SHIFT) \ + | (BOOTLOADER_PPUSATD0_GPCRC << _SMU_PPUSATD0_GPCRC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_DCDC << _SMU_PPUSATD0_DCDC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_HOSTMAILBOX << _SMU_PPUSATD0_HOSTMAILBOX_SHIFT) \ + | (BOOTLOADER_PPUSATD0_EUSART1 << _SMU_PPUSATD0_EUSART1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSRTC << _SMU_PPUSATD0_SYSRTC_SHIFT)) +#define BOOTLOADER_PPUSATD1_MASK ((BOOTLOADER_PPUSATD1_KEYSCAN << _SMU_PPUSATD1_KEYSCAN_SHIFT) \ + | (BOOTLOADER_PPUSATD1_DMEM << _SMU_PPUSATD1_DMEM_SHIFT) \ + | (BOOTLOADER_PPUSATD1_RADIOAES << _SMU_PPUSATD1_RADIOAES_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SMU << _SMU_PPUSATD1_SMU_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SMUCFGNS << _SMU_PPUSATD1_SMUCFGNS_SHIFT) \ + | (BOOTLOADER_PPUSATD1_LETIMER0 << _SMU_PPUSATD1_LETIMER0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_IADC0 << _SMU_PPUSATD1_IADC0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_ACMP0 << _SMU_PPUSATD1_ACMP0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_ACMP1 << _SMU_PPUSATD1_ACMP1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_AMUXCP0 << _SMU_PPUSATD1_AMUXCP0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_VDAC0 << _SMU_PPUSATD1_VDAC0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_VDAC1 << _SMU_PPUSATD1_VDAC1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_PCNT << _SMU_PPUSATD1_PCNT_SHIFT) \ + | (BOOTLOADER_PPUSATD1_HFRCO1 << _SMU_PPUSATD1_HFRCO1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_HFXO0 << _SMU_PPUSATD1_HFXO0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_I2C0 << _SMU_PPUSATD1_I2C0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_WDOG0 << _SMU_PPUSATD1_WDOG0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_WDOG1 << _SMU_PPUSATD1_WDOG1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_EUSART0 << _SMU_PPUSATD1_EUSART0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SEMAILBOX << _SMU_PPUSATD1_SEMAILBOX_SHIFT) \ + | (BOOTLOADER_PPUSATD1_MVP << _SMU_PPUSATD1_MVP_SHIFT) \ + | (BOOTLOADER_PPUSATD1_AHBRADIO << _SMU_PPUSATD1_AHBRADIO_SHIFT)) +#endif // BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE + +#endif // BTL_INTERFACE_CFG_S2C4_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/buffer_pool_allocator_config.h b/board-support/efr32/mgm24/BRD4318A/config/buffer_pool_allocator_config.h index 2c3fd2e67..9a96fedf3 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/buffer_pool_allocator_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/buffer_pool_allocator_config.h @@ -27,3 +27,4 @@ // <<< end of configuration section >>> #endif // __BUFFER_POOL_ALLOCATOR_CONFIG_H__ + diff --git a/board-support/efr32/mgm24/BRD4318A/config/circular_queue_config.h b/board-support/efr32/mgm24/BRD4318A/config/circular_queue_config.h index 81a7173d6..fe1ba75d3 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/circular_queue_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/circular_queue_config.h @@ -21,3 +21,4 @@ // <<< end of configuration section >>> #endif // __CIRCULAR_QUEUE_CONFIG_H__ + diff --git a/board-support/efr32/mgm24/BRD4318A/config/dmadrv_config.h b/board-support/efr32/mgm24/BRD4318A/config/dmadrv_config.h index ed105e4f3..dd58324d7 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/dmadrv_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/dmadrv_config.h @@ -24,3 +24,4 @@ // <<< end of configuration section >>> #endif // DMADRV_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/nvm3_default_config.h b/board-support/efr32/mgm24/BRD4318A/config/nvm3_default_config.h index 2bf415f94..95cdbb7f5 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/nvm3_default_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/nvm3_default_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif // NVM3_DEFAULT_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_802154_radio_priority_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_802154_radio_priority_config.h index 77334ba2c..cc09e8ca9 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_802154_radio_priority_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_802154_radio_priority_config.h @@ -55,3 +55,4 @@ // <<< end of configuration section >>> #endif //__SL_802154_RADIO_PRIORITY_CONFIG_H__ + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_bgapi_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_bgapi_config.h index 1ae43b6b5..522d1c904 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_bgapi_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_bgapi_config.h @@ -41,3 +41,4 @@ // <<< end of configuration section >>> #endif // SL_BGAPI_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_bluetooth_advertiser_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_bluetooth_advertiser_config.h index 00163cd9a..7cac58bfe 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_bluetooth_advertiser_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_bluetooth_advertiser_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_bluetooth_common_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_bluetooth_common_config.h new file mode 100644 index 000000000..55c3749d5 --- /dev/null +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_bluetooth_common_config.h @@ -0,0 +1,53 @@ +/***************************************************************************//** + * @file sl_bluetooth_common_config.h + * @brief Bluetooth Common configuration + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_BLUETOOTH_COMMON_CONFIG_H +#define SL_BLUETOOTH_COMMON_CONFIG_H + +// <<< Use Configuration Wizard in Context Menu >>> + +// Bluetooth Common Configuration + +// Buffer memory size for Bluetooth +// Default: 3150 +// Define the buffer memory size for buffering data over Bluetooth connections, advertising +// and scanning. The default value is an estimation for achieving adequate throughput +// and supporting multiple simultaneous connections. Consider increasing this value for +// higher data throughput over connections, advertising or scanning long advertisement data. +#ifndef SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE +#define SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE (3150) +#endif + +// Bluetooth Common Configuration + +// <<< end of configuration section >>> + +#endif // SL_BLUETOOTH_COMMON_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_bluetooth_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_bluetooth_config.h index 93bfbbcc4..cfaaef06d 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_bluetooth_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_bluetooth_config.h @@ -66,6 +66,9 @@ // advertising and scanning. The default value is an estimation for achieving adequate throughput // and supporting multiple simultaneous connections. Consider increasing this value for // higher data throughput over connections, advertising or scanning long advertisement data. +// NOTE: SL_BT_CONFIG_BUFFER_SIZE is deprecated in Simplicity SDK Suite v2026.6.0 and marked +// for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONFIG_BUFFER_SIZE is replaced by +// SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #define SL_BT_CONFIG_BUFFER_SIZE (3150) // Enable using a custom Bluetooth address stored in NVM3 @@ -124,11 +127,23 @@ // A negative value indicates some power loss in the path. For example, // with radiated TX power set to +10 dBm and this configuration to -10 // (i.e., 1 dBm loss), the transmitter output power will be set to +11 dBm. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_TX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_TX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_TX (0) // RF RX path gain in 0.1dBm unit // Default: 0 // RX RF path gain is used to compensate the RSSI reports from the Bluetooth Stack. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_RX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_RX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_RX (0) // End RF Path @@ -161,8 +176,6 @@ #include "sl_bt_stack_config.h" #include "sl_bgapi_config.h" // For SL_BGAPI_MAX_PAYLOAD_SIZE -// NOTE: Struct sl_btctrl_ll_priorities is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// The Link Layer scheduler priority configuration is initialized via the Bluetooth Low Energy Controller component. #define SL_BT_CONFIG_DEFAULT \ { \ .config_flags = SL_BT_CONFIG_FLAGS, \ @@ -179,3 +192,4 @@ } #endif // SL_BLUETOOTH_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_bluetooth_connection_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_bluetooth_connection_config.h index 73a382509..08bc34759 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_bluetooth_connection_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_bluetooth_connection_config.h @@ -46,3 +46,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_bt_rtos_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_bt_rtos_config.h index b80c07967..fec091919 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_bt_rtos_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_bt_rtos_config.h @@ -42,3 +42,4 @@ #endif #endif // SL_BT_RTOS_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_bt_rtos_config_s2.h b/board-support/efr32/mgm24/BRD4318A/config/sl_bt_rtos_config_s2.h index eb4fe3ea2..bc4c37420 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_bt_rtos_config_s2.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_bt_rtos_config_s2.h @@ -82,3 +82,4 @@ // <<< end of configuration section >>> #endif // SL_BT_RTOS_CONFIG_S2_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_btctrl_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_btctrl_config.h index 403df1ffe..8dfdb6281 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_btctrl_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_btctrl_config.h @@ -7,7 +7,10 @@ // Bluetooth Controller Buffer Memory // Default: SL_BT_CONTROLLER_BUFFER_MEMORY -// Define the Amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// Define the amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// NOTE: SL_BT_CONTROLLER_BUFFER_MEMORY is deprecated in Simplicity SDK Suite v2026.6.0 and +// marked for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONTROLLER_BUFFER_MEMORY is +// replaced by SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #ifndef SL_BT_CONTROLLER_BUFFER_MEMORY #define SL_BT_CONTROLLER_BUFFER_MEMORY (8192) #endif @@ -64,7 +67,7 @@ #define SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE (0) #endif -// Minimum radiated TX power level in 0.1dBm unit +// Minimum radiated TX power level in 0.1dBm units // Default: 0 // Define the minimum radiated TX power level. // If the configured power level is lower than what the radio supports, the minimum supported level will be used. @@ -83,7 +86,7 @@ #define SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE (0) #endif -// Maximum radiated TX power level in 0.1dBm unit +// Maximum radiated TX power level in 0.1dBm units // Default: 0 // Define the maximum radiated TX power level. // If the configured power level is higher than what the radio supports, the maximum supported level will be used. @@ -97,6 +100,28 @@ // End TX Power Levels +// RF Path + +// TX RF path gain in 0.1dB units +// Default: 0 +// The Bluetooth controller takes TX RF path gain into account when adjusting transmitter +// output power. Power radiated from the antenna then matches the application request. +// A negative value indicates some power loss in the path. For example, +// with radiated TX power set to +10 dBm and this configuration to -10 +// (i.e., 1 dB loss), the transmitter output power will be set to +11 dBm. +#ifndef SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB (0) +#endif + +// RX RF path gain in 0.1dB units +// Default: 0 +// RX RF path gain is used to compensate the RSSI reports received by the Bluetooth controller. +#ifndef SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB (0) +#endif + +// End RF Path + // Bluetooth Controller Configuration for LE Connection // Total transmitted packets threshold for all connections to send the Number Of Completed Packets HCI event to the host <1-255> // Default: 4 @@ -136,16 +161,6 @@ #define SL_BT_CONTROLLER_USE_LEGACY_VENDOR_SPECIFIC_EVENT_CODE (0) #endif -// Adaptive Frequency Hopping operation mode -// Active AFH -// Passive AFH -// Choose between active AFH and passive AFH -// Default: Active AFH -// SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY -#ifndef SL_BT_CONTROLLER_ADAPTIVITY_MODE -#define SL_BT_CONTROLLER_ADAPTIVITY_MODE (SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY) -#endif - // Advertising Configuration // Include TX Power in the extended header of primary extended advertising packets // This is default setting to all advertising sets unless it is specifically overridden by VS_SiliconLabs_Set_Advertising_Config_Bits. @@ -172,3 +187,4 @@ // <<< end of configuration section >>> #endif // SL_BTCTRL_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_btctrl_scheduler_priority_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_btctrl_scheduler_priority_config.h index 0eec28095..fd0e66f83 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_btctrl_scheduler_priority_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_btctrl_scheduler_priority_config.h @@ -146,7 +146,7 @@ // Rail Mapping Window Min // <0-255:1> -// Default: 16 +// Default: 32 // Define the minimum value of RAIL mapping window. // This parameter specifies how task priorities are passed to radio // coexistence and multiprotocol schedulers. @@ -157,17 +157,17 @@ // If coexistence or multiprotocol configuration is not used, then these // parameters have no effect. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 16 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 32 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN // Rail Mapping Window Range // <0-255:1> -// Default: 32 +// Default: 16 // Define the maximum value of the RAIL mapping window. // See SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN for a description of // this parameter. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 32 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 16 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX // PAwR Tx - Min @@ -220,9 +220,9 @@ .conn_max = SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX, \ .init_min = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN, \ .init_max = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX, \ - .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN, \ - .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX \ - - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN), \ + .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX, \ + .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN \ + - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX), \ 0, \ .adv_step = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP, \ .scan_step = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP, \ @@ -233,3 +233,4 @@ } #endif // SL_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_clock_manager_oscillator_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_clock_manager_oscillator_config.h index a66815036..ca6a4ae07 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_clock_manager_oscillator_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_clock_manager_oscillator_config.h @@ -374,3 +374,4 @@ // <<< sl:end pin_tool >>> #endif /* SL_CLOCK_MANAGER_OSCILLATOR_CONFIG_H */ + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_clock_manager_tree_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_clock_manager_tree_config.h index 1f6f2a089..1a05181af 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_clock_manager_tree_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_clock_manager_tree_config.h @@ -307,3 +307,4 @@ #endif /* SL_CLOCK_MANAGER_TREE_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_core_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_core_config.h index 27b173d2e..16d372fcf 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_core_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_core_config.h @@ -42,3 +42,4 @@ // <<< end of configuration section >>> #endif // SL_CORE_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_device_init_dcdc_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_device_init_dcdc_config.h index 059d2d670..7401017f1 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_device_init_dcdc_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_device_init_dcdc_config.h @@ -56,3 +56,4 @@ // <<< end of configuration section >>> #endif // SL_DEVICE_INIT_DCDC_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_fem_util_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_fem_util_config.h index d1281886b..022ce36ad 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_fem_util_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_fem_util_config.h @@ -74,3 +74,4 @@ #define SL_FEM_UTIL_RUNTIME_PHY_SELECT 0 #endif // SL_FEM_UTIL_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_gp_interface_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_gp_interface_config.h index fd5aa20ea..0624696f3 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_gp_interface_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_gp_interface_config.h @@ -42,3 +42,4 @@ #define GP_TX_MAX_TIMEOUT_IN_MICRO_SECONDS 5000000 // // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_hfxo_manager_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_hfxo_manager_config.h index d9ccd3c70..87afc3778 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_hfxo_manager_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_hfxo_manager_config.h @@ -54,3 +54,4 @@ #endif /* SL_HFXO_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_main_start_task_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_main_start_task_config.h index 7752c098f..7cc81a4da 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_main_start_task_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_main_start_task_config.h @@ -103,3 +103,4 @@ #endif /* SL_MAIN_START_TASK_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_memory_manager_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_memory_manager_config.h index 4a16c29fe..02af7ec0c 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_memory_manager_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_memory_manager_config.h @@ -47,6 +47,12 @@ // Default: 1 #define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 +// Enables the double free protection for the pool. +// Setting this configuration to 0 will disable the double free protection for the memory pool. saving ~100 bytes of code. +// This setting has no effect on the memory pools power aware version. +// Default: 1 +#define SL_MEMORY_MANAGER_POOL_DOUBLE_FREE_PROTECTION_ENABLE 1 + // // <<< end of configuration section >>> @@ -58,4 +64,13 @@ // Default: 1 #define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 +// Enables retention statistics (retained size, retained high watermark, bank counts). +// Requires bank-retention hardware on the target; SL_CATALOG_BANK_RETENTION_CONTROL_* is defined only for devices that implement it (not every part or kit). +// Software configuration alone cannot add bank retention where the silicon has no such feature. +// Independent of heap statistics (SL_MEMORY_MANAGER_STATISTICS_API_ENABLE). +// When disabled, retention getters return (size_t)-1 or SL_STATUS_NOT_AVAILABLE. +// Default: 0. +#define SL_MEMORY_MANAGER_STATISTICS_RETENTION_ENABLE 0 + #endif /* SL_MEMORY_MANAGER_CONFIG_H */ + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_memory_manager_region_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_memory_manager_region_config.h index bd640b59b..a0a4007e7 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_memory_manager_region_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_memory_manager_region_config.h @@ -49,3 +49,4 @@ // <<< end of configuration section >>> #endif /* SL_MEMORY_MANAGER_REGION_CONFIG_H */ + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_openthread_features_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_openthread_features_config.h index a3697f8af..054fb51b4 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_openthread_features_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_openthread_features_config.h @@ -200,24 +200,31 @@ #endif // // IPv6 Limits -// Maximum IPv6 external unicast addresses +// Runtime IPv6 external address pools +// Enable runtime configuration of external unicast and multicast address pools via otIp6Init(). +#ifndef OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +#define OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE 0 +#endif +#if OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +// CLI support for runtime IPv6 external address pools +// Enable `ifconfig init` CLI command for testing otIp6Init() pool configuration. +#ifndef OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE +#define OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE 1 +#endif +// +#else +// Maximum IPv6 external unicast addresses (ignored in runtime mode) // Maximum number of IPv6 unicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS 4 #endif -// Maximum IPv6 external multicast addresses +// Maximum IPv6 external multicast addresses (ignored in runtime mode) // Maximum number of IPv6 multicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS 4 #endif -// Maximum IPv6 address registrations for MTD -// The maximum number of IPv6 address registrations for MTD. -// If left unchanged will default to the value of OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD -// 4 -#ifndef OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER -#define OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER (OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD) #endif // // Jam Detection @@ -286,37 +293,13 @@ #ifndef OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM #define OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM 2 #endif +// Instance-aware platform logging API +#ifndef OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE +#define OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE 0 +#endif +// // // -// Define maximum total source match table entries for both OT and Zigbee. -// In multi-instance builds (SoC or RCP/host), table must support all OT instances + Zigbee. -// For single instance (default), table sized to just OT children. -// This value is used to size all source match tables in both OT and Zigbee code. -// Note: this is purposedly not being setup with CMSIS annotations. -#ifndef RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE -#if SL_ZIGBEE_MAX_END_DEVICE_CHILDREN -// Multipan / DMP case: OT + Zigbee -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - ((OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * (OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM - 1)) \ - + SL_ZIGBEE_MAX_END_DEVICE_CHILDREN) -#else -// Multi-instance OT-only case -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - (OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM) -#endif -#else -// Single-instance OT (SoC / NCP / non-multipan RCP) -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES OPENTHREAD_CONFIG_MLE_MAX_CHILDREN -#endif -#endif -// Spinel Match Table -// Maximum number of spinel source match table entries -// Ensure that this value is the total of the number of openthread children times the number of openthread instances plus the number of Zigbee children. -#ifndef OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES -#define OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#endif -// // OTNS (OpenThread Network Simulator) #ifndef OPENTHREAD_CONFIG_OTNS_ENABLE #define OPENTHREAD_CONFIG_OTNS_ENABLE 0 @@ -379,6 +362,40 @@ #define OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE 1 #endif // +// Vendor Name string +// Vendor Name string +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +#if OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE +// Default: "RD:Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "RD:Silicon Labs" +#else +// Default: "Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "Silicon Labs" +#endif +#endif // OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +// Vendor Model string +// Vendor Model string +// Default: "OpenThread" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL "OpenThread" +#endif +// Vendor SW Version string +// Vendor SW Version string +// Default: "3.1.0.0" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION "3.1.0.0" +#endif +// Vendor App URL string +// Vendor App URL string +// Default: "www.silabs.com" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL "www.silabs.com" +#endif +// Run-time configuration of Vendor Info +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE 1 +#endif +// // Time Synchronization Service #ifndef OPENTHREAD_CONFIG_TIME_SYNC_ENABLE #define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 0 @@ -399,6 +416,11 @@ #define OPENTHREAD_CONFIG_MAC_BEACON_PAYLOAD_PARSING_ENABLE 1 #endif // +// Log crash dump after initialization +#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE +#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 +#endif +// // Radio Driver RX buffers // Maximum number of RX buffers // The maximum number of RX buffers to use in the radio driver. @@ -408,66 +430,7 @@ #endif // // -// Logging -// LOG_OUTPUT -// NONE -// APP -// PLATFORM_DEFINED -// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP -// OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT -#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#endif - -// DYNAMIC_LOG_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE -#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 -#endif - -// Enable Logging -#define OPENTHREAD_FULL_LOGS_ENABLE 0 -#if OPENTHREAD_FULL_LOGS_ENABLE - -// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. -// LOG_LEVEL -// NONE -// CRIT -// WARN -// NOTE -// INFO -// DEBG -// Default: OT_LOG_LEVEL_DEBG -// OT_LOG_LEVEL_DEBG -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL -#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG -#endif -// CLI -#ifndef OPENTHREAD_CONFIG_LOG_CLI -#define OPENTHREAD_CONFIG_LOG_CLI 1 -#endif -// PKT_DUMP -#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP -#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 -#endif -// PLATFORM -#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM -#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 -#endif -// PREPEND_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL -#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 -#endif - -#endif // OPENTHREAD_FULL_LOGS_ENABLE - -// Log crash dump after initialization -#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE -#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 -#endif - -// -// -// // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_FEATURES_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_openthread_log_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_openthread_log_config.h new file mode 100644 index 000000000..420892125 --- /dev/null +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_openthread_log_config.h @@ -0,0 +1,89 @@ +/******************************************************************************* + * @file + * @brief OpenThread log configuration file. + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_OPENTHREAD_LOG_CONFIG_H +#define _SL_OPENTHREAD_LOG_CONFIG_H + +//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- +// Logging +// LOG_OUTPUT +// NONE +// APP +// PLATFORM_DEFINED +// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP +// OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT +#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#endif + +// DYNAMIC_LOG_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE +#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 +#endif + +// Enable Logging +#define OPENTHREAD_FULL_LOGS_ENABLE 0 +#if OPENTHREAD_FULL_LOGS_ENABLE +// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. +// LOG_LEVEL +// NONE +// CRIT +// WARN +// NOTE +// INFO +// DEBG +// Default: OT_LOG_LEVEL_DEBG +// OT_LOG_LEVEL_DEBG +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL +#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG +#endif +// CLI +#ifndef OPENTHREAD_CONFIG_LOG_CLI +#define OPENTHREAD_CONFIG_LOG_CLI 1 +#endif +// PKT_DUMP +#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP +#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 +#endif +// PLATFORM +#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM +#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 +#endif +// PREPEND_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL +#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 +#endif +// +#endif // OPENTHREAD_FULL_LOGS_ENABLE +// +// +// <<< end of configuration section >>> +#endif // _SL_OPENTHREAD_LOG_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_openthread_radio_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_openthread_radio_config.h index 478a72430..1735c91c6 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_openthread_radio_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_openthread_radio_config.h @@ -40,6 +40,11 @@ #define SL_OPENTHREAD_RSSI_AVERAGING_TIME 16 // us // RSSI Average Timeout [us] #define SL_OPENTHREAD_RSSI_AVERAGING_TIMEOUT 300 // us +// Debug Counters Support +#ifndef RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT +#define RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT 0 // Set to 1 to enable debug counters in radio.c +#endif // // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_RADIO_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_openthread_rtos_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_openthread_rtos_config.h index 6dc710fcc..16a2b1709 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_openthread_rtos_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_openthread_rtos_config.h @@ -72,18 +72,10 @@ #define SL_OPENTHREAD_APP_TASK_MEM_SIZE (4608) // OpenThread serial task stack size in bytes <1000-20000> -// Default: 3072 +// Default: 3840 // Defines the stack size of the OpenThread RTOS serial task. The value is in bytes and // and will be word aligned when it is applied at the task creation. -#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3072) - -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread serial task prority -// Default: 16 (CMSIS-RTOS2 osPriorityBelowNormal) -// Defines OpenThread serial task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_SERIAL_TASK_PRIORITY (16) +#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3840) // // App Task @@ -107,3 +99,4 @@ // // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_power_manager_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_power_manager_config.h index 86b9fef27..1c71950d9 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_power_manager_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_power_manager_config.h @@ -98,3 +98,4 @@ #endif /* SL_POWER_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_rail_util_pa_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_rail_util_pa_config.h index 787ac39a1..dfff36086 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_rail_util_pa_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_rail_util_pa_config.h @@ -81,3 +81,4 @@ // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_PA_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_rail_util_power_manager_init_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_rail_util_power_manager_init_config.h index cbc69f24d..bcc7596c5 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_rail_util_power_manager_init_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_rail_util_power_manager_init_config.h @@ -42,3 +42,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_rail_util_rssi_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_rail_util_rssi_config.h index 128d705f5..d706e8785 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_rail_util_rssi_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_rail_util_rssi_config.h @@ -46,3 +46,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_RSSI_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_rail_util_sequencer_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_rail_util_sequencer_config.h index 640ef0c0d..02977b219 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_rail_util_sequencer_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_rail_util_sequencer_config.h @@ -44,3 +44,4 @@ extern "C" { #endif #endif // SL_RAIL_UTIL_SEQUENCER_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_simple_button_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_simple_button_config.h index 531f4f208..4cd53a96b 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_simple_button_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_simple_button_config.h @@ -70,3 +70,4 @@ // <<< end of configuration section >>> #endif // SL_SIMPLE_BUTTON_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4318A/config/sl_sleeptimer_config.h b/board-support/efr32/mgm24/BRD4318A/config/sl_sleeptimer_config.h index 8344ef5f1..c638bfeed 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/sl_sleeptimer_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/sl_sleeptimer_config.h @@ -52,6 +52,7 @@ // WTIMER // TIMER // Selection of the Timer Peripheral Used by the Sleeptimer +// If BURTC is needed as an EM4 wake-up source, it must not be used by Sleeptimer. #define SL_SLEEPTIMER_PERIPHERAL SL_SLEEPTIMER_PERIPHERAL_DEFAULT // TIMER/WTIMER Instance Used by Sleeptimer (not applicable for other peripherals) @@ -80,3 +81,4 @@ #endif /* SLEEPTIMER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4318A/config/uartdrv_config.h b/board-support/efr32/mgm24/BRD4318A/config/uartdrv_config.h index f41b347e1..b0fc7f703 100644 --- a/board-support/efr32/mgm24/BRD4318A/config/uartdrv_config.h +++ b/board-support/efr32/mgm24/BRD4318A/config/uartdrv_config.h @@ -121,3 +121,4 @@ /** @} (end addtogroup uartdrv) */ #endif /* __SILICON_LABS_UARTDRV_CONFIG_H__ */ + diff --git a/board-support/efr32/mgm24/BRD4319A/autogen/gatt_db.h b/board-support/efr32/mgm24/BRD4319A/autogen/gatt_db.h index c179e6b28..b3a2e67f9 100644 --- a/board-support/efr32/mgm24/BRD4319A/autogen/gatt_db.h +++ b/board-support/efr32/mgm24/BRD4319A/autogen/gatt_db.h @@ -5,10 +5,6 @@ #ifndef __GATT_DB_H #define __GATT_DB_H -#if __cplusplus -extern "C" { -#endif - #include "sli_bt_gattdb_def.h" extern const sli_bt_gattdb_t gattdb; @@ -31,8 +27,5 @@ extern const sli_bt_gattdb_t gattdb; #define gattdb_CHIPoBLEChar_Tx_len 247 #define gattdb_CHIPoBLEChar_C3_len 512 -#if __cplusplus -} -#endif #endif // __GATT_DB_H diff --git a/board-support/efr32/mgm24/BRD4319A/autogen/sl_bluetooth.c b/board-support/efr32/mgm24/BRD4319A/autogen/sl_bluetooth.c index 0a5f1a969..0cf47b680 100644 --- a/board-support/efr32/mgm24/BRD4319A/autogen/sl_bluetooth.c +++ b/board-support/efr32/mgm24/BRD4319A/autogen/sl_bluetooth.c @@ -76,13 +76,13 @@ void sl_bt_step(void) // Check the length of the next event, if any, and verify that the application // can process it. To prevent data loss, the event will be kept in the stack's // queue if the application cannot process it at the moment. - size_t event_len = sli_bgapi_device_peek_event_len(&sli_bt_bgapi_device); + size_t event_len = sli_bgapi_device_peek_event_len(sli_bt_bgapi_device); if ((event_len == 0) || (!sl_bt_can_process_event(event_len))) { return; } // Pop the event and process it if successful - sl_status_t status = sli_bgapi_device_pop_event(&sli_bt_bgapi_device, + sl_status_t status = sli_bgapi_device_pop_event(sli_bt_bgapi_device, sizeof(evt), &evt); diff --git a/board-support/efr32/mgm24/BRD4319A/autogen/sl_component_catalog.h b/board-support/efr32/mgm24/BRD4319A/autogen/sl_component_catalog.h index a1f3f4bab..c10905ebd 100644 --- a/board-support/efr32/mgm24/BRD4319A/autogen/sl_component_catalog.h +++ b/board-support/efr32/mgm24/BRD4319A/autogen/sl_component_catalog.h @@ -4,7 +4,9 @@ // APIs present in project #define SL_CATALOG_BGAPI_PROTOCOL_PRESENT #define SL_CATALOG_BGAPI_PROTOCOL_RTOS_ADAPTATION_PRESENT +#define SL_CATALOG_BLUETOOTH_COMMON_PRESENT #define SL_CATALOG_BLUETOOTH_CONFIGURATION_PRESENT +#define SL_CATALOG_BLUETOOTH_CRYPTO_LIB_PSA_PRESENT #define SL_CATALOG_BLUETOOTH_CTE_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_CS_SUPPORT_PRESENT #define SL_CATALOG_BLUETOOTH_FEATURE_ADVERTISER_PRESENT @@ -26,7 +28,9 @@ #define SL_CATALOG_CPP_SUPPORT_PRESENT #define SL_CATALOG_DEVICE_INIT_PRESENT #define SL_CATALOG_DEVICE_INIT_DCDC_PRESENT +#define SL_CATALOG_DMA_MANAGER_PRESENT #define SL_CATALOG_EMLIB_CORE_PRESENT +#define SL_CATALOG_EMLIB_GPIO_PRESENT #define SL_CATALOG_EMLIB_RMU_PRESENT #define SL_CATALOG_FREERTOS_KERNEL_PRESENT #define SL_CATALOG_KERNEL_PRESENT @@ -50,7 +54,7 @@ #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_SEGGER_RTT_PRESENT #define SL_CATALOG_BTN0_PRESENT @@ -60,10 +64,22 @@ #define SL_CATALOG_SIMPLE_BUTTON_BTN1_PRESENT #define SL_CATALOG_SL_CORE_PRESENT #define SL_CATALOG_SL_MAIN_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_RAIL_UTIL_BUILT_IN_PHYS_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_COMPATIBLE_PA_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_RAIL_UTIL_POWER_MANAGER_INIT_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_RAIL_UTIL_PTI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_RAIL_UTIL_RSSI_PRESENT +#define SL_CATALOG_SL_RAIL_UTIL_SEQUENCER_PRESENT +#define SL_CATALOG_RAIL_UTIL_SEQUENCER_PRESENT #define SL_CATALOG_SLEEPTIMER_PRESENT #define SL_CATALOG_SLI_PROTOCOL_CRYPTO_PRESENT #if defined(CONFIG_ENABLE_UART) #define SL_CATALOG_UARTDRV_EUSART_PRESENT -#endif +#define SL_CATALOG_OPENTHREAD_UART_PRESENT +#endif // CONFIG_ENABLE_UART #endif // SL_COMPONENT_CATALOG_H diff --git a/board-support/efr32/mgm24/BRD4319A/autogen/sl_dma_manager_instances.c b/board-support/efr32/mgm24/BRD4319A/autogen/sl_dma_manager_instances.c new file mode 100644 index 000000000..f4339b2ed --- /dev/null +++ b/board-support/efr32/mgm24/BRD4319A/autogen/sl_dma_manager_instances.c @@ -0,0 +1,51 @@ +/***************************************************************************//** + * @file + * @brief DMA Manager Instances Initialization. + ******************************************************************************* + * # License + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_dma_manager_instances.h" +#include "sl_dma_manager.h" +#include "sl_device_peripheral.h" + + + +sl_dma_handle_t sl_dma_handle_ldma0; + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + ******************************************************************************/ +void sl_dma_manager_instances_init(void) +{ + + // Initialize DMA Manager instance: LDMA0 + sl_dma_manager_init(&sl_dma_handle_ldma0, SL_PERIPHERAL_DMA_LDMA0); + +} + + diff --git a/board-support/efr32/mgm24/BRD4319A/autogen/sl_dma_manager_instances.h b/board-support/efr32/mgm24/BRD4319A/autogen/sl_dma_manager_instances.h new file mode 100644 index 000000000..1580ad2b2 --- /dev/null +++ b/board-support/efr32/mgm24/BRD4319A/autogen/sl_dma_manager_instances.h @@ -0,0 +1,71 @@ +/***************************************************************************//** + * @file + * @brief DMA Manager Instances API. + ******************************************************************************* + * # License + * Copyright 2025 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_DMA_MANAGER_INSTANCES_H +#define SL_DMA_MANAGER_INSTANCES_H + +#include "sl_dma_manager.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/***************************************************************************//** + * @addtogroup dma_manager DMA Manager + * @{ + ******************************************************************************/ + + + +extern sl_dma_handle_t sl_dma_handle_ldma0; + + + +/***************************************************************************//** + * Initialize all configured DMA Manager instances. + * + * @details This function initializes all DMA Manager instances that have been + * configured through the component system. Each instance corresponds + * to a DMA peripheral (e.g., LDMA0, LDMA1). + * + * @note This function is typically called automatically during system + * initialization when the dma_manager_init component is included + * in the project. + ******************************************************************************/ +void sl_dma_manager_instances_init(void); + +/** @} (end addtogroup dma_manager) */ + +#ifdef __cplusplus +} +#endif + +#endif // SL_DMA_MANAGER_INSTANCES_H + diff --git a/board-support/efr32/mgm24/BRD4319A/autogen/sl_event_handler.c b/board-support/efr32/mgm24/BRD4319A/autogen/sl_event_handler.c index bdee20615..a4a30bec9 100644 --- a/board-support/efr32/mgm24/BRD4319A/autogen/sl_event_handler.c +++ b/board-support/efr32/mgm24/BRD4319A/autogen/sl_event_handler.c @@ -5,7 +5,6 @@ #include "sl_hfxo_manager.h" #include "sl_rail_util_compatible_pa.h" #if !(defined(SLI_SI91X_ENABLE_BLE) && SLI_SI91X_ENABLE_BLE) -#include "sl_bluetooth.h" #include "sl_rail_util_power_manager_init.h" #endif // !SLI_SI91X_ENABLE_BLE #include "sl_rail_util_power_manager_init.h" @@ -15,6 +14,7 @@ #include "sl_fem_util.h" #include "sl_board_control.h" #include "platform-efr32.h" +#include "sl_dma_manager_instances.h" #include "sl_bt_rtos_adaptation.h" #include "sl_bluetooth.h" #include "sl_debug_swo.h" @@ -62,6 +62,7 @@ void sl_platform_init(void) sl_hfxo_manager_init_hardware(); sl_board_init(); bootloader_init(); + sl_dma_manager_instances_init(); nvm3_initDefault(); } diff --git a/board-support/efr32/mgm24/BRD4319A/config/app_properties_config.h b/board-support/efr32/mgm24/BRD4319A/config/app_properties_config.h index 6a6b97666..34418403f 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/app_properties_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/app_properties_config.h @@ -63,3 +63,4 @@ // #endif // APP_PROPERTIES_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/btconf/gatt_configuration.btconf b/board-support/efr32/mgm24/BRD4319A/config/btconf/gatt_configuration.btconf deleted file mode 100644 index 4d1efd972..000000000 --- a/board-support/efr32/mgm24/BRD4319A/config/btconf/gatt_configuration.btconf +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - Abstract: The generic_access service contains generic information about the device. All available Characteristics are readonly. - - - - - Empty Example - - - - - - - - - Abstract: The external appearance of this device. The values are composed of a category (10-bits) and sub-categories (6-bits). - 0000 - - - - - - - - - Abstract: The Device Information Service exposes manufacturer and/or vendor information about a device. Summary: This service exposes manufacturer information about a device. The Device Information Service is instantiated as a Primary Service. Only one instance of the Device Information Service is exposed on a device. - - - - Abstract: The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device. - Silicon Labs - - - - - - - - Abstract: The value of this characteristic is a UTF-8 string representing the model number assigned by the device vendor. - Blue Gecko - - - - - - - - Abstract: The SYSTEM ID characteristic consists of a structure with two fields. The first field are the LSOs and the second field contains the MSOs. This is a 64-bit structure which consists of a 40-bit manufacturer-defined identifier concatenated with a 24 bit unique Organizationally Unique Identifier (OUI). The OUI is issued by the IEEE Registration Authority (http://standards.ieee.org/regauth/index.html) and is required to be used in accordance with IEEE Standard 802-2001.6 while the least significant 40 bits are manufacturer defined. If System ID generated based on a Bluetooth Device Address, it is required to be done as follows. System ID and the Bluetooth Device Address have a very similar structure: a Bluetooth Device Address is 48 bits in length and consists of a 24 bit Company Assigned Identifier (manufacturer defined identifier) concatenated with a 24 bit Company Identifier (OUI). In order to encapsulate a Bluetooth Device Address as System ID, the Company Identifier is concatenated with 0xFFFE followed by the Company Assigned Identifier of the Bluetooth Address. For more guidelines related to EUI-64, refer to http://standards.ieee.org/develop/regauth/tut/eui64.pdf. Examples: If the system ID is based of a Bluetooth Device Address with a Company Identifier (OUI) is 0x123456 and the Company Assigned Identifier is 0x9ABCDE, then the System Identifier is required to be 0x123456FFFE9ABCDE. - 000102030405 - - - - - - - - - Custom service - - - - Custom characteristic - 00 - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - Custom characteristic - 00 - - - - - - - - - - diff --git a/board-support/efr32/mgm24/BRD4319A/config/btl_interface_cfg.h b/board-support/efr32/mgm24/BRD4319A/config/btl_interface_cfg.h new file mode 100644 index 000000000..fc17ccfff --- /dev/null +++ b/board-support/efr32/mgm24/BRD4319A/config/btl_interface_cfg.h @@ -0,0 +1,64 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_H +#define BTL_INTERFACE_CFG_H + +#if !defined(BOOTLOADER_APPLOADER) + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_1) +#include "btl_interface_cfg_s2c1.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_2) +#include "btl_interface_cfg_s2c2.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_3) +#include "btl_interface_cfg_s2c3.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_4) +#include "btl_interface_cfg_s2c4.h" +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_5) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_6) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_8) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_9) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_13) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif + +#if defined(_SILICON_LABS_32B_SERIES_2_CONFIG_11) +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 1 +#endif +#endif// !BOOTLOADER_APPLOADER + +#endif // BTL_INTERFACE_CFG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/btl_interface_cfg_s2c4.h b/board-support/efr32/mgm24/BRD4319A/config/btl_interface_cfg_s2c4.h new file mode 100644 index 000000000..a93bdec95 --- /dev/null +++ b/board-support/efr32/mgm24/BRD4319A/config/btl_interface_cfg_s2c4.h @@ -0,0 +1,322 @@ +/***************************************************************************//** + * @file + * @brief Configuration header of Bootloader Interface + ******************************************************************************* + * # License + * Copyright 2021 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * The licensor of this software is Silicon Laboratories Inc. Your use of this + * software is governed by the terms of Silicon Labs Master Software License + * Agreement (MSLA) available at + * www.silabs.com/about-us/legal/master-software-license-agreement. This + * software is distributed to you in Source Code format and is governed by the + * sections of the MSLA applicable to Source Code. + * + ******************************************************************************/ +#ifndef BTL_INTERFACE_CFG_S2C4_H +#define BTL_INTERFACE_CFG_S2C4_H + +// <<< Use Configuration Wizard in Context Menu >>> +// Bootloader Interface Trust Zone Security State Configuration + +// Disable multi tiered fallback logic +// The fault handling logic as well as the USART auto-detection logic will be disabled. +// The re-configuration of SMU will be handled by querying the running bootloader +// for the peripheral list. Querying the peripheral list is supported from the bootloader +// version 2.0.0. Check for the BOOTLOADER_CAPABILITY_PERIPHERAL_LIST capability to +// see if the running bootloader supports querying the peripheral list. +#define BOOTLOADER_DISABLE_OLD_BOOTLOADER_MITIGATION 0 + +// Disable peripheral access fault handling +// The fault handling triggered by an erroneous access of peripherals will be disabled. +// +// This should be disabled iff all the peripherals that are in use by the bootloader +// have been properly configured by the "Manually override security state of peripherals" option. +#define BOOTLOADER_DISABLE_NVM3_FAULT_HANDLING 0 + +// Manually override the security state of peripherals in use by the bootloader +// Default: 0. +// Manually override the security state of peripherals. Choose the peripherals touched +// by the customized code to have a valid secure access state before interacting with the bootloader +// In practice, this means that the chosen peripherals will be available at the secure address, +// which is accessible by the bootloader. Once the application is entered back the secure access state +// is changed back to the original state. +// +// The USART auto-detection logic that detects which, if any, USART is in use by the bootloader +// will be disabled. Make sure to choose the correct USART used by the bootloader. +#define BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE 0 +// EMU +// Update secure access state of EMU before calling into bootloader +#define BOOTLOADER_PPUSATD0_EMU 0 + +// CMU +// Update secure access state of CMU before calling into bootloader +#define BOOTLOADER_PPUSATD0_CMU 0 + +// HFRCO0 +// Update secure access state of HFRCO0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_HFRCO0 0 + +// FSRCO +// Update secure access state of FSRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_FSRCO 0 + +// DPLL0 +// Update secure access state of DPLL0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_DPLL0 0 + +// LFXO +// Update secure access state of LFXO before calling into bootloader +#define BOOTLOADER_PPUSATD0_LFXO 0 + +// LFRCO +// Update secure access state of LFRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_LFRCO 0 + +// ULFRCO +// Update secure access state of ULFRCO before calling into bootloader +#define BOOTLOADER_PPUSATD0_ULFRCO 0 + +// MSC +// Update secure access state of MSC before calling into bootloader +#define BOOTLOADER_PPUSATD0_MSC 0 + +// ICACHE0 +// Update secure access state of ICACHE0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_ICACHE0 0 + +// PRS +// Update secure access state of PRS before calling into bootloader +#define BOOTLOADER_PPUSATD0_PRS 0 + +// GPIO +// Update secure access state of GPIO before calling into bootloader +#define BOOTLOADER_PPUSATD0_GPIO 0 + +// LDMA +// Update secure access state of LDMA before calling into bootloader +#define BOOTLOADER_PPUSATD0_LDMA 0 + +// LDMAXBAR +// Update secure access state of LDMAXBAR before calling into bootloader +#define BOOTLOADER_PPUSATD0_LDMAXBAR 0 + +// TIMER0 +// Update secure access state of TIMER0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER0 0 + +// TIMER1 +// Update secure access state of TIMER1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER1 0 + +// TIMER2 +// Update secure access state of TIMER2 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER2 0 + +// TIMER3 +// Update secure access state of TIMER3 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER3 0 + +// TIMER4 +// Update secure access state of TIMER4 before calling into bootloader +#define BOOTLOADER_PPUSATD0_TIMER4 0 + +// USART0 +// Update secure access state of USART0 before calling into bootloader +#define BOOTLOADER_PPUSATD0_USART0 0 + +// BURTC +// Update secure access state of BURTC before calling into bootloader +#define BOOTLOADER_PPUSATD0_BURTC 0 + +// I2C1 +// Update secure access state of I2C1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_I2C1 0 + +// CHIPTESTCTRL +// Update secure access state of CHIPTESTCTRL before calling into bootloader +#define BOOTLOADER_PPUSATD0_CHIPTESTCTRL 0 + +// SYSCFGCFGNS +// Update secure access state of SYSCFGCFGNS before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSCFGCFGNS 0 + +// SYSCFG +// Update secure access state of SYSCFG before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSCFG 0 + +// BURAM +// Update secure access state of BURAM before calling into bootloader +#define BOOTLOADER_PPUSATD0_BURAM 0 + +// GPCRC +// Update secure access state of GPCRC before calling into bootloader +#define BOOTLOADER_PPUSATD0_GPCRC 0 + +// DCDC +// Update secure access state of DCDC before calling into bootloader +#define BOOTLOADER_PPUSATD0_DCDC 0 + +// HOSTMAILBOX +// Update secure access state of HOSTMAILBOX before calling into bootloader +#define BOOTLOADER_PPUSATD0_HOSTMAILBOX 0 + +// EUSART1 +// Update secure access state of EUSART1 before calling into bootloader +#define BOOTLOADER_PPUSATD0_EUSART1 0 + +// SYSRTC +// Update secure access state of SYSRTC before calling into bootloader +#define BOOTLOADER_PPUSATD0_SYSRTC 0 + +// KEYSCAN +// Update secure access state of KEYSCAN before calling into bootloader +#define BOOTLOADER_PPUSATD1_KEYSCAN 0 + +// DMEM +// Update secure access state of DMEM before calling into bootloader +#define BOOTLOADER_PPUSATD1_DMEM 0 + +// RADIOAES +// Update secure access state of RADIOAES before calling into bootloader +#define BOOTLOADER_PPUSATD1_RADIOAES 0 + +// SMU +// Update secure access state of SMU before calling into bootloader +#define BOOTLOADER_PPUSATD1_SMU 0 + +// SMUCFGNS +// Update secure access state of SMUCFGNS before calling into bootloader +#define BOOTLOADER_PPUSATD1_SMUCFGNS 0 + +// LETIMER0 +// Update secure access state of LETIMER0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_LETIMER0 0 + +// IADC0 +// Update secure access state of IADC0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_IADC0 0 + +// ACMP0 +// Update secure access state of ACMP0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_ACMP0 0 + +// ACMP1 +// Update secure access state of ACMP1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_ACMP1 0 + +// AMUXCP0 +// Update secure access state of AMUXCP0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_AMUXCP0 0 + +// VDAC0 +// Update secure access state of VDAC0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_VDAC0 0 + +// VDAC1 +// Update secure access state of VDAC1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_VDAC1 0 + +// PCNT +// Update secure access state of PCNT before calling into bootloader +#define BOOTLOADER_PPUSATD1_PCNT 0 + +// HFRCO1 +// Update secure access state of HFRCO1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_HFRCO1 0 + +// HFXO0 +// Update secure access state of HFXO0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_HFXO0 0 + +// I2C0 +// Update secure access state of I2C0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_I2C0 0 + +// WDOG0 +// Update secure access state of WDOG0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_WDOG0 0 + +// WDOG1 +// Update secure access state of WDOG1 before calling into bootloader +#define BOOTLOADER_PPUSATD1_WDOG1 0 + +// EUSART0 +// Update secure access state of EUSART0 before calling into bootloader +#define BOOTLOADER_PPUSATD1_EUSART0 0 + +// SEMAILBOX +// Update secure access state of SEMAILBOX before calling into bootloader +#define BOOTLOADER_PPUSATD1_SEMAILBOX 0 + +// MVP +// Update secure access state of MVP before calling into bootloader +#define BOOTLOADER_PPUSATD1_MVP 0 + +// AHBRADIO +// Update secure access state of AHBRADIO before calling into bootloader +#define BOOTLOADER_PPUSATD1_AHBRADIO 0 +// + +// +// <<< end of configuration section >>> + +#if BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE == 1 +#define BOOTLOADER_PPUSATD0_MASK ((BOOTLOADER_PPUSATD0_EMU << _SMU_PPUSATD0_EMU_SHIFT) \ + | (BOOTLOADER_PPUSATD0_CMU << _SMU_PPUSATD0_CMU_SHIFT) \ + | (BOOTLOADER_PPUSATD0_HFRCO0 << _SMU_PPUSATD0_HFRCO0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_FSRCO << _SMU_PPUSATD0_FSRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_DPLL0 << _SMU_PPUSATD0_DPLL0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LFXO << _SMU_PPUSATD0_LFXO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LFRCO << _SMU_PPUSATD0_LFRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_ULFRCO << _SMU_PPUSATD0_ULFRCO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_MSC << _SMU_PPUSATD0_MSC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_ICACHE0 << _SMU_PPUSATD0_ICACHE0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_PRS << _SMU_PPUSATD0_PRS_SHIFT) \ + | (BOOTLOADER_PPUSATD0_GPIO << _SMU_PPUSATD0_GPIO_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LDMA << _SMU_PPUSATD0_LDMA_SHIFT) \ + | (BOOTLOADER_PPUSATD0_LDMAXBAR << _SMU_PPUSATD0_LDMAXBAR_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER0 << _SMU_PPUSATD0_TIMER0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER1 << _SMU_PPUSATD0_TIMER1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER2 << _SMU_PPUSATD0_TIMER2_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER3 << _SMU_PPUSATD0_TIMER3_SHIFT) \ + | (BOOTLOADER_PPUSATD0_TIMER4 << _SMU_PPUSATD0_TIMER4_SHIFT) \ + | (BOOTLOADER_PPUSATD0_USART0 << _SMU_PPUSATD0_USART0_SHIFT) \ + | (BOOTLOADER_PPUSATD0_BURTC << _SMU_PPUSATD0_BURTC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_I2C1 << _SMU_PPUSATD0_I2C1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_CHIPTESTCTRL << _SMU_PPUSATD0_CHIPTESTCTRL_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSCFGCFGNS << _SMU_PPUSATD0_SYSCFGCFGNS_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSCFG << _SMU_PPUSATD0_SYSCFG_SHIFT) \ + | (BOOTLOADER_PPUSATD0_BURAM << _SMU_PPUSATD0_BURAM_SHIFT) \ + | (BOOTLOADER_PPUSATD0_GPCRC << _SMU_PPUSATD0_GPCRC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_DCDC << _SMU_PPUSATD0_DCDC_SHIFT) \ + | (BOOTLOADER_PPUSATD0_HOSTMAILBOX << _SMU_PPUSATD0_HOSTMAILBOX_SHIFT) \ + | (BOOTLOADER_PPUSATD0_EUSART1 << _SMU_PPUSATD0_EUSART1_SHIFT) \ + | (BOOTLOADER_PPUSATD0_SYSRTC << _SMU_PPUSATD0_SYSRTC_SHIFT)) +#define BOOTLOADER_PPUSATD1_MASK ((BOOTLOADER_PPUSATD1_KEYSCAN << _SMU_PPUSATD1_KEYSCAN_SHIFT) \ + | (BOOTLOADER_PPUSATD1_DMEM << _SMU_PPUSATD1_DMEM_SHIFT) \ + | (BOOTLOADER_PPUSATD1_RADIOAES << _SMU_PPUSATD1_RADIOAES_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SMU << _SMU_PPUSATD1_SMU_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SMUCFGNS << _SMU_PPUSATD1_SMUCFGNS_SHIFT) \ + | (BOOTLOADER_PPUSATD1_LETIMER0 << _SMU_PPUSATD1_LETIMER0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_IADC0 << _SMU_PPUSATD1_IADC0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_ACMP0 << _SMU_PPUSATD1_ACMP0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_ACMP1 << _SMU_PPUSATD1_ACMP1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_AMUXCP0 << _SMU_PPUSATD1_AMUXCP0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_VDAC0 << _SMU_PPUSATD1_VDAC0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_VDAC1 << _SMU_PPUSATD1_VDAC1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_PCNT << _SMU_PPUSATD1_PCNT_SHIFT) \ + | (BOOTLOADER_PPUSATD1_HFRCO1 << _SMU_PPUSATD1_HFRCO1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_HFXO0 << _SMU_PPUSATD1_HFXO0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_I2C0 << _SMU_PPUSATD1_I2C0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_WDOG0 << _SMU_PPUSATD1_WDOG0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_WDOG1 << _SMU_PPUSATD1_WDOG1_SHIFT) \ + | (BOOTLOADER_PPUSATD1_EUSART0 << _SMU_PPUSATD1_EUSART0_SHIFT) \ + | (BOOTLOADER_PPUSATD1_SEMAILBOX << _SMU_PPUSATD1_SEMAILBOX_SHIFT) \ + | (BOOTLOADER_PPUSATD1_MVP << _SMU_PPUSATD1_MVP_SHIFT) \ + | (BOOTLOADER_PPUSATD1_AHBRADIO << _SMU_PPUSATD1_AHBRADIO_SHIFT)) +#endif // BOOTLOADER_MANUAL_OVERRIDE_SECURITY_STATE + +#endif // BTL_INTERFACE_CFG_S2C4_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/buffer_pool_allocator_config.h b/board-support/efr32/mgm24/BRD4319A/config/buffer_pool_allocator_config.h index 2c3fd2e67..9a96fedf3 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/buffer_pool_allocator_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/buffer_pool_allocator_config.h @@ -27,3 +27,4 @@ // <<< end of configuration section >>> #endif // __BUFFER_POOL_ALLOCATOR_CONFIG_H__ + diff --git a/board-support/efr32/mgm24/BRD4319A/config/circular_queue_config.h b/board-support/efr32/mgm24/BRD4319A/config/circular_queue_config.h index 81a7173d6..fe1ba75d3 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/circular_queue_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/circular_queue_config.h @@ -21,3 +21,4 @@ // <<< end of configuration section >>> #endif // __CIRCULAR_QUEUE_CONFIG_H__ + diff --git a/board-support/efr32/mgm24/BRD4319A/config/dmadrv_config.h b/board-support/efr32/mgm24/BRD4319A/config/dmadrv_config.h index ed105e4f3..dd58324d7 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/dmadrv_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/dmadrv_config.h @@ -24,3 +24,4 @@ // <<< end of configuration section >>> #endif // DMADRV_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/nvm3_default_config.h b/board-support/efr32/mgm24/BRD4319A/config/nvm3_default_config.h index 2bf415f94..95cdbb7f5 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/nvm3_default_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/nvm3_default_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif // NVM3_DEFAULT_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_802154_radio_priority_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_802154_radio_priority_config.h index 77334ba2c..cc09e8ca9 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_802154_radio_priority_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_802154_radio_priority_config.h @@ -55,3 +55,4 @@ // <<< end of configuration section >>> #endif //__SL_802154_RADIO_PRIORITY_CONFIG_H__ + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_bgapi_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_bgapi_config.h index 1ae43b6b5..522d1c904 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_bgapi_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_bgapi_config.h @@ -41,3 +41,4 @@ // <<< end of configuration section >>> #endif // SL_BGAPI_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_bluetooth_advertiser_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_bluetooth_advertiser_config.h index 00163cd9a..7cac58bfe 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_bluetooth_advertiser_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_bluetooth_advertiser_config.h @@ -43,3 +43,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_bluetooth_common_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_bluetooth_common_config.h new file mode 100644 index 000000000..55c3749d5 --- /dev/null +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_bluetooth_common_config.h @@ -0,0 +1,53 @@ +/***************************************************************************//** + * @file sl_bluetooth_common_config.h + * @brief Bluetooth Common configuration + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_BLUETOOTH_COMMON_CONFIG_H +#define SL_BLUETOOTH_COMMON_CONFIG_H + +// <<< Use Configuration Wizard in Context Menu >>> + +// Bluetooth Common Configuration + +// Buffer memory size for Bluetooth +// Default: 3150 +// Define the buffer memory size for buffering data over Bluetooth connections, advertising +// and scanning. The default value is an estimation for achieving adequate throughput +// and supporting multiple simultaneous connections. Consider increasing this value for +// higher data throughput over connections, advertising or scanning long advertisement data. +#ifndef SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE +#define SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE (3150) +#endif + +// Bluetooth Common Configuration + +// <<< end of configuration section >>> + +#endif // SL_BLUETOOTH_COMMON_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_bluetooth_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_bluetooth_config.h index 93bfbbcc4..cfaaef06d 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_bluetooth_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_bluetooth_config.h @@ -66,6 +66,9 @@ // advertising and scanning. The default value is an estimation for achieving adequate throughput // and supporting multiple simultaneous connections. Consider increasing this value for // higher data throughput over connections, advertising or scanning long advertisement data. +// NOTE: SL_BT_CONFIG_BUFFER_SIZE is deprecated in Simplicity SDK Suite v2026.6.0 and marked +// for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONFIG_BUFFER_SIZE is replaced by +// SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #define SL_BT_CONFIG_BUFFER_SIZE (3150) // Enable using a custom Bluetooth address stored in NVM3 @@ -124,11 +127,23 @@ // A negative value indicates some power loss in the path. For example, // with radiated TX power set to +10 dBm and this configuration to -10 // (i.e., 1 dBm loss), the transmitter output power will be set to +11 dBm. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_TX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_TX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_TX (0) // RF RX path gain in 0.1dBm unit // Default: 0 // RX RF path gain is used to compensate the RSSI reports from the Bluetooth Stack. +// NOTE: This configuration is deprecated in Simplicity SDK Suite v2026.6.0 and marked for +// removal in Simplicity SDK Suite v2027.6.0. +// During the deprecation period, SL_BT_CONFIG_RF_PATH_GAIN_RX will be applied if set to +// a non-zero value. If SL_BT_CONFIG_RF_PATH_GAIN_RX is set to zero, the value from the +// Bluetooth Low Energy Controller Component configuration +// (SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB) will be used. #define SL_BT_CONFIG_RF_PATH_GAIN_RX (0) // End RF Path @@ -161,8 +176,6 @@ #include "sl_bt_stack_config.h" #include "sl_bgapi_config.h" // For SL_BGAPI_MAX_PAYLOAD_SIZE -// NOTE: Struct sl_btctrl_ll_priorities is deprecated in Simplicity SDK Suite v2025.6.0 and marked for removal in a future release. -// The Link Layer scheduler priority configuration is initialized via the Bluetooth Low Energy Controller component. #define SL_BT_CONFIG_DEFAULT \ { \ .config_flags = SL_BT_CONFIG_FLAGS, \ @@ -179,3 +192,4 @@ } #endif // SL_BLUETOOTH_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_bluetooth_connection_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_bluetooth_connection_config.h index 73a382509..08bc34759 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_bluetooth_connection_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_bluetooth_connection_config.h @@ -46,3 +46,4 @@ // <<< end of configuration section >>> #endif + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_bt_rtos_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_bt_rtos_config.h index b80c07967..fec091919 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_bt_rtos_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_bt_rtos_config.h @@ -42,3 +42,4 @@ #endif #endif // SL_BT_RTOS_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_bt_rtos_config_s2.h b/board-support/efr32/mgm24/BRD4319A/config/sl_bt_rtos_config_s2.h index eb4fe3ea2..bc4c37420 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_bt_rtos_config_s2.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_bt_rtos_config_s2.h @@ -82,3 +82,4 @@ // <<< end of configuration section >>> #endif // SL_BT_RTOS_CONFIG_S2_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_btctrl_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_btctrl_config.h index 403df1ffe..8dfdb6281 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_btctrl_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_btctrl_config.h @@ -7,7 +7,10 @@ // Bluetooth Controller Buffer Memory // Default: SL_BT_CONTROLLER_BUFFER_MEMORY -// Define the Amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// Define the amount of memory to allocate for tx/rx buffers in Bluetooth Controller +// NOTE: SL_BT_CONTROLLER_BUFFER_MEMORY is deprecated in Simplicity SDK Suite v2026.6.0 and +// marked for removal in Simplicity SDK Suite v2027.6.0. SL_BT_CONTROLLER_BUFFER_MEMORY is +// replaced by SL_BLUETOOTH_COMMON_BUFFER_MEMORY_SIZE in the Bluetooth Common Component. #ifndef SL_BT_CONTROLLER_BUFFER_MEMORY #define SL_BT_CONTROLLER_BUFFER_MEMORY (8192) #endif @@ -64,7 +67,7 @@ #define SL_BT_CONTROLLER_MIN_POWER_LEVEL_OVERRIDE (0) #endif -// Minimum radiated TX power level in 0.1dBm unit +// Minimum radiated TX power level in 0.1dBm units // Default: 0 // Define the minimum radiated TX power level. // If the configured power level is lower than what the radio supports, the minimum supported level will be used. @@ -83,7 +86,7 @@ #define SL_BT_CONTROLLER_MAX_POWER_LEVEL_OVERRIDE (0) #endif -// Maximum radiated TX power level in 0.1dBm unit +// Maximum radiated TX power level in 0.1dBm units // Default: 0 // Define the maximum radiated TX power level. // If the configured power level is higher than what the radio supports, the maximum supported level will be used. @@ -97,6 +100,28 @@ // End TX Power Levels +// RF Path + +// TX RF path gain in 0.1dB units +// Default: 0 +// The Bluetooth controller takes TX RF path gain into account when adjusting transmitter +// output power. Power radiated from the antenna then matches the application request. +// A negative value indicates some power loss in the path. For example, +// with radiated TX power set to +10 dBm and this configuration to -10 +// (i.e., 1 dB loss), the transmitter output power will be set to +11 dBm. +#ifndef SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_TX_PATH_GAIN_DECI_DB (0) +#endif + +// RX RF path gain in 0.1dB units +// Default: 0 +// RX RF path gain is used to compensate the RSSI reports received by the Bluetooth controller. +#ifndef SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB +#define SL_BT_CONTROLLER_RF_RX_PATH_GAIN_DECI_DB (0) +#endif + +// End RF Path + // Bluetooth Controller Configuration for LE Connection // Total transmitted packets threshold for all connections to send the Number Of Completed Packets HCI event to the host <1-255> // Default: 4 @@ -136,16 +161,6 @@ #define SL_BT_CONTROLLER_USE_LEGACY_VENDOR_SPECIFIC_EVENT_CODE (0) #endif -// Adaptive Frequency Hopping operation mode -// Active AFH -// Passive AFH -// Choose between active AFH and passive AFH -// Default: Active AFH -// SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY -#ifndef SL_BT_CONTROLLER_ADAPTIVITY_MODE -#define SL_BT_CONTROLLER_ADAPTIVITY_MODE (SL_BTCTRL_CHANNELMAP_FLAG_ACTIVE_ADAPTIVITY) -#endif - // Advertising Configuration // Include TX Power in the extended header of primary extended advertising packets // This is default setting to all advertising sets unless it is specifically overridden by VS_SiliconLabs_Set_Advertising_Config_Bits. @@ -172,3 +187,4 @@ // <<< end of configuration section >>> #endif // SL_BTCTRL_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_btctrl_scheduler_priority_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_btctrl_scheduler_priority_config.h index 0eec28095..fd0e66f83 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_btctrl_scheduler_priority_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_btctrl_scheduler_priority_config.h @@ -146,7 +146,7 @@ // Rail Mapping Window Min // <0-255:1> -// Default: 16 +// Default: 32 // Define the minimum value of RAIL mapping window. // This parameter specifies how task priorities are passed to radio // coexistence and multiprotocol schedulers. @@ -157,17 +157,17 @@ // If coexistence or multiprotocol configuration is not used, then these // parameters have no effect. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 16 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN 32 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN // Rail Mapping Window Range // <0-255:1> -// Default: 32 +// Default: 16 // Define the maximum value of the RAIL mapping window. // See SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN for a description of // this parameter. #ifndef SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX -#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 32 +#define SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX 16 #endif // SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX // PAwR Tx - Min @@ -220,9 +220,9 @@ .conn_max = SL_BT_CONTROLLER_SCHEDULER_PRI_CONN_MAX, \ .init_min = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MIN, \ .init_max = SL_BT_CONTROLLER_SCHEDULER_PRI_INIT_MAX, \ - .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN, \ - .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX \ - - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN), \ + .rail_mapping_offset = SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX, \ + .rail_mapping_range = (SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MIN \ + - SL_BT_CONTROLLER_SCHEDULER_PRI_RAIL_WINDOW_MAX), \ 0, \ .adv_step = SL_BT_CONTROLLER_SCHEDULER_PRI_ADV_STEP, \ .scan_step = SL_BT_CONTROLLER_SCHEDULER_PRI_SCAN_STEP, \ @@ -233,3 +233,4 @@ } #endif // SL_BTCTRL_SCHEDULER_PRIORITY_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_clock_manager_oscillator_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_clock_manager_oscillator_config.h index 3fc2a7c9b..6be746fbc 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_clock_manager_oscillator_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_clock_manager_oscillator_config.h @@ -374,3 +374,4 @@ // <<< sl:end pin_tool >>> #endif /* SL_CLOCK_MANAGER_OSCILLATOR_CONFIG_H */ + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_clock_manager_tree_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_clock_manager_tree_config.h index 74976e212..1d76d152d 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_clock_manager_tree_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_clock_manager_tree_config.h @@ -307,3 +307,4 @@ #endif /* SL_CLOCK_MANAGER_TREE_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_core_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_core_config.h index 27b173d2e..16d372fcf 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_core_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_core_config.h @@ -42,3 +42,4 @@ // <<< end of configuration section >>> #endif // SL_CORE_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_device_init_dcdc_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_device_init_dcdc_config.h index 4fb88397d..a14fce6d9 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_device_init_dcdc_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_device_init_dcdc_config.h @@ -56,3 +56,4 @@ // <<< end of configuration section >>> #endif // SL_DEVICE_INIT_DCDC_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_fem_util_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_fem_util_config.h index d1281886b..022ce36ad 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_fem_util_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_fem_util_config.h @@ -74,3 +74,4 @@ #define SL_FEM_UTIL_RUNTIME_PHY_SELECT 0 #endif // SL_FEM_UTIL_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_gp_interface_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_gp_interface_config.h index fd5aa20ea..0624696f3 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_gp_interface_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_gp_interface_config.h @@ -42,3 +42,4 @@ #define GP_TX_MAX_TIMEOUT_IN_MICRO_SECONDS 5000000 // // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_hfxo_manager_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_hfxo_manager_config.h index d9ccd3c70..87afc3778 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_hfxo_manager_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_hfxo_manager_config.h @@ -54,3 +54,4 @@ #endif /* SL_HFXO_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_main_start_task_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_main_start_task_config.h index 7752c098f..7cc81a4da 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_main_start_task_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_main_start_task_config.h @@ -103,3 +103,4 @@ #endif /* SL_MAIN_START_TASK_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_memory_manager_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_memory_manager_config.h index 4a16c29fe..02af7ec0c 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_memory_manager_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_memory_manager_config.h @@ -47,6 +47,12 @@ // Default: 1 #define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 +// Enables the double free protection for the pool. +// Setting this configuration to 0 will disable the double free protection for the memory pool. saving ~100 bytes of code. +// This setting has no effect on the memory pools power aware version. +// Default: 1 +#define SL_MEMORY_MANAGER_POOL_DOUBLE_FREE_PROTECTION_ENABLE 1 + // // <<< end of configuration section >>> @@ -58,4 +64,13 @@ // Default: 1 #define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 +// Enables retention statistics (retained size, retained high watermark, bank counts). +// Requires bank-retention hardware on the target; SL_CATALOG_BANK_RETENTION_CONTROL_* is defined only for devices that implement it (not every part or kit). +// Software configuration alone cannot add bank retention where the silicon has no such feature. +// Independent of heap statistics (SL_MEMORY_MANAGER_STATISTICS_API_ENABLE). +// When disabled, retention getters return (size_t)-1 or SL_STATUS_NOT_AVAILABLE. +// Default: 0. +#define SL_MEMORY_MANAGER_STATISTICS_RETENTION_ENABLE 0 + #endif /* SL_MEMORY_MANAGER_CONFIG_H */ + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_memory_manager_region_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_memory_manager_region_config.h index bd640b59b..a0a4007e7 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_memory_manager_region_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_memory_manager_region_config.h @@ -49,3 +49,4 @@ // <<< end of configuration section >>> #endif /* SL_MEMORY_MANAGER_REGION_CONFIG_H */ + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_openthread_features_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_openthread_features_config.h index a3697f8af..054fb51b4 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_openthread_features_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_openthread_features_config.h @@ -200,24 +200,31 @@ #endif // // IPv6 Limits -// Maximum IPv6 external unicast addresses +// Runtime IPv6 external address pools +// Enable runtime configuration of external unicast and multicast address pools via otIp6Init(). +#ifndef OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +#define OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE 0 +#endif +#if OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE +// CLI support for runtime IPv6 external address pools +// Enable `ifconfig init` CLI command for testing otIp6Init() pool configuration. +#ifndef OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE +#define OPENTHREAD_CONFIG_CLI_IFCONFIG_INIT_ENABLE 1 +#endif +// +#else +// Maximum IPv6 external unicast addresses (ignored in runtime mode) // Maximum number of IPv6 unicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS 4 #endif -// Maximum IPv6 external multicast addresses +// Maximum IPv6 external multicast addresses (ignored in runtime mode) // Maximum number of IPv6 multicast addresses allowed to be externally added // 4 #ifndef OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS 4 #endif -// Maximum IPv6 address registrations for MTD -// The maximum number of IPv6 address registrations for MTD. -// If left unchanged will default to the value of OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD -// 4 -#ifndef OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER -#define OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER (OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD) #endif // // Jam Detection @@ -286,37 +293,13 @@ #ifndef OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM #define OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM 2 #endif +// Instance-aware platform logging API +#ifndef OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE +#define OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE 0 +#endif +// // // -// Define maximum total source match table entries for both OT and Zigbee. -// In multi-instance builds (SoC or RCP/host), table must support all OT instances + Zigbee. -// For single instance (default), table sized to just OT children. -// This value is used to size all source match tables in both OT and Zigbee code. -// Note: this is purposedly not being setup with CMSIS annotations. -#ifndef RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE -#if SL_ZIGBEE_MAX_END_DEVICE_CHILDREN -// Multipan / DMP case: OT + Zigbee -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - ((OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * (OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM - 1)) \ - + SL_ZIGBEE_MAX_END_DEVICE_CHILDREN) -#else -// Multi-instance OT-only case -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES \ - (OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM) -#endif -#else -// Single-instance OT (SoC / NCP / non-multipan RCP) -#define RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES OPENTHREAD_CONFIG_MLE_MAX_CHILDREN -#endif -#endif -// Spinel Match Table -// Maximum number of spinel source match table entries -// Ensure that this value is the total of the number of openthread children times the number of openthread instances plus the number of Zigbee children. -#ifndef OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES -#define OPENTHREAD_SPINEL_CONFIG_MAX_SRC_MATCH_ENTRIES RADIO_CONFIG_MAX_SRC_MATCH_ENTRIES -#endif -// // OTNS (OpenThread Network Simulator) #ifndef OPENTHREAD_CONFIG_OTNS_ENABLE #define OPENTHREAD_CONFIG_OTNS_ENABLE 0 @@ -379,6 +362,40 @@ #define OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE 1 #endif // +// Vendor Name string +// Vendor Name string +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +#if OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE +// Default: "RD:Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "RD:Silicon Labs" +#else +// Default: "Silicon Labs" +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME "Silicon Labs" +#endif +#endif // OPENTHREAD_CONFIG_NET_DIAG_VENDOR_NAME +// Vendor Model string +// Vendor Model string +// Default: "OpenThread" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_MODEL "OpenThread" +#endif +// Vendor SW Version string +// Vendor SW Version string +// Default: "3.1.0.0" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_SW_VERSION "3.1.0.0" +#endif +// Vendor App URL string +// Vendor App URL string +// Default: "www.silabs.com" +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_APP_URL "www.silabs.com" +#endif +// Run-time configuration of Vendor Info +#ifndef OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE +#define OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE 1 +#endif +// // Time Synchronization Service #ifndef OPENTHREAD_CONFIG_TIME_SYNC_ENABLE #define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 0 @@ -399,6 +416,11 @@ #define OPENTHREAD_CONFIG_MAC_BEACON_PAYLOAD_PARSING_ENABLE 1 #endif // +// Log crash dump after initialization +#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE +#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 +#endif +// // Radio Driver RX buffers // Maximum number of RX buffers // The maximum number of RX buffers to use in the radio driver. @@ -408,66 +430,7 @@ #endif // // -// Logging -// LOG_OUTPUT -// NONE -// APP -// PLATFORM_DEFINED -// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP -// OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT -#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP -#endif - -// DYNAMIC_LOG_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE -#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 -#endif - -// Enable Logging -#define OPENTHREAD_FULL_LOGS_ENABLE 0 -#if OPENTHREAD_FULL_LOGS_ENABLE - -// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. -// LOG_LEVEL -// NONE -// CRIT -// WARN -// NOTE -// INFO -// DEBG -// Default: OT_LOG_LEVEL_DEBG -// OT_LOG_LEVEL_DEBG -#ifndef OPENTHREAD_CONFIG_LOG_LEVEL -#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG -#endif -// CLI -#ifndef OPENTHREAD_CONFIG_LOG_CLI -#define OPENTHREAD_CONFIG_LOG_CLI 1 -#endif -// PKT_DUMP -#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP -#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 -#endif -// PLATFORM -#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM -#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 -#endif -// PREPEND_LEVEL -#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL -#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 -#endif - -#endif // OPENTHREAD_FULL_LOGS_ENABLE - -// Log crash dump after initialization -#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE -#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 -#endif - -// -// -// // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_FEATURES_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_openthread_log_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_openthread_log_config.h new file mode 100644 index 000000000..420892125 --- /dev/null +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_openthread_log_config.h @@ -0,0 +1,89 @@ +/******************************************************************************* + * @file + * @brief OpenThread log configuration file. + ******************************************************************************* + * # License + * Copyright 2026 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * 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_OPENTHREAD_LOG_CONFIG_H +#define _SL_OPENTHREAD_LOG_CONFIG_H + +//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- +// Logging +// LOG_OUTPUT +// NONE +// APP +// PLATFORM_DEFINED +// Default: OPENTHREAD_CONFIG_LOG_OUTPUT_APP +// OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#ifndef OPENTHREAD_CONFIG_LOG_OUTPUT +#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP +#endif + +// DYNAMIC_LOG_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE +#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE 0 +#endif + +// Enable Logging +#define OPENTHREAD_FULL_LOGS_ENABLE 0 +#if OPENTHREAD_FULL_LOGS_ENABLE +// Note: Enabling higher log levels, which include logging packet details, can cause delays which may result in join failures. +// LOG_LEVEL +// NONE +// CRIT +// WARN +// NOTE +// INFO +// DEBG +// Default: OT_LOG_LEVEL_DEBG +// OT_LOG_LEVEL_DEBG +#ifndef OPENTHREAD_CONFIG_LOG_LEVEL +#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG +#endif +// CLI +#ifndef OPENTHREAD_CONFIG_LOG_CLI +#define OPENTHREAD_CONFIG_LOG_CLI 1 +#endif +// PKT_DUMP +#ifndef OPENTHREAD_CONFIG_LOG_PKT_DUMP +#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1 +#endif +// PLATFORM +#ifndef OPENTHREAD_CONFIG_LOG_PLATFORM +#define OPENTHREAD_CONFIG_LOG_PLATFORM 1 +#endif +// PREPEND_LEVEL +#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL +#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 +#endif +// +#endif // OPENTHREAD_FULL_LOGS_ENABLE +// +// +// <<< end of configuration section >>> +#endif // _SL_OPENTHREAD_LOG_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_openthread_radio_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_openthread_radio_config.h index 478a72430..1735c91c6 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_openthread_radio_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_openthread_radio_config.h @@ -40,6 +40,11 @@ #define SL_OPENTHREAD_RSSI_AVERAGING_TIME 16 // us // RSSI Average Timeout [us] #define SL_OPENTHREAD_RSSI_AVERAGING_TIMEOUT 300 // us +// Debug Counters Support +#ifndef RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT +#define RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT 0 // Set to 1 to enable debug counters in radio.c +#endif // // <<< end of configuration section >>> #endif // _SL_OPENTHREAD_RADIO_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_openthread_rtos_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_openthread_rtos_config.h index 6dc710fcc..16a2b1709 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_openthread_rtos_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_openthread_rtos_config.h @@ -72,18 +72,10 @@ #define SL_OPENTHREAD_APP_TASK_MEM_SIZE (4608) // OpenThread serial task stack size in bytes <1000-20000> -// Default: 3072 +// Default: 3840 // Defines the stack size of the OpenThread RTOS serial task. The value is in bytes and // and will be word aligned when it is applied at the task creation. -#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3072) - -// -// Priority Configuration for OpenThread RTOS Stack Task -// OpenThread serial task prority -// Default: 16 (CMSIS-RTOS2 osPriorityBelowNormal) -// Defines OpenThread serial task priority. This must be a valid priority value -// from CMSIS-RTOS2 osPriority_t definition. -#define SL_OPENTHREAD_RTOS_SERIAL_TASK_PRIORITY (16) +#define SL_OPENTHREAD_SERIAL_TASK_MEM_SIZE (3840) // // App Task @@ -107,3 +99,4 @@ // // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_power_manager_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_power_manager_config.h index 86b9fef27..1c71950d9 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_power_manager_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_power_manager_config.h @@ -98,3 +98,4 @@ #endif /* SL_POWER_MANAGER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_rail_util_pa_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_rail_util_pa_config.h index e43bfc96a..2d4f50c6f 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_rail_util_pa_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_rail_util_pa_config.h @@ -81,3 +81,4 @@ // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_PA_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_rail_util_power_manager_init_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_rail_util_power_manager_init_config.h index cbc69f24d..bcc7596c5 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_rail_util_power_manager_init_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_rail_util_power_manager_init_config.h @@ -42,3 +42,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_POWER_MANAGER_INIT_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_rail_util_rssi_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_rail_util_rssi_config.h index 128d705f5..d706e8785 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_rail_util_rssi_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_rail_util_rssi_config.h @@ -46,3 +46,4 @@ // // <<< end of configuration section >>> #endif // SL_RAIL_UTIL_RSSI_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_rail_util_sequencer_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_rail_util_sequencer_config.h index 640ef0c0d..02977b219 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_rail_util_sequencer_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_rail_util_sequencer_config.h @@ -44,3 +44,4 @@ extern "C" { #endif #endif // SL_RAIL_UTIL_SEQUENCER_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_simple_button_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_simple_button_config.h index 531f4f208..4cd53a96b 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_simple_button_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_simple_button_config.h @@ -70,3 +70,4 @@ // <<< end of configuration section >>> #endif // SL_SIMPLE_BUTTON_CONFIG_H + diff --git a/board-support/efr32/mgm24/BRD4319A/config/sl_sleeptimer_config.h b/board-support/efr32/mgm24/BRD4319A/config/sl_sleeptimer_config.h index 8344ef5f1..c638bfeed 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/sl_sleeptimer_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/sl_sleeptimer_config.h @@ -52,6 +52,7 @@ // WTIMER // TIMER // Selection of the Timer Peripheral Used by the Sleeptimer +// If BURTC is needed as an EM4 wake-up source, it must not be used by Sleeptimer. #define SL_SLEEPTIMER_PERIPHERAL SL_SLEEPTIMER_PERIPHERAL_DEFAULT // TIMER/WTIMER Instance Used by Sleeptimer (not applicable for other peripherals) @@ -80,3 +81,4 @@ #endif /* SLEEPTIMER_CONFIG_H */ // <<< end of configuration section >>> + diff --git a/board-support/efr32/mgm24/BRD4319A/config/uartdrv_config.h b/board-support/efr32/mgm24/BRD4319A/config/uartdrv_config.h index f41b347e1..b0fc7f703 100644 --- a/board-support/efr32/mgm24/BRD4319A/config/uartdrv_config.h +++ b/board-support/efr32/mgm24/BRD4319A/config/uartdrv_config.h @@ -121,3 +121,4 @@ /** @} (end addtogroup uartdrv) */ #endif /* __SILICON_LABS_UARTDRV_CONFIG_H__ */ + diff --git a/board-support/si91x/siwx917/BRD2605A/config/pin_config.h b/board-support/si91x/siwx917/BRD2605A/config/pin_config.h index f2d4cbd69..f3c1bff34 100644 --- a/board-support/si91x/siwx917/BRD2605A/config/pin_config.h +++ b/board-support/si91x/siwx917/BRD2605A/config/pin_config.h @@ -139,9 +139,15 @@ // $[QEI] // [QEI]$ +// $[SDIO] +// [SDIO]$ + // $[HSPI_SECONDARY] // [HSPI_SECONDARY]$ +// $[MCU_CLK_OUT] +// [MCU_CLK_OUT]$ + // $[CUSTOM_PIN_NAME] #ifndef _PORT #define _PORT 0 diff --git a/board-support/si91x/siwx917/BRD2605A/config/sl_gpio_board.h b/board-support/si91x/siwx917/BRD2605A/config/sl_gpio_board.h index a2675b27b..e49c56ae3 100644 --- a/board-support/si91x/siwx917/BRD2605A/config/sl_gpio_board.h +++ b/board-support/si91x/siwx917/BRD2605A/config/sl_gpio_board.h @@ -29,6 +29,7 @@ extern "C" { * @{ */ #include "em_device.h" +#include "sl_si91x_gpio_hp_pin_config.h" #define SL_SI91X_GPIO_6_PORT RTE_GPIO_6_PORT #define SL_SI91X_GPIO_6_PAD RTE_GPIO_6_PAD diff --git a/board-support/si91x/siwx917/BRD2605A/config/sl_memory_manager_config.h b/board-support/si91x/siwx917/BRD2605A/config/sl_memory_manager_config.h index 26b84b107..f6deb4485 100644 --- a/board-support/si91x/siwx917/BRD2605A/config/sl_memory_manager_config.h +++ b/board-support/si91x/siwx917/BRD2605A/config/sl_memory_manager_config.h @@ -47,8 +47,29 @@ // Default: 1 #define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 +// Enables the double free protection for the pool. +// Setting this configuration to 0 will disable the double free protection for the memory pool. saving ~100 bytes of code. +// This setting has no effect on the memory pools power aware version. +// Default: 1 +#define SL_MEMORY_MANAGER_POOL_DOUBLE_FREE_PROTECTION_ENABLE 1 + // // <<< end of configuration section >>> +// Keep this configuration outside the configuration section until the feature is ready for release. +// Enables the heap fallback mechanism. +// Setting this configuration to 0 will disable the fallback mechanism on DTCM and PSRAM. +// If this configuration is disabled, the memory manager will not attempt to use alternative memory regions for allocations even if using the fallback parameters. +// Default: 1 +#define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 + +// Enables retention statistics (retained size, retained high watermark, bank counts). +// Requires bank-retention hardware on the target; SL_CATALOG_BANK_RETENTION_CONTROL_* is defined only for devices that implement it (not every part or kit). +// Software configuration alone cannot add bank retention where the silicon has no such feature. +// Independent of heap statistics (SL_MEMORY_MANAGER_STATISTICS_API_ENABLE). +// When disabled, retention getters return (size_t)-1 or SL_STATUS_NOT_AVAILABLE. +// Default: 0. +#define SL_MEMORY_MANAGER_STATISTICS_RETENTION_ENABLE 0 + #endif /* SL_MEMORY_MANAGER_CONFIG_H */ diff --git a/board-support/si91x/siwx917/BRD2605A/config/sl_net_default_values.h b/board-support/si91x/siwx917/BRD2605A/config/sl_net_default_values.h index cd4d5b936..437f5dca9 100644 --- a/board-support/si91x/siwx917/BRD2605A/config/sl_net_default_values.h +++ b/board-support/si91x/siwx917/BRD2605A/config/sl_net_default_values.h @@ -85,6 +85,7 @@ #define DEFAULT_WIFI_GATEWAY_ADDRESS 0x0A0AA8C0 #endif +//For open security networks (SL_WIFI_OPEN), use SL_WIFI_NO_CREDENTIAL_ID. #define DEFAULT_WIFI_CLIENT_PROFILE \ (sl_net_wifi_client_profile_t) \ { \ @@ -100,16 +101,39 @@ .security = DEFAULT_WIFI_CLIENT_SECURITY_TYPE, \ .encryption = DEFAULT_WIFI_CLIENT_ENCRYPTION_TYPE, \ .client_options = 0, \ - .credential_id = SL_NET_DEFAULT_WIFI_CLIENT_CREDENTIAL_ID, \ + .credential_id = (DEFAULT_WIFI_CLIENT_SECURITY_TYPE == SL_WIFI_OPEN) ? \ + SL_WIFI_NO_CREDENTIAL_ID : \ + SL_NET_DEFAULT_WIFI_CLIENT_CREDENTIAL_ID, \ }, \ .ip = { \ .mode = SL_IP_MANAGEMENT_DHCP, \ .type = REQUIRED_IP_TYPE, \ .host_name = NULL, \ - .ip = {{{0}}}, \ - } \ + .ip = { \ + .v4 = { \ + .ip_address = { .value = 0u }, \ + .gateway = { .value = 0u }, \ + .netmask = { .value = 0u }, \ + }, \ + .v6 = { \ + .link_local_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .global_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .gateway = { .value = { 0u, 0u, 0u, 0u } }, \ + }, \ + }, \ + .dhcp_config = { \ + .min_discover_retry_interval = 0, \ + .max_discover_retry_interval = 0, \ + .min_request_retry_interval = 0, \ + .max_request_retry_interval = 0, \ + .max_discover_retries = 0, \ + .max_request_retries = 0, \ + }, \ + }, \ + .priority = 0 \ } +//For open security networks (SL_WIFI_OPEN), use SL_WIFI_NO_CREDENTIAL_ID. #define DEFAULT_WIFI_ACCESS_POINT_PROFILE \ (sl_net_wifi_ap_profile_t) \ { \ @@ -124,7 +148,7 @@ .rate_protocol = SL_WIFI_RATE_PROTOCOL_AUTO, \ .options = 0, \ .credential_id = SL_NET_DEFAULT_WIFI_AP_CREDENTIAL_ID, \ - .keepalive_type = SL_SI91X_AP_NULL_BASED_KEEP_ALIVE, \ + .keepalive_type = SL_WIFI_AP_NULL_BASED_KEEP_ALIVE, \ .beacon_interval = 100, \ .client_idle_timeout = 0xFF, \ .dtim_beacon_count = 3, \ @@ -138,9 +162,24 @@ .type = SL_IPV4, \ .host_name = NULL, \ .ip = { \ - .v4.ip_address.value = DEFAULT_WIFI_MODULE_IP_ADDRESS, \ - .v4.gateway.value = DEFAULT_WIFI_GATEWAY_ADDRESS, \ - .v4.netmask.value = DEFAULT_WIFI_SN_MASK_ADDRESS \ + .v4 = { \ + .ip_address.value = DEFAULT_WIFI_MODULE_IP_ADDRESS, \ + .gateway.value = DEFAULT_WIFI_GATEWAY_ADDRESS, \ + .netmask.value = DEFAULT_WIFI_SN_MASK_ADDRESS, \ + }, \ + .v6 = { \ + .link_local_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .global_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .gateway = { .value = { 0u, 0u, 0u, 0u } }, \ + }, \ + }, \ + .dhcp_config = { \ + .min_discover_retry_interval = 0, \ + .max_discover_retry_interval = 0, \ + .min_request_retry_interval = 0, \ + .max_request_retry_interval = 0, \ + .max_discover_retries = 0, \ + .max_request_retries = 0, \ }, \ } \ } diff --git a/board-support/si91x/siwx917/BRD2708A/config/pin_config.h b/board-support/si91x/siwx917/BRD2708A/config/pin_config.h index 67be1af41..8f7a00bdd 100644 --- a/board-support/si91x/siwx917/BRD2708A/config/pin_config.h +++ b/board-support/si91x/siwx917/BRD2708A/config/pin_config.h @@ -139,6 +139,9 @@ // $[QEI] // [QEI]$ +// $[SDIO] +// [SDIO]$ + // $[HSPI_SECONDARY] // [HSPI_SECONDARY]$ @@ -151,6 +154,9 @@ // $[OPAMP3] // [OPAMP3]$ +// $[MCU_CLK_OUT] +// [MCU_CLK_OUT]$ + // $[CUSTOM_PIN_NAME] #ifndef _PORT #define _PORT 0 diff --git a/board-support/si91x/siwx917/BRD2708A/config/sl_memory_manager_config.h b/board-support/si91x/siwx917/BRD2708A/config/sl_memory_manager_config.h index 26b84b107..f6deb4485 100644 --- a/board-support/si91x/siwx917/BRD2708A/config/sl_memory_manager_config.h +++ b/board-support/si91x/siwx917/BRD2708A/config/sl_memory_manager_config.h @@ -47,8 +47,29 @@ // Default: 1 #define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 +// Enables the double free protection for the pool. +// Setting this configuration to 0 will disable the double free protection for the memory pool. saving ~100 bytes of code. +// This setting has no effect on the memory pools power aware version. +// Default: 1 +#define SL_MEMORY_MANAGER_POOL_DOUBLE_FREE_PROTECTION_ENABLE 1 + // // <<< end of configuration section >>> +// Keep this configuration outside the configuration section until the feature is ready for release. +// Enables the heap fallback mechanism. +// Setting this configuration to 0 will disable the fallback mechanism on DTCM and PSRAM. +// If this configuration is disabled, the memory manager will not attempt to use alternative memory regions for allocations even if using the fallback parameters. +// Default: 1 +#define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 + +// Enables retention statistics (retained size, retained high watermark, bank counts). +// Requires bank-retention hardware on the target; SL_CATALOG_BANK_RETENTION_CONTROL_* is defined only for devices that implement it (not every part or kit). +// Software configuration alone cannot add bank retention where the silicon has no such feature. +// Independent of heap statistics (SL_MEMORY_MANAGER_STATISTICS_API_ENABLE). +// When disabled, retention getters return (size_t)-1 or SL_STATUS_NOT_AVAILABLE. +// Default: 0. +#define SL_MEMORY_MANAGER_STATISTICS_RETENTION_ENABLE 0 + #endif /* SL_MEMORY_MANAGER_CONFIG_H */ diff --git a/board-support/si91x/siwx917/BRD2708A/config/sl_net_default_values.h b/board-support/si91x/siwx917/BRD2708A/config/sl_net_default_values.h index cd4d5b936..437f5dca9 100644 --- a/board-support/si91x/siwx917/BRD2708A/config/sl_net_default_values.h +++ b/board-support/si91x/siwx917/BRD2708A/config/sl_net_default_values.h @@ -85,6 +85,7 @@ #define DEFAULT_WIFI_GATEWAY_ADDRESS 0x0A0AA8C0 #endif +//For open security networks (SL_WIFI_OPEN), use SL_WIFI_NO_CREDENTIAL_ID. #define DEFAULT_WIFI_CLIENT_PROFILE \ (sl_net_wifi_client_profile_t) \ { \ @@ -100,16 +101,39 @@ .security = DEFAULT_WIFI_CLIENT_SECURITY_TYPE, \ .encryption = DEFAULT_WIFI_CLIENT_ENCRYPTION_TYPE, \ .client_options = 0, \ - .credential_id = SL_NET_DEFAULT_WIFI_CLIENT_CREDENTIAL_ID, \ + .credential_id = (DEFAULT_WIFI_CLIENT_SECURITY_TYPE == SL_WIFI_OPEN) ? \ + SL_WIFI_NO_CREDENTIAL_ID : \ + SL_NET_DEFAULT_WIFI_CLIENT_CREDENTIAL_ID, \ }, \ .ip = { \ .mode = SL_IP_MANAGEMENT_DHCP, \ .type = REQUIRED_IP_TYPE, \ .host_name = NULL, \ - .ip = {{{0}}}, \ - } \ + .ip = { \ + .v4 = { \ + .ip_address = { .value = 0u }, \ + .gateway = { .value = 0u }, \ + .netmask = { .value = 0u }, \ + }, \ + .v6 = { \ + .link_local_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .global_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .gateway = { .value = { 0u, 0u, 0u, 0u } }, \ + }, \ + }, \ + .dhcp_config = { \ + .min_discover_retry_interval = 0, \ + .max_discover_retry_interval = 0, \ + .min_request_retry_interval = 0, \ + .max_request_retry_interval = 0, \ + .max_discover_retries = 0, \ + .max_request_retries = 0, \ + }, \ + }, \ + .priority = 0 \ } +//For open security networks (SL_WIFI_OPEN), use SL_WIFI_NO_CREDENTIAL_ID. #define DEFAULT_WIFI_ACCESS_POINT_PROFILE \ (sl_net_wifi_ap_profile_t) \ { \ @@ -124,7 +148,7 @@ .rate_protocol = SL_WIFI_RATE_PROTOCOL_AUTO, \ .options = 0, \ .credential_id = SL_NET_DEFAULT_WIFI_AP_CREDENTIAL_ID, \ - .keepalive_type = SL_SI91X_AP_NULL_BASED_KEEP_ALIVE, \ + .keepalive_type = SL_WIFI_AP_NULL_BASED_KEEP_ALIVE, \ .beacon_interval = 100, \ .client_idle_timeout = 0xFF, \ .dtim_beacon_count = 3, \ @@ -138,9 +162,24 @@ .type = SL_IPV4, \ .host_name = NULL, \ .ip = { \ - .v4.ip_address.value = DEFAULT_WIFI_MODULE_IP_ADDRESS, \ - .v4.gateway.value = DEFAULT_WIFI_GATEWAY_ADDRESS, \ - .v4.netmask.value = DEFAULT_WIFI_SN_MASK_ADDRESS \ + .v4 = { \ + .ip_address.value = DEFAULT_WIFI_MODULE_IP_ADDRESS, \ + .gateway.value = DEFAULT_WIFI_GATEWAY_ADDRESS, \ + .netmask.value = DEFAULT_WIFI_SN_MASK_ADDRESS, \ + }, \ + .v6 = { \ + .link_local_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .global_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .gateway = { .value = { 0u, 0u, 0u, 0u } }, \ + }, \ + }, \ + .dhcp_config = { \ + .min_discover_retry_interval = 0, \ + .max_discover_retry_interval = 0, \ + .min_request_retry_interval = 0, \ + .max_request_retry_interval = 0, \ + .max_discover_retries = 0, \ + .max_request_retries = 0, \ }, \ } \ } diff --git a/board-support/si91x/siwx917/BRD2911A/config/pin_config.h b/board-support/si91x/siwx917/BRD2911A/config/pin_config.h index 67be1af41..8f7a00bdd 100644 --- a/board-support/si91x/siwx917/BRD2911A/config/pin_config.h +++ b/board-support/si91x/siwx917/BRD2911A/config/pin_config.h @@ -139,6 +139,9 @@ // $[QEI] // [QEI]$ +// $[SDIO] +// [SDIO]$ + // $[HSPI_SECONDARY] // [HSPI_SECONDARY]$ @@ -151,6 +154,9 @@ // $[OPAMP3] // [OPAMP3]$ +// $[MCU_CLK_OUT] +// [MCU_CLK_OUT]$ + // $[CUSTOM_PIN_NAME] #ifndef _PORT #define _PORT 0 diff --git a/board-support/si91x/siwx917/BRD2911A/config/sl_gpio_board.h b/board-support/si91x/siwx917/BRD2911A/config/sl_gpio_board.h index ca5edc875..02a7003b4 100644 --- a/board-support/si91x/siwx917/BRD2911A/config/sl_gpio_board.h +++ b/board-support/si91x/siwx917/BRD2911A/config/sl_gpio_board.h @@ -29,6 +29,7 @@ extern "C" { * @{ */ #include "em_device.h" +#include "sl_si91x_gpio_hp_pin_config.h" #define SL_SI91X_GPIO_6_PORT RTE_GPIO_6_PORT #define SL_SI91X_GPIO_6_PAD RTE_GPIO_6_PAD diff --git a/board-support/si91x/siwx917/BRD2911A/config/sl_memory_manager_config.h b/board-support/si91x/siwx917/BRD2911A/config/sl_memory_manager_config.h index 26b84b107..f6deb4485 100644 --- a/board-support/si91x/siwx917/BRD2911A/config/sl_memory_manager_config.h +++ b/board-support/si91x/siwx917/BRD2911A/config/sl_memory_manager_config.h @@ -47,8 +47,29 @@ // Default: 1 #define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 +// Enables the double free protection for the pool. +// Setting this configuration to 0 will disable the double free protection for the memory pool. saving ~100 bytes of code. +// This setting has no effect on the memory pools power aware version. +// Default: 1 +#define SL_MEMORY_MANAGER_POOL_DOUBLE_FREE_PROTECTION_ENABLE 1 + // // <<< end of configuration section >>> +// Keep this configuration outside the configuration section until the feature is ready for release. +// Enables the heap fallback mechanism. +// Setting this configuration to 0 will disable the fallback mechanism on DTCM and PSRAM. +// If this configuration is disabled, the memory manager will not attempt to use alternative memory regions for allocations even if using the fallback parameters. +// Default: 1 +#define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 + +// Enables retention statistics (retained size, retained high watermark, bank counts). +// Requires bank-retention hardware on the target; SL_CATALOG_BANK_RETENTION_CONTROL_* is defined only for devices that implement it (not every part or kit). +// Software configuration alone cannot add bank retention where the silicon has no such feature. +// Independent of heap statistics (SL_MEMORY_MANAGER_STATISTICS_API_ENABLE). +// When disabled, retention getters return (size_t)-1 or SL_STATUS_NOT_AVAILABLE. +// Default: 0. +#define SL_MEMORY_MANAGER_STATISTICS_RETENTION_ENABLE 0 + #endif /* SL_MEMORY_MANAGER_CONFIG_H */ diff --git a/board-support/si91x/siwx917/BRD2911A/config/sl_net_default_values.h b/board-support/si91x/siwx917/BRD2911A/config/sl_net_default_values.h index cd4d5b936..437f5dca9 100644 --- a/board-support/si91x/siwx917/BRD2911A/config/sl_net_default_values.h +++ b/board-support/si91x/siwx917/BRD2911A/config/sl_net_default_values.h @@ -85,6 +85,7 @@ #define DEFAULT_WIFI_GATEWAY_ADDRESS 0x0A0AA8C0 #endif +//For open security networks (SL_WIFI_OPEN), use SL_WIFI_NO_CREDENTIAL_ID. #define DEFAULT_WIFI_CLIENT_PROFILE \ (sl_net_wifi_client_profile_t) \ { \ @@ -100,16 +101,39 @@ .security = DEFAULT_WIFI_CLIENT_SECURITY_TYPE, \ .encryption = DEFAULT_WIFI_CLIENT_ENCRYPTION_TYPE, \ .client_options = 0, \ - .credential_id = SL_NET_DEFAULT_WIFI_CLIENT_CREDENTIAL_ID, \ + .credential_id = (DEFAULT_WIFI_CLIENT_SECURITY_TYPE == SL_WIFI_OPEN) ? \ + SL_WIFI_NO_CREDENTIAL_ID : \ + SL_NET_DEFAULT_WIFI_CLIENT_CREDENTIAL_ID, \ }, \ .ip = { \ .mode = SL_IP_MANAGEMENT_DHCP, \ .type = REQUIRED_IP_TYPE, \ .host_name = NULL, \ - .ip = {{{0}}}, \ - } \ + .ip = { \ + .v4 = { \ + .ip_address = { .value = 0u }, \ + .gateway = { .value = 0u }, \ + .netmask = { .value = 0u }, \ + }, \ + .v6 = { \ + .link_local_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .global_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .gateway = { .value = { 0u, 0u, 0u, 0u } }, \ + }, \ + }, \ + .dhcp_config = { \ + .min_discover_retry_interval = 0, \ + .max_discover_retry_interval = 0, \ + .min_request_retry_interval = 0, \ + .max_request_retry_interval = 0, \ + .max_discover_retries = 0, \ + .max_request_retries = 0, \ + }, \ + }, \ + .priority = 0 \ } +//For open security networks (SL_WIFI_OPEN), use SL_WIFI_NO_CREDENTIAL_ID. #define DEFAULT_WIFI_ACCESS_POINT_PROFILE \ (sl_net_wifi_ap_profile_t) \ { \ @@ -124,7 +148,7 @@ .rate_protocol = SL_WIFI_RATE_PROTOCOL_AUTO, \ .options = 0, \ .credential_id = SL_NET_DEFAULT_WIFI_AP_CREDENTIAL_ID, \ - .keepalive_type = SL_SI91X_AP_NULL_BASED_KEEP_ALIVE, \ + .keepalive_type = SL_WIFI_AP_NULL_BASED_KEEP_ALIVE, \ .beacon_interval = 100, \ .client_idle_timeout = 0xFF, \ .dtim_beacon_count = 3, \ @@ -138,9 +162,24 @@ .type = SL_IPV4, \ .host_name = NULL, \ .ip = { \ - .v4.ip_address.value = DEFAULT_WIFI_MODULE_IP_ADDRESS, \ - .v4.gateway.value = DEFAULT_WIFI_GATEWAY_ADDRESS, \ - .v4.netmask.value = DEFAULT_WIFI_SN_MASK_ADDRESS \ + .v4 = { \ + .ip_address.value = DEFAULT_WIFI_MODULE_IP_ADDRESS, \ + .gateway.value = DEFAULT_WIFI_GATEWAY_ADDRESS, \ + .netmask.value = DEFAULT_WIFI_SN_MASK_ADDRESS, \ + }, \ + .v6 = { \ + .link_local_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .global_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .gateway = { .value = { 0u, 0u, 0u, 0u } }, \ + }, \ + }, \ + .dhcp_config = { \ + .min_discover_retry_interval = 0, \ + .max_discover_retry_interval = 0, \ + .min_request_retry_interval = 0, \ + .max_request_retry_interval = 0, \ + .max_discover_retries = 0, \ + .max_request_retries = 0, \ }, \ } \ } diff --git a/board-support/si91x/siwx917/BRD4338A/config/pin_config.h b/board-support/si91x/siwx917/BRD4338A/config/pin_config.h index a2f221f4c..0f9b0fcb1 100644 --- a/board-support/si91x/siwx917/BRD4338A/config/pin_config.h +++ b/board-support/si91x/siwx917/BRD4338A/config/pin_config.h @@ -139,6 +139,9 @@ // $[QEI] // [QEI]$ +// $[SDIO] +// [SDIO]$ + // $[HSPI_SECONDARY] // [HSPI_SECONDARY]$ @@ -163,6 +166,9 @@ // $[SDC_CH4] // [SDC_CH4]$ +// $[MCU_CLK_OUT] +// [MCU_CLK_OUT]$ + // $[CUSTOM_PIN_NAME] #ifndef _PORT #define _PORT 0 @@ -174,3 +180,4 @@ // [CUSTOM_PIN_NAME]$ #endif // PIN_CONFIG_H + diff --git a/board-support/si91x/siwx917/BRD4338A/config/sl_gpio_board.h b/board-support/si91x/siwx917/BRD4338A/config/sl_gpio_board.h index bd5f0a87a..d0b7250aa 100644 --- a/board-support/si91x/siwx917/BRD4338A/config/sl_gpio_board.h +++ b/board-support/si91x/siwx917/BRD4338A/config/sl_gpio_board.h @@ -29,6 +29,7 @@ extern "C" { * @{ */ #include "em_device.h" +#include "sl_si91x_gpio_hp_pin_config.h" #define SL_SI91X_GPIO_6_PORT RTE_GPIO_6_PORT #define SL_SI91X_GPIO_6_PAD RTE_GPIO_6_PAD diff --git a/board-support/si91x/siwx917/BRD4338A/config/sl_memory_manager_config.h b/board-support/si91x/siwx917/BRD4338A/config/sl_memory_manager_config.h index 26b84b107..02af7ec0c 100644 --- a/board-support/si91x/siwx917/BRD4338A/config/sl_memory_manager_config.h +++ b/board-support/si91x/siwx917/BRD4338A/config/sl_memory_manager_config.h @@ -47,8 +47,30 @@ // Default: 1 #define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 +// Enables the double free protection for the pool. +// Setting this configuration to 0 will disable the double free protection for the memory pool. saving ~100 bytes of code. +// This setting has no effect on the memory pools power aware version. +// Default: 1 +#define SL_MEMORY_MANAGER_POOL_DOUBLE_FREE_PROTECTION_ENABLE 1 + // // <<< end of configuration section >>> +// Keep this configuration outside the configuration section until the feature is ready for release. +// Enables the heap fallback mechanism. +// Setting this configuration to 0 will disable the fallback mechanism on DTCM and PSRAM. +// If this configuration is disabled, the memory manager will not attempt to use alternative memory regions for allocations even if using the fallback parameters. +// Default: 1 +#define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 + +// Enables retention statistics (retained size, retained high watermark, bank counts). +// Requires bank-retention hardware on the target; SL_CATALOG_BANK_RETENTION_CONTROL_* is defined only for devices that implement it (not every part or kit). +// Software configuration alone cannot add bank retention where the silicon has no such feature. +// Independent of heap statistics (SL_MEMORY_MANAGER_STATISTICS_API_ENABLE). +// When disabled, retention getters return (size_t)-1 or SL_STATUS_NOT_AVAILABLE. +// Default: 0. +#define SL_MEMORY_MANAGER_STATISTICS_RETENTION_ENABLE 0 + #endif /* SL_MEMORY_MANAGER_CONFIG_H */ + diff --git a/board-support/si91x/siwx917/BRD4338A/config/sl_net_default_values.h b/board-support/si91x/siwx917/BRD4338A/config/sl_net_default_values.h index cd4d5b936..ec43af7a8 100644 --- a/board-support/si91x/siwx917/BRD4338A/config/sl_net_default_values.h +++ b/board-support/si91x/siwx917/BRD4338A/config/sl_net_default_values.h @@ -85,6 +85,7 @@ #define DEFAULT_WIFI_GATEWAY_ADDRESS 0x0A0AA8C0 #endif +//For open security networks (SL_WIFI_OPEN), use SL_WIFI_NO_CREDENTIAL_ID. #define DEFAULT_WIFI_CLIENT_PROFILE \ (sl_net_wifi_client_profile_t) \ { \ @@ -100,16 +101,39 @@ .security = DEFAULT_WIFI_CLIENT_SECURITY_TYPE, \ .encryption = DEFAULT_WIFI_CLIENT_ENCRYPTION_TYPE, \ .client_options = 0, \ - .credential_id = SL_NET_DEFAULT_WIFI_CLIENT_CREDENTIAL_ID, \ + .credential_id = (DEFAULT_WIFI_CLIENT_SECURITY_TYPE == SL_WIFI_OPEN) ? \ + SL_WIFI_NO_CREDENTIAL_ID : \ + SL_NET_DEFAULT_WIFI_CLIENT_CREDENTIAL_ID, \ }, \ .ip = { \ .mode = SL_IP_MANAGEMENT_DHCP, \ .type = REQUIRED_IP_TYPE, \ .host_name = NULL, \ - .ip = {{{0}}}, \ - } \ + .ip = { \ + .v4 = { \ + .ip_address = { .value = 0u }, \ + .gateway = { .value = 0u }, \ + .netmask = { .value = 0u }, \ + }, \ + .v6 = { \ + .link_local_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .global_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .gateway = { .value = { 0u, 0u, 0u, 0u } }, \ + }, \ + }, \ + .dhcp_config = { \ + .min_discover_retry_interval = 0, \ + .max_discover_retry_interval = 0, \ + .min_request_retry_interval = 0, \ + .max_request_retry_interval = 0, \ + .max_discover_retries = 0, \ + .max_request_retries = 0, \ + }, \ + }, \ + .priority = 0 \ } +//For open security networks (SL_WIFI_OPEN), use SL_WIFI_NO_CREDENTIAL_ID. #define DEFAULT_WIFI_ACCESS_POINT_PROFILE \ (sl_net_wifi_ap_profile_t) \ { \ @@ -124,7 +148,7 @@ .rate_protocol = SL_WIFI_RATE_PROTOCOL_AUTO, \ .options = 0, \ .credential_id = SL_NET_DEFAULT_WIFI_AP_CREDENTIAL_ID, \ - .keepalive_type = SL_SI91X_AP_NULL_BASED_KEEP_ALIVE, \ + .keepalive_type = SL_WIFI_AP_NULL_BASED_KEEP_ALIVE, \ .beacon_interval = 100, \ .client_idle_timeout = 0xFF, \ .dtim_beacon_count = 3, \ @@ -138,9 +162,24 @@ .type = SL_IPV4, \ .host_name = NULL, \ .ip = { \ - .v4.ip_address.value = DEFAULT_WIFI_MODULE_IP_ADDRESS, \ - .v4.gateway.value = DEFAULT_WIFI_GATEWAY_ADDRESS, \ - .v4.netmask.value = DEFAULT_WIFI_SN_MASK_ADDRESS \ + .v4 = { \ + .ip_address.value = DEFAULT_WIFI_MODULE_IP_ADDRESS, \ + .gateway.value = DEFAULT_WIFI_GATEWAY_ADDRESS, \ + .netmask.value = DEFAULT_WIFI_SN_MASK_ADDRESS, \ + }, \ + .v6 = { \ + .link_local_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .global_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .gateway = { .value = { 0u, 0u, 0u, 0u } }, \ + }, \ + }, \ + .dhcp_config = { \ + .min_discover_retry_interval = 0, \ + .max_discover_retry_interval = 0, \ + .min_request_retry_interval = 0, \ + .max_request_retry_interval = 0, \ + .max_discover_retries = 0, \ + .max_request_retries = 0, \ }, \ } \ } @@ -159,3 +198,4 @@ static sl_net_wifi_psk_credential_entry_t default_wifi_ap_credential = { .type = // Restore GCC diagnostics #pragma GCC diagnostic pop #endif + diff --git a/board-support/si91x/siwx917/BRD4342A/config/pin_config.h b/board-support/si91x/siwx917/BRD4342A/config/pin_config.h index a2f221f4c..5deef8c57 100644 --- a/board-support/si91x/siwx917/BRD4342A/config/pin_config.h +++ b/board-support/si91x/siwx917/BRD4342A/config/pin_config.h @@ -139,6 +139,9 @@ // $[QEI] // [QEI]$ +// $[SDIO] +// [SDIO]$ + // $[HSPI_SECONDARY] // [HSPI_SECONDARY]$ @@ -163,6 +166,9 @@ // $[SDC_CH4] // [SDC_CH4]$ +// $[MCU_CLK_OUT] +// [MCU_CLK_OUT]$ + // $[CUSTOM_PIN_NAME] #ifndef _PORT #define _PORT 0 diff --git a/board-support/si91x/siwx917/BRD4342A/config/sl_gpio_board.h b/board-support/si91x/siwx917/BRD4342A/config/sl_gpio_board.h index ca5edc875..02a7003b4 100644 --- a/board-support/si91x/siwx917/BRD4342A/config/sl_gpio_board.h +++ b/board-support/si91x/siwx917/BRD4342A/config/sl_gpio_board.h @@ -29,6 +29,7 @@ extern "C" { * @{ */ #include "em_device.h" +#include "sl_si91x_gpio_hp_pin_config.h" #define SL_SI91X_GPIO_6_PORT RTE_GPIO_6_PORT #define SL_SI91X_GPIO_6_PAD RTE_GPIO_6_PAD diff --git a/board-support/si91x/siwx917/BRD4342A/config/sl_memory_manager_config.h b/board-support/si91x/siwx917/BRD4342A/config/sl_memory_manager_config.h index 26b84b107..f6deb4485 100644 --- a/board-support/si91x/siwx917/BRD4342A/config/sl_memory_manager_config.h +++ b/board-support/si91x/siwx917/BRD4342A/config/sl_memory_manager_config.h @@ -47,8 +47,29 @@ // Default: 1 #define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 +// Enables the double free protection for the pool. +// Setting this configuration to 0 will disable the double free protection for the memory pool. saving ~100 bytes of code. +// This setting has no effect on the memory pools power aware version. +// Default: 1 +#define SL_MEMORY_MANAGER_POOL_DOUBLE_FREE_PROTECTION_ENABLE 1 + // // <<< end of configuration section >>> +// Keep this configuration outside the configuration section until the feature is ready for release. +// Enables the heap fallback mechanism. +// Setting this configuration to 0 will disable the fallback mechanism on DTCM and PSRAM. +// If this configuration is disabled, the memory manager will not attempt to use alternative memory regions for allocations even if using the fallback parameters. +// Default: 1 +#define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 + +// Enables retention statistics (retained size, retained high watermark, bank counts). +// Requires bank-retention hardware on the target; SL_CATALOG_BANK_RETENTION_CONTROL_* is defined only for devices that implement it (not every part or kit). +// Software configuration alone cannot add bank retention where the silicon has no such feature. +// Independent of heap statistics (SL_MEMORY_MANAGER_STATISTICS_API_ENABLE). +// When disabled, retention getters return (size_t)-1 or SL_STATUS_NOT_AVAILABLE. +// Default: 0. +#define SL_MEMORY_MANAGER_STATISTICS_RETENTION_ENABLE 0 + #endif /* SL_MEMORY_MANAGER_CONFIG_H */ diff --git a/board-support/si91x/siwx917/BRD4342A/config/sl_net_default_values.h b/board-support/si91x/siwx917/BRD4342A/config/sl_net_default_values.h index cd4d5b936..437f5dca9 100644 --- a/board-support/si91x/siwx917/BRD4342A/config/sl_net_default_values.h +++ b/board-support/si91x/siwx917/BRD4342A/config/sl_net_default_values.h @@ -85,6 +85,7 @@ #define DEFAULT_WIFI_GATEWAY_ADDRESS 0x0A0AA8C0 #endif +//For open security networks (SL_WIFI_OPEN), use SL_WIFI_NO_CREDENTIAL_ID. #define DEFAULT_WIFI_CLIENT_PROFILE \ (sl_net_wifi_client_profile_t) \ { \ @@ -100,16 +101,39 @@ .security = DEFAULT_WIFI_CLIENT_SECURITY_TYPE, \ .encryption = DEFAULT_WIFI_CLIENT_ENCRYPTION_TYPE, \ .client_options = 0, \ - .credential_id = SL_NET_DEFAULT_WIFI_CLIENT_CREDENTIAL_ID, \ + .credential_id = (DEFAULT_WIFI_CLIENT_SECURITY_TYPE == SL_WIFI_OPEN) ? \ + SL_WIFI_NO_CREDENTIAL_ID : \ + SL_NET_DEFAULT_WIFI_CLIENT_CREDENTIAL_ID, \ }, \ .ip = { \ .mode = SL_IP_MANAGEMENT_DHCP, \ .type = REQUIRED_IP_TYPE, \ .host_name = NULL, \ - .ip = {{{0}}}, \ - } \ + .ip = { \ + .v4 = { \ + .ip_address = { .value = 0u }, \ + .gateway = { .value = 0u }, \ + .netmask = { .value = 0u }, \ + }, \ + .v6 = { \ + .link_local_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .global_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .gateway = { .value = { 0u, 0u, 0u, 0u } }, \ + }, \ + }, \ + .dhcp_config = { \ + .min_discover_retry_interval = 0, \ + .max_discover_retry_interval = 0, \ + .min_request_retry_interval = 0, \ + .max_request_retry_interval = 0, \ + .max_discover_retries = 0, \ + .max_request_retries = 0, \ + }, \ + }, \ + .priority = 0 \ } +//For open security networks (SL_WIFI_OPEN), use SL_WIFI_NO_CREDENTIAL_ID. #define DEFAULT_WIFI_ACCESS_POINT_PROFILE \ (sl_net_wifi_ap_profile_t) \ { \ @@ -124,7 +148,7 @@ .rate_protocol = SL_WIFI_RATE_PROTOCOL_AUTO, \ .options = 0, \ .credential_id = SL_NET_DEFAULT_WIFI_AP_CREDENTIAL_ID, \ - .keepalive_type = SL_SI91X_AP_NULL_BASED_KEEP_ALIVE, \ + .keepalive_type = SL_WIFI_AP_NULL_BASED_KEEP_ALIVE, \ .beacon_interval = 100, \ .client_idle_timeout = 0xFF, \ .dtim_beacon_count = 3, \ @@ -138,9 +162,24 @@ .type = SL_IPV4, \ .host_name = NULL, \ .ip = { \ - .v4.ip_address.value = DEFAULT_WIFI_MODULE_IP_ADDRESS, \ - .v4.gateway.value = DEFAULT_WIFI_GATEWAY_ADDRESS, \ - .v4.netmask.value = DEFAULT_WIFI_SN_MASK_ADDRESS \ + .v4 = { \ + .ip_address.value = DEFAULT_WIFI_MODULE_IP_ADDRESS, \ + .gateway.value = DEFAULT_WIFI_GATEWAY_ADDRESS, \ + .netmask.value = DEFAULT_WIFI_SN_MASK_ADDRESS, \ + }, \ + .v6 = { \ + .link_local_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .global_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .gateway = { .value = { 0u, 0u, 0u, 0u } }, \ + }, \ + }, \ + .dhcp_config = { \ + .min_discover_retry_interval = 0, \ + .max_discover_retry_interval = 0, \ + .min_request_retry_interval = 0, \ + .max_request_retry_interval = 0, \ + .max_discover_retries = 0, \ + .max_request_retries = 0, \ }, \ } \ } diff --git a/board-support/si91x/siwx917/BRD4343A/config/pin_config.h b/board-support/si91x/siwx917/BRD4343A/config/pin_config.h index a2f221f4c..5deef8c57 100644 --- a/board-support/si91x/siwx917/BRD4343A/config/pin_config.h +++ b/board-support/si91x/siwx917/BRD4343A/config/pin_config.h @@ -139,6 +139,9 @@ // $[QEI] // [QEI]$ +// $[SDIO] +// [SDIO]$ + // $[HSPI_SECONDARY] // [HSPI_SECONDARY]$ @@ -163,6 +166,9 @@ // $[SDC_CH4] // [SDC_CH4]$ +// $[MCU_CLK_OUT] +// [MCU_CLK_OUT]$ + // $[CUSTOM_PIN_NAME] #ifndef _PORT #define _PORT 0 diff --git a/board-support/si91x/siwx917/BRD4343A/config/sl_gpio_board.h b/board-support/si91x/siwx917/BRD4343A/config/sl_gpio_board.h index ca5edc875..02a7003b4 100644 --- a/board-support/si91x/siwx917/BRD4343A/config/sl_gpio_board.h +++ b/board-support/si91x/siwx917/BRD4343A/config/sl_gpio_board.h @@ -29,6 +29,7 @@ extern "C" { * @{ */ #include "em_device.h" +#include "sl_si91x_gpio_hp_pin_config.h" #define SL_SI91X_GPIO_6_PORT RTE_GPIO_6_PORT #define SL_SI91X_GPIO_6_PAD RTE_GPIO_6_PAD diff --git a/board-support/si91x/siwx917/BRD4343A/config/sl_memory_manager_config.h b/board-support/si91x/siwx917/BRD4343A/config/sl_memory_manager_config.h index 26b84b107..f6deb4485 100644 --- a/board-support/si91x/siwx917/BRD4343A/config/sl_memory_manager_config.h +++ b/board-support/si91x/siwx917/BRD4343A/config/sl_memory_manager_config.h @@ -47,8 +47,29 @@ // Default: 1 #define SL_MEMORY_MANAGER_STATISTICS_API_ENABLE 1 +// Enables the double free protection for the pool. +// Setting this configuration to 0 will disable the double free protection for the memory pool. saving ~100 bytes of code. +// This setting has no effect on the memory pools power aware version. +// Default: 1 +#define SL_MEMORY_MANAGER_POOL_DOUBLE_FREE_PROTECTION_ENABLE 1 + // // <<< end of configuration section >>> +// Keep this configuration outside the configuration section until the feature is ready for release. +// Enables the heap fallback mechanism. +// Setting this configuration to 0 will disable the fallback mechanism on DTCM and PSRAM. +// If this configuration is disabled, the memory manager will not attempt to use alternative memory regions for allocations even if using the fallback parameters. +// Default: 1 +#define SL_MEMORY_MANAGER_HEAP_FALLBACK_EN 1 + +// Enables retention statistics (retained size, retained high watermark, bank counts). +// Requires bank-retention hardware on the target; SL_CATALOG_BANK_RETENTION_CONTROL_* is defined only for devices that implement it (not every part or kit). +// Software configuration alone cannot add bank retention where the silicon has no such feature. +// Independent of heap statistics (SL_MEMORY_MANAGER_STATISTICS_API_ENABLE). +// When disabled, retention getters return (size_t)-1 or SL_STATUS_NOT_AVAILABLE. +// Default: 0. +#define SL_MEMORY_MANAGER_STATISTICS_RETENTION_ENABLE 0 + #endif /* SL_MEMORY_MANAGER_CONFIG_H */ diff --git a/board-support/si91x/siwx917/BRD4343A/config/sl_net_default_values.h b/board-support/si91x/siwx917/BRD4343A/config/sl_net_default_values.h index cd4d5b936..437f5dca9 100644 --- a/board-support/si91x/siwx917/BRD4343A/config/sl_net_default_values.h +++ b/board-support/si91x/siwx917/BRD4343A/config/sl_net_default_values.h @@ -85,6 +85,7 @@ #define DEFAULT_WIFI_GATEWAY_ADDRESS 0x0A0AA8C0 #endif +//For open security networks (SL_WIFI_OPEN), use SL_WIFI_NO_CREDENTIAL_ID. #define DEFAULT_WIFI_CLIENT_PROFILE \ (sl_net_wifi_client_profile_t) \ { \ @@ -100,16 +101,39 @@ .security = DEFAULT_WIFI_CLIENT_SECURITY_TYPE, \ .encryption = DEFAULT_WIFI_CLIENT_ENCRYPTION_TYPE, \ .client_options = 0, \ - .credential_id = SL_NET_DEFAULT_WIFI_CLIENT_CREDENTIAL_ID, \ + .credential_id = (DEFAULT_WIFI_CLIENT_SECURITY_TYPE == SL_WIFI_OPEN) ? \ + SL_WIFI_NO_CREDENTIAL_ID : \ + SL_NET_DEFAULT_WIFI_CLIENT_CREDENTIAL_ID, \ }, \ .ip = { \ .mode = SL_IP_MANAGEMENT_DHCP, \ .type = REQUIRED_IP_TYPE, \ .host_name = NULL, \ - .ip = {{{0}}}, \ - } \ + .ip = { \ + .v4 = { \ + .ip_address = { .value = 0u }, \ + .gateway = { .value = 0u }, \ + .netmask = { .value = 0u }, \ + }, \ + .v6 = { \ + .link_local_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .global_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .gateway = { .value = { 0u, 0u, 0u, 0u } }, \ + }, \ + }, \ + .dhcp_config = { \ + .min_discover_retry_interval = 0, \ + .max_discover_retry_interval = 0, \ + .min_request_retry_interval = 0, \ + .max_request_retry_interval = 0, \ + .max_discover_retries = 0, \ + .max_request_retries = 0, \ + }, \ + }, \ + .priority = 0 \ } +//For open security networks (SL_WIFI_OPEN), use SL_WIFI_NO_CREDENTIAL_ID. #define DEFAULT_WIFI_ACCESS_POINT_PROFILE \ (sl_net_wifi_ap_profile_t) \ { \ @@ -124,7 +148,7 @@ .rate_protocol = SL_WIFI_RATE_PROTOCOL_AUTO, \ .options = 0, \ .credential_id = SL_NET_DEFAULT_WIFI_AP_CREDENTIAL_ID, \ - .keepalive_type = SL_SI91X_AP_NULL_BASED_KEEP_ALIVE, \ + .keepalive_type = SL_WIFI_AP_NULL_BASED_KEEP_ALIVE, \ .beacon_interval = 100, \ .client_idle_timeout = 0xFF, \ .dtim_beacon_count = 3, \ @@ -138,9 +162,24 @@ .type = SL_IPV4, \ .host_name = NULL, \ .ip = { \ - .v4.ip_address.value = DEFAULT_WIFI_MODULE_IP_ADDRESS, \ - .v4.gateway.value = DEFAULT_WIFI_GATEWAY_ADDRESS, \ - .v4.netmask.value = DEFAULT_WIFI_SN_MASK_ADDRESS \ + .v4 = { \ + .ip_address.value = DEFAULT_WIFI_MODULE_IP_ADDRESS, \ + .gateway.value = DEFAULT_WIFI_GATEWAY_ADDRESS, \ + .netmask.value = DEFAULT_WIFI_SN_MASK_ADDRESS, \ + }, \ + .v6 = { \ + .link_local_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .global_address = { .value = { 0u, 0u, 0u, 0u } }, \ + .gateway = { .value = { 0u, 0u, 0u, 0u } }, \ + }, \ + }, \ + .dhcp_config = { \ + .min_discover_retry_interval = 0, \ + .max_discover_retry_interval = 0, \ + .min_request_retry_interval = 0, \ + .max_request_retry_interval = 0, \ + .max_discover_retries = 0, \ + .max_request_retries = 0, \ }, \ } \ }