BLE Connectivity application.
More...
#define APP_TIMER_PRESCALER 0 |
Value of the RTC1 PRESCALER register.
#define APP_TIMER_MAX_TIMERS 1 |
Maximum number of simultaneously created timers.
#define APP_TIMER_OP_QUEUE_SIZE 1 |
Size of timer operation queues.
#define APP_GPIOTE_MAX_USERS 1 |
Maximum number of users of the GPIOTE handler. In this example the GPIOTE user is: UART Module used by HCI Transport layer.
#define SCHED_QUEUE_SIZE 10u |
Maximum number of events in the scheduler queue.
#define SCHED_MAX_EVENT_DATA_SIZE |
Value:MAX(sizeof(app_timer_event_t),\
Maximum size of scheduler events.
#define DEAD_BEEF 0xDEADBEEF |
Value used as error code on stack dump. Can be used to identify stack location on stack unwind.
void app_error_handler |
( |
uint32_t |
error_code, |
|
|
uint32_t |
line_num, |
|
|
const uint8_t * |
p_file_name |
|
) |
| |
Function for error handling, which is called when an error has occurred.
- Parameters
-
[in] | error_code | Error code supplied to the handler. |
[in] | line_num | Line number where the handler is called. |
[in] | p_file_name | Pointer to the file name. |
void assert_nrf_callback |
( |
uint16_t |
line_num, |
|
|
const uint8_t * |
p_file_name |
|
) |
| |
This function will be called if the ASSERT macro fails.
- Parameters
-
[in] | line_num | Line number of the failing ASSERT call. |
[in] | p_file_name | File name of the failing ASSERT call. |
Transfer the given event to the scheduler to be processed in thread mode.
- Parameters
-
[in] | event | RPC transport layer event. |
static void leds_init |
( |
void |
| ) |
|
|
static |
Initializes all LEDs used by this application.
- Parameters
-
[in] | result | TX done event result code. |