nRF51 SDK
|
PWM Analyzer Example Application main file. More...
Macros | |
#define | INPUT_PIN_NUMBER (BUTTON0) |
#define | DUTY_CYCLE_SCALE_VALUE (256UL) |
Functions | |
static void | timer1_init (void) |
: Function for initializing the Timer 1 peripheral. | |
static void | gpiote_init (void) |
Function for initializing the GPIO Tasks/Events peripheral. | |
static void | ppi_init (void) |
Function for initializing the PPI peripheral. | |
int | main (void) |
Function for application main entry. | |
void | GPIOTE_IRQHandler (void) |
Function for handling the GPIOTE interrupt. Triggered on input Low-to-high transition. | |
This file contains the source code for a sample application using PWM
#define INPUT_PIN_NUMBER (BUTTON0) |
Pin number for the input.
#define DUTY_CYCLE_SCALE_VALUE (256UL) |
Defines the upper limit of the duty cycle value.