nRF51 SDK
|
Timer Example Application main file. More...
Macros | |
#define | TIMER_DELAY_MS (100UL) |
#define | GPIO_TOGGLE_PIN (8) |
Enumerations | |
enum | timer_t { TIMER0 = 0, TIMER1, TIMER2, TIMER0 = 0, TIMER1, TIMER2 } |
Functions | |
static void | nrf_timer_delay_ms (timer_t timer, uint_fast16_t volatile number_of_ms) |
Function for using the peripheral hardware timers to generate an event after requested number of milliseconds. More... | |
int | main (void) |
Function for main application entry. | |
static volatile NRF_TIMER_Type * | timer_init (timer_t timer) |
Function for timer initialization. | |
This file contains the source code for a sample application using Timer0, Timer1 and Timer2.
#define TIMER_DELAY_MS (100UL) |
Timer Delay in milli-seconds.
#define GPIO_TOGGLE_PIN (8) |
gpio pin to toggle after delay.
enum timer_t |
|
static |
[in] | timer | Timer to be used for delay, values from p_timer |
[in] | number_of_ms | Number of milliseconds the timer will count. |