minor clean up

This commit is contained in:
hathach committed 2019-01-31 02:36:27 +07:00
1 parent 6dd7918cc9
commit e40181e3e5
2 files changed
+9

No files matched your search

+2
View File
@@ -63,6 +63,8 @@ void usb_init(void)
nrfx_power_usbevt_enable();
NVIC_SetPriority(USBD_IRQn, 2);
// USB power may already be ready at this time -> no event generated
// We need to invoke the handler based on the status initially
uint32_t usb_reg = NRF_POWER->USBREGSTATUS;
+7
View File
@@ -147,6 +147,11 @@ class AdafruitBluefruit
bool setApperance (uint16_t appear);
uint16_t getApperance (void);
ble_gap_sec_params_t getSecureParam(void)
{
return _sec_param;
}
void autoConnLed (bool enabled);
void setConnLedInterval (uint32_t ms);
@@ -200,6 +205,8 @@ class AdafruitBluefruit
int8_t _tx_power;
ble_gap_sec_params_t _sec_param;
SemaphoreHandle_t _ble_event_sem;
SemaphoreHandle_t _soc_event_sem;