Skip to content

Commit

Permalink
fix restyle
Browse files Browse the repository at this point in the history
  • Loading branch information
wy-hh committed Jan 19, 2023
1 parent 0149f81 commit 04cf8ae
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 38 deletions.
2 changes: 1 addition & 1 deletion examples/lighting-app/bouffalolab/bl702/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ chip_enable_wifi = false
lwip_platform = "bl702"

chip_enable_ota_requestor = true
chip_detail_logging = false
chip_detail_logging = false
10 changes: 5 additions & 5 deletions examples/platform/bouffalolab/bl602/FreeRTOSConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@
#define configMAX_CO_ROUTINE_PRIORITIES (2)

/* Software timer definitions. */
#define configUSE_TIMERS 1
#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 2 )
#define configTIMER_QUEUE_LENGTH 10
#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE * 4 )
#define configUSE_TIMERS 1
#define configTIMER_TASK_PRIORITY (configMAX_PRIORITIES - 2)
#define configTIMER_QUEUE_LENGTH 10
#define configTIMER_TASK_STACK_DEPTH (configMINIMAL_STACK_SIZE * 4)

/* Task priorities. Allow these to be overridden. */
#ifndef uartPRIMARY_PRIORITY
Expand Down Expand Up @@ -217,7 +217,7 @@ extern "C" void vApplicationSleep(TickType_t xExpectedIdleTime);
#else
extern void vApplicationSleep(TickType_t xExpectedIdleTime);
#endif
#define portSUPPRESS_TICKS_AND_SLEEP(xExpectedIdleTime) vApplicationSleep(xExpectedIdleTime)
#define portSUPPRESS_TICKS_AND_SLEEP(xExpectedIdleTime) vApplicationSleep(xExpectedIdleTime)
#endif

#endif
9 changes: 4 additions & 5 deletions examples/platform/bouffalolab/bl702/FreeRTOSConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,10 @@
#define configMAX_CO_ROUTINE_PRIORITIES (2)

/* Software timer definitions. */
#define configUSE_TIMERS 1
#define configTIMER_TASK_PRIORITY (configMAX_PRIORITIES - 1)
#define configTIMER_QUEUE_LENGTH 4
#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE * 2 )

#define configUSE_TIMERS 1
#define configTIMER_TASK_PRIORITY (configMAX_PRIORITIES - 1)
#define configTIMER_QUEUE_LENGTH 4
#define configTIMER_TASK_STACK_DEPTH (configMINIMAL_STACK_SIZE * 2)

/* Task priorities. Allow these to be overridden. */
#ifndef uartPRIMARY_PRIORITY
Expand Down
8 changes: 4 additions & 4 deletions src/platform/bouffalolab/BL702/ThreadStackManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ CHIP_ERROR ThreadStackManagerImpl::InitThreadStack(otInstance * otInst)
{
CHIP_ERROR err = CHIP_NO_ERROR;
otRadio_opt_t opt;
opt.byte = 0;

opt.byte = 0;
opt.bf.isCoexEnable = true;

ot_alarmInit();
Expand Down Expand Up @@ -119,7 +119,7 @@ extern "C" void otPlatFree(void * aPtr)
free(aPtr);
}

extern "C" uint32_t otrEnterCrit(void)
extern "C" uint32_t otrEnterCrit(void)
{
if (xPortIsInsideInterrupt())
{
Expand Down Expand Up @@ -163,4 +163,4 @@ extern "C" void otrNotifyEvent(ot_system_event_t sevent)
otrExitCrit(tag);

otSysEventSignalPending();
}
}
46 changes: 23 additions & 23 deletions src/platform/bouffalolab/BL702/bl702Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,31 +53,31 @@ class BL702Config
static constexpr const char * kConfigKey_UniqueId = ("unique-id");

/** Config keys, which should be droped after a factory reset */
static constexpr const char * kConfigKey_FabricId = ("fabric-id");
static constexpr const char * kConfigKey_ServiceConfig = ("service-config");
static constexpr const char * kConfigKey_PairedAccountId = ("account-id");
static constexpr const char * kConfigKey_ServiceId = ("service-id");
static constexpr const char * kConfigKey_FabricSecret = ("fabric-secret");
static constexpr const char * kConfigKey_HardwareVersion = ("hardware-ver");
static constexpr const char * kConfigKey_LastUsedEpochKeyId = ("last-ek-id");
static constexpr const char * kConfigKey_FailSafeArmed = ("fail-safe-armed");
static constexpr const char * kConfigKey_WiFiStationSecType = ("sta-sec-type");
static constexpr const char * kConfigKey_OperationalDeviceId = ("op-device-id");
static constexpr const char * kConfigKey_OperationalDeviceCert = ("op-device-cert");
static constexpr const char * kConfigKey_OperationalDeviceICACerts = ("op-device-ca-certs");
static constexpr const char * kConfigKey_OperationalDevicePrivateKey = ("op-device-key");
static constexpr const char * kConfigKey_RegulatoryLocation = ("regulatory-location");
static constexpr const char * kConfigKey_CountryCode = ("country-code");
static constexpr const char * kConfigKey_ActiveLocale = ("active-locale");
static constexpr const char * kConfigKey_Breadcrumb = ("breadcrumb");
static constexpr const char * kConfigKey_GroupKeyIndex = ("group-key-index");
static constexpr const char * kBLConfigKey_wifissid = ("blConfig_wifi-ssid");
static constexpr const char * kBLConfigKey_wifipassword = ("blConfig_wifi-pwd");
static constexpr const char * kConfigKey_FabricId = ("fabric-id");
static constexpr const char * kConfigKey_ServiceConfig = ("service-config");
static constexpr const char * kConfigKey_PairedAccountId = ("account-id");
static constexpr const char * kConfigKey_ServiceId = ("service-id");
static constexpr const char * kConfigKey_FabricSecret = ("fabric-secret");
static constexpr const char * kConfigKey_HardwareVersion = ("hardware-ver");
static constexpr const char * kConfigKey_LastUsedEpochKeyId = ("last-ek-id");
static constexpr const char * kConfigKey_FailSafeArmed = ("fail-safe-armed");
static constexpr const char * kConfigKey_WiFiStationSecType = ("sta-sec-type");
static constexpr const char * kConfigKey_OperationalDeviceId = ("op-device-id");
static constexpr const char * kConfigKey_OperationalDeviceCert = ("op-device-cert");
static constexpr const char * kConfigKey_OperationalDeviceICACerts = ("op-device-ca-certs");
static constexpr const char * kConfigKey_OperationalDevicePrivateKey = ("op-device-key");
static constexpr const char * kConfigKey_RegulatoryLocation = ("regulatory-location");
static constexpr const char * kConfigKey_CountryCode = ("country-code");
static constexpr const char * kConfigKey_ActiveLocale = ("active-locale");
static constexpr const char * kConfigKey_Breadcrumb = ("breadcrumb");
static constexpr const char * kConfigKey_GroupKeyIndex = ("group-key-index");
static constexpr const char * kBLConfigKey_wifissid = ("blConfig_wifi-ssid");
static constexpr const char * kBLConfigKey_wifipassword = ("blConfig_wifi-pwd");

/** Counter Keys, diagnostic information */
static constexpr const char * kCounterKey_RebootCount = ("reboot-count");
static constexpr const char * kCounterKey_TotalOperationalHours = ("total-hours");
static constexpr const char * kCounterKey_UpTime = ("up-time");
static constexpr const char * kCounterKey_RebootCount = ("reboot-count");
static constexpr const char * kCounterKey_TotalOperationalHours = ("total-hours");
static constexpr const char * kCounterKey_UpTime = ("up-time");

static CHIP_ERROR Init(void);

Expand Down

0 comments on commit 04cf8ae

Please sign in to comment.