Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed Jun 22, 2024
1 parent 7a4a18d commit 9bd6ca4
Show file tree
Hide file tree
Showing 31 changed files with 2,536 additions and 2,497 deletions.
13 changes: 6 additions & 7 deletions matter/si91x/siwx917/BRD4338A/autogen/RTE_Components.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// This file is autogenerated by Simplicity Configuration Tools.
// The contents of this file will be replaced in their entirety upon regeneration.
//
// 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"
#define CMSIS_device_header "em_device.h"

/* components are auto-generated here */

Expand All @@ -24,11 +24,10 @@

#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. */
/* The contents of this file will be replaced in their entirety upon
* regeneration. */
/* */
/* Source template file: RTE_Components.h.jinja */

44 changes: 15 additions & 29 deletions matter/si91x/siwx917/BRD4338A/autogen/sl_event_handler.c
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
#include "sl_event_handler.h"

#include "system_si91x.h"
#include "rsi_nvic_priorities_config.h"
#include "sli_siwx917_soc.h"
#include "SEGGER_RTT.h"
#include "cmsis_os2.h"
#include "rsi_board.h"
#include "rsi_debug.h"
#include "SEGGER_RTT.h"
#include "sl_sleeptimer.h"
#include "rsi_nvic_priorities_config.h"
#include "sl_iostream_init_instances.h"
#include "sl_iostream_rtt.h"
#include "sl_si91x_button_instances.h"
#include "sl_si91x_led_instances.h"
#include "sl_sleeptimer.h"
#include "sl_ulp_timer_instances.h"
#include "sl_iostream_rtt.h"
#include "cmsis_os2.h"
#include "sl_iostream_init_instances.h"
#include "sli_siwx917_soc.h"
#include "system_si91x.h"

void sl_platform_init(void)
{
void sl_platform_init(void) {
SystemCoreClockUpdate();
sl_si91x_device_init_nvic();
sli_si91x_platform_init();
Expand All @@ -27,35 +26,22 @@ void sl_platform_init(void)
osKernelInitialize();
}

void sl_kernel_start(void)
{
osKernelStart();
}
void sl_kernel_start(void) { osKernelStart(); }

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

void sl_service_init(void)
{
void sl_service_init(void) {
#ifdef DISPLAY_ENABLED
sl_sleeptimer_init();
#endif
sl_iostream_init_instances();
}

void sl_stack_init(void)
{
}
void sl_stack_init(void) {}

void sl_internal_app_init(void)
{
}

void sl_iostream_init_instances(void)
{
sl_iostream_rtt_init();
}
void sl_internal_app_init(void) {}

void sl_iostream_init_instances(void) { sl_iostream_rtt_init(); }
20 changes: 10 additions & 10 deletions matter/si91x/siwx917/BRD4338A/autogen/sl_iostream_handles.c
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
#include "sl_iostream.h"
#include "sl_iostream_handles.h"
#include "sl_iostream.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]);
const uint32_t sl_iostream_instances_count =
sizeof(sl_iostream_instances_info) / sizeof(sl_iostream_instances_info[0]);

/***************************************************************************//**
* Get iostream instance handle for a given name
*
* @return Instance handle if it exist, NULL otherwise.
******************************************************************************/
sl_iostream_t *sl_iostream_get_handle(char *name)
{
/***************************************************************************/ /**
* Get iostream instance handle for a given name
*
* @return Instance handle if it exist, NULL otherwise.
******************************************************************************/
sl_iostream_t *sl_iostream_get_handle(char *name) {
for (uint32_t i = 0; i < sl_iostream_instances_count; i++) {
if (strcmp(sl_iostream_instances_info[i]->name, name) == 0) {
return sl_iostream_instances_info[i]->handle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "sl_iostream.h"
#include "sl_iostream_rtt.h"


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

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

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

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

#ifndef SL_SI91X_BUTTON_INSTANCES_H
#define SL_SI91X_BUTTON_INSTANCES_H
Expand All @@ -36,7 +36,6 @@
extern const sl_button_t button_btn0;
extern const sl_button_t button_btn1;


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

Expand Down
Loading

0 comments on commit 9bd6ca4

Please sign in to comment.