Skip to content

Commit

Permalink
Clean up code formatting and comments in WiseMcuSpam.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
rosahay-silabs committed Dec 16, 2024
1 parent bf9ebd4 commit 2c13564
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/platform/silabs/platformAbstraction/WiseMcuSpam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ extern "C" {
#ifdef SL_CATALOG_SIMPLE_BUTTON_PRESENT
#include "sl_si91x_button.h"
#include "sl_si91x_button_pin_config.h"
#endif //SL_CATALOG_SIMPLE_BUTTON_PRESENT
#endif // SL_CATALOG_SIMPLE_BUTTON_PRESENT

#ifdef ENABLE_WSTK_LEDS
#if (defined(SL_MATTER_RGB_LED_ENABLED) && SL_MATTER_RGB_LED_ENABLED == 1)
#include "sl_si91x_rgb_led.h"
#include "sl_si91x_rgb_led_config.h"
#include "sl_si91x_rgb_led_instances.h"
#define SL_LED_COUNT SL_SI91X_RGB_LED_COUNT
const sl_rgb_led_t *ledPinArray[SL_LED_COUNT] = { &led_led0 };
const sl_rgb_led_t * ledPinArray[SL_LED_COUNT] = { &led_led0 };
#define SL_RGB_LED_INSTANCE(n) (ledPinArray[n])
#else
#include "sl_si91x_led.h"
Expand All @@ -71,15 +71,14 @@ void soc_pll_config(void);
#include "uart.h"
#endif


namespace chip {
namespace DeviceLayer {
namespace Silabs {
namespace {

#ifdef SL_CATALOG_SIMPLE_BUTTON_PRESENT
uint8_t sButtonStates[SL_SI91x_BUTTON_COUNT] = { 0 };
#endif //SL_CATALOG_SIMPLE_BUTTON_PRESENT
#endif // SL_CATALOG_SIMPLE_BUTTON_PRESENT

#if CHIP_CONFIG_ENABLE_ICD_SERVER
bool btn0_pressed = false;
Expand All @@ -96,10 +95,10 @@ CHIP_ERROR SilabsPlatform::Init(void)
// TODO: Setting the highest priority for SVCall_IRQn to avoid the HardFault issue
NVIC_SetPriority(SVCall_IRQn, CORE_INTERRUPT_HIGHEST_PRIORITY);

#if CHIP_CONFIG_ENABLE_ICD_SERVER == 0
#if (CHIP_CONFIG_ENABLE_ICD_SERVER == 0) && (SL_PROVISION_GENERATOR == 0)
// Configuration the clock rate
soc_pll_config();
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
#endif // !CHIP_CONFIG_ENABLE_ICD_SERVER && !SL_PROVISION_GENERATOR

#if SILABS_LOG_ENABLED
silabsInitLog();
Expand Down

0 comments on commit 2c13564

Please sign in to comment.