Skip to content

Commit

Permalink
Update 917 gen files. Update efr32 gen files with clock manager and m…
Browse files Browse the repository at this point in the history
…emory manager
  • Loading branch information
jmartinez-silabs committed Jun 23, 2024
1 parent 4d99b2f commit c1b1873
Show file tree
Hide file tree
Showing 215 changed files with 14,849 additions and 4,671 deletions.
34 changes: 34 additions & 0 deletions matter/efr32/efr32mg24/BRD2601B/autogen/sl_board_default_init.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/***************************************************************************//**
* @file
* @brief Board Default Init
*******************************************************************************
* # License
* <b>Copyright 2020 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
*
* The licensor of this software is Silicon Laboratories Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
******************************************************************************/
#include "sl_board_control.h"

void sl_board_default_init(void)
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
#define SL_CATALOG_BLUETOOTH_RTOS_ADAPTATION_PRESENT
#define SL_CATALOG_BLUETOOTH_PRESENT
#define SL_CATALOG_BLUETOOTH_FEATURE_MULTIPROTOCOL_PRESENT
#define SL_CATALOG_CLOCK_MANAGER_PRESENT
#define SL_CATALOG_CMSIS_OS_COMMON_PRESENT
#define SL_CATALOG_DEVICE_INIT_PRESENT
#define SL_CATALOG_DEVICE_INIT_CORE_PRESENT
#define SL_CATALOG_DEVICE_INIT_DPLL_PRESENT
#define SL_CATALOG_DEVICE_INIT_HFXO_PRESENT
#define SL_CATALOG_DEVICE_INIT_DCDC_PRESENT
#define SL_CATALOG_EMLIB_CORE_PRESENT
#define SL_CATALOG_EMLIB_CORE_DEBUG_CONFIG_PRESENT
#define SL_CATALOG_EMLIB_RMU_PRESENT
Expand Down
15 changes: 9 additions & 6 deletions matter/efr32/efr32mg24/BRD2601B/autogen/sl_event_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

#include "em_chip.h"
#include "sl_interrupt_manager.h"
#include "sl_board_init.h"
#include "sl_clock_manager_init.h"
#include "sl_device_init_dcdc.h"
#include "sl_clock_manager.h"
#include "sl_hfxo_manager.h"
#include "sl_device_init_hfxo.h"
#include "sl_device_init_dpll.h"
#include "SEGGER_RTT.h"
#include "sl_memory_manager.h"
#include "pa_conversions_efr32.h"
#include "sl_rail_util_power_manager_init.h"
#include "sl_rail_util_pti.h"
#include "sl_board_control.h"
#include "sl_bt_rtos_adaptation.h"
#include "sl_sleeptimer.h"
#include "gpiointerrupt.h"
Expand All @@ -36,12 +37,13 @@ void sl_platform_init(void)
{
CHIP_Init();
sl_interrupt_manager_init();
sl_board_preinit();
sl_clock_manager_init();
sl_device_init_dcdc();
sl_clock_manager_runtime_init();
sl_hfxo_manager_init_hardware();
sl_device_init_hfxo();
sl_device_init_dpll();
SEGGER_RTT_Init();
sl_memory_init();
sl_board_init();
nvm3_initDefault();
osKernelInitialize();
sl_power_manager_init();
Expand All @@ -66,6 +68,7 @@ void sl_driver_init(void)

void sl_service_init(void)
{
sl_board_configure_vcom();
sl_sleeptimer_init();
sl_hfxo_manager_init();
sl_mbedtls_init();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/***************************************************************************//**
* @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 >>>
// <h> Memory Manager Configuration

// <o BUFFER_POOL_ALLOCATOR_POOL_SIZE> Number Buffer Pools
// <0-256:1>
// <i> Default: 5
#define BUFFER_POOL_ALLOCATOR_POOL_SIZE 5

// <o BUFFER_POOL_ALLOCATOR_BUFFER_SIZE_MAX> Length of Each Buffer Pool
// <0-1024:1>
// <i> Default: 256
#define BUFFER_POOL_ALLOCATOR_BUFFER_SIZE_MAX 256

// <q BUFFER_POOL_ALLOCATOR_CLEAR_ON_INIT> Clear Each Newly Allocated Buffer
#define BUFFER_POOL_ALLOCATOR_CLEAR_ON_INIT 0

// </h>
// <<< end of configuration section >>>

#endif // __BUFFER_POOL_ALLOCATOR_CONFIG_H__
23 changes: 23 additions & 0 deletions matter/efr32/efr32mg24/BRD2601B/config/circular_queue_config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/***************************************************************************//**
* @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 >>>
// <h> Circular Queue Configuration

// <o CIRCULAR_QUEUE_LEN_MAX> Max Queue Length
// <0-256:1>
// <i> Default: 5
#ifndef CIRCULAR_QUEUE_LEN_MAX
#define CIRCULAR_QUEUE_LEN_MAX 16
#endif

// </h>
// <<< end of configuration section >>>

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

#ifndef SL_BOARD_CONTROL_CONFIG_H
#define SL_BOARD_CONTROL_CONFIG_H

// <<< Use Configuration Wizard in Context Menu >>>

// <q SL_BOARD_ENABLE_SENSOR_RHT> Enable Relative Humidity and Temperature sensor
// <i> Default: 0
#define SL_BOARD_ENABLE_SENSOR_RHT 0

// <q SL_BOARD_ENABLE_SENSOR_HALL> Enable Hall Effect sensor
// <i> Default: 0
#define SL_BOARD_ENABLE_SENSOR_HALL 0

// <q SL_BOARD_ENABLE_SENSOR_PRESSURE> Enable Barometric Pressure sensor
// <i> Default: 0
#define SL_BOARD_ENABLE_SENSOR_PRESSURE 0

// <q SL_BOARD_ENABLE_SENSOR_LIGHT> Enable Light sensor
// <i> Default: 0
#define SL_BOARD_ENABLE_SENSOR_LIGHT 0

// <q SL_BOARD_ENABLE_SENSOR_IMU> Enable Inertial Measurement Unit
// <i> Default: 0
#define SL_BOARD_ENABLE_SENSOR_IMU 0

// <q SL_BOARD_ENABLE_SENSOR_MICROPHONE> Enable Microphone
// <i> Default: 0
#define SL_BOARD_ENABLE_SENSOR_MICROPHONE 0

// <q SL_BOARD_DISABLE_MEMORY_SPI> Disable SPI Flash
// <i> Default: 1
#define SL_BOARD_DISABLE_MEMORY_SPI 1

// <<< end of configuration section >>>

// <<< sl:start pin_tool >>>

// <gpio> SL_BOARD_ENABLE_SENSOR_RHT
// $[GPIO_SL_BOARD_ENABLE_SENSOR_RHT]
#define SL_BOARD_ENABLE_SENSOR_RHT_PORT gpioPortC
#define SL_BOARD_ENABLE_SENSOR_RHT_PIN 9
// [GPIO_SL_BOARD_ENABLE_SENSOR_RHT]$

// <gpio> SL_BOARD_ENABLE_SENSOR_HALL
// $[GPIO_SL_BOARD_ENABLE_SENSOR_HALL]
#define SL_BOARD_ENABLE_SENSOR_HALL_PORT gpioPortC
#define SL_BOARD_ENABLE_SENSOR_HALL_PIN 9
// [GPIO_SL_BOARD_ENABLE_SENSOR_HALL]$

// <gpio> SL_BOARD_ENABLE_SENSOR_PRESSURE
// $[GPIO_SL_BOARD_ENABLE_SENSOR_PRESSURE]
#define SL_BOARD_ENABLE_SENSOR_PRESSURE_PORT gpioPortC
#define SL_BOARD_ENABLE_SENSOR_PRESSURE_PIN 9
// [GPIO_SL_BOARD_ENABLE_SENSOR_PRESSURE]$

// <gpio> SL_BOARD_ENABLE_SENSOR_LIGHT
// $[GPIO_SL_BOARD_ENABLE_SENSOR_LIGHT]
#define SL_BOARD_ENABLE_SENSOR_LIGHT_PORT gpioPortC
#define SL_BOARD_ENABLE_SENSOR_LIGHT_PIN 9
// [GPIO_SL_BOARD_ENABLE_SENSOR_LIGHT]$

// <gpio> SL_BOARD_ENABLE_SENSOR_IMU
// $[GPIO_SL_BOARD_ENABLE_SENSOR_IMU]
#define SL_BOARD_ENABLE_SENSOR_IMU_PORT gpioPortC
#define SL_BOARD_ENABLE_SENSOR_IMU_PIN 9
// [GPIO_SL_BOARD_ENABLE_SENSOR_IMU]$

// <gpio> SL_BOARD_ENABLE_SENSOR_MICROPHONE
// $[GPIO_SL_BOARD_ENABLE_SENSOR_MICROPHONE]
#define SL_BOARD_ENABLE_SENSOR_MICROPHONE_PORT gpioPortC
#define SL_BOARD_ENABLE_SENSOR_MICROPHONE_PIN 8
// [GPIO_SL_BOARD_ENABLE_SENSOR_MICROPHONE]$

// <<< sl:end pin_tool >>>

#endif // SL_BOARD_CONTROL_CONFIG_H
Loading

0 comments on commit c1b1873

Please sign in to comment.