nRF51 SDK
|
GPIOTE Example Application main file. More...
Macros | |
#define | GPIO_OUTPUT_PIN_NUMBER 8 |
#define | GPIOTE_CHANNEL_NUMBER 0 |
Functions | |
static void | gpiote_init (void) |
Function for initializing the GPIO Tasks and Events peripheral. | |
static void | ppi_init (void) |
Function for initializing Programmable Peripheral Interconnect (PPI) peripheral. The PPI is needed to convert the timer event into a task. | |
static void | timer0_init (void) |
Function for initializing the Timer 0 peripheral. | |
int | main (void) |
Function for application main entry. | |
This file contains the source code for a sample application using GPIOTE.
#define GPIO_OUTPUT_PIN_NUMBER 8 |
Pin number for PWM output.
#define GPIOTE_CHANNEL_NUMBER 0 |
GPIOTE channel number.