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

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.
 

Detailed Description

This file contains the source code for a sample application using PWM

Macro Definition Documentation

#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.