white space diffs.
parent
cb99ef6070
commit
6086db38fd
|
@ -42,10 +42,8 @@
|
|||
#if NEED_BOND_MANAGER /* disabled by default */
|
||||
static void service_error_callback(uint32_t nrf_error);
|
||||
#endif
|
||||
extern "C" void assert_nrf_callback(uint16_t line_num, const uint8_t *p_file_name);
|
||||
void app_error_handler(uint32_t error_code,
|
||||
uint32_t line_num,
|
||||
const uint8_t *p_file_name);
|
||||
extern "C" void assert_nrf_callback(uint16_t line_num, const uint8_t *p_file_name);
|
||||
void app_error_handler(uint32_t error_code, uint32_t line_num, const uint8_t *p_file_name);
|
||||
|
||||
#if NEED_BOND_MANAGER /* disabled by default */
|
||||
static error_t bond_manager_init(void);
|
||||
|
|
|
@ -71,21 +71,12 @@ typedef void (*sys_evt_handler_t) (uint32_t evt_id);
|
|||
* reinitialization).
|
||||
*/
|
||||
/*lint -emacro(506, SOFTDEVICE_HANDLER_INIT) */ /* Suppress "Constant value Boolean */
|
||||
#define SOFTDEVICE_HANDLER_INIT(CLOCK_SOURCE, \
|
||||
USE_SCHEDULER) \
|
||||
#define SOFTDEVICE_HANDLER_INIT(CLOCK_SOURCE, USE_SCHEDULER) \
|
||||
do \
|
||||
{ \
|
||||
static uint32_t EVT_BUFFER[CEIL_DIV(MAX( \
|
||||
MAX(BLE_STACK_EVT_MSG_BUF_SIZE, \
|
||||
ANT_STACK_EVT_STRUCT_SIZE), \
|
||||
SYS_EVT_MSG_BUF_SIZE \
|
||||
), \
|
||||
sizeof(uint32_t))]; \
|
||||
static uint32_t EVT_BUFFER[CEIL_DIV(MAX(MAX(BLE_STACK_EVT_MSG_BUF_SIZE, ANT_STACK_EVT_STRUCT_SIZE), SYS_EVT_MSG_BUF_SIZE), sizeof(uint32_t))]; \
|
||||
uint32_t ERR_CODE; \
|
||||
ERR_CODE = softdevice_handler_init((CLOCK_SOURCE), \
|
||||
EVT_BUFFER, \
|
||||
sizeof(EVT_BUFFER), \
|
||||
(USE_SCHEDULER) ? softdevice_evt_schedule : NULL); \
|
||||
ERR_CODE = softdevice_handler_init((CLOCK_SOURCE), EVT_BUFFER, sizeof(EVT_BUFFER), (USE_SCHEDULER) ? softdevice_evt_schedule : NULL); \
|
||||
APP_ERROR_CHECK(ERR_CODE); \
|
||||
} while (0)
|
||||
|
||||
|
|
Loading…
Reference in New Issue