nRF51 SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages

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.
 

Detailed Description

This file contains the source code for a sample application using GPIOTE.

example_board_setup_a.jpg
Use board setup A for this example.

Macro Definition Documentation

#define GPIO_OUTPUT_PIN_NUMBER   8

Pin number for PWM output.

#define GPIOTE_CHANNEL_NUMBER   0

GPIOTE channel number.