19#ifndef LPC176X_PWMOUT_DEFS_H
20#define LPC176X_PWMOUT_DEFS_H
29#define PWM_DEFAULT_PERIOD 20000u
30#define PWM_DEFAULT_PULSEWIDTH 0u
32#define PWM_PRESCALER_USECOND ( LPC176X_CCLK / 1000000 )
33#define PWM_MCR_RESET_ON_MATCH0 ( 1 << 1 )
34#define PWM_PCR_ENABLE_PWM( pwmout ) ( 1 << ( 9 + pwmout ) )
35#define PWM_TCR_RESET ( 1 << 1 )
36#define PWM_TCR_ENABLE ( 1u )
37#define PWM_TCR_PWM ( 1 << 3 )
38#define PWM_LER_LATCH_MATCH_0 1u
39#define PWM_LER_LATCH( match ) ( 1 << ( ( match ) + 1 ) )
46 volatile uint32_t TCR;
50 volatile uint32_t
MCR;
51 volatile uint32_t MR0;
52 volatile uint32_t MR1;
53 volatile uint32_t MR2;
54 volatile uint32_t MR3;
55 volatile uint32_t CCR;
56 volatile uint32_t CR0;
57 volatile uint32_t CR1;
58 volatile uint32_t CR2;
59 volatile uint32_t CR3;
60 volatile uint32_t RESERVED0;
61 volatile uint32_t MR4;
62 volatile uint32_t MR5;
63 volatile uint32_t MR6;
64 volatile uint32_t PCR;
65 volatile uint32_t LER;
66 volatile uint32_t RESERVED1[ 7 ];
67 volatile uint32_t CTCR;
#define MCR
Modem Control Register.
Definition: uart.h:91
lpc176x_pin_function
Defines the functions according to the pin.
Definition: io-defs.h:68
Specific register definitions according to lpc176x family boards.
lpc176x_pwm_pin_number
A pin for each PWM output.
Definition: pwmout-defs.h:95
lpc176x_pwm_number
The PWM outputs of the board.
Definition: pwmout-defs.h:82
PWM-Out controller for the mbed lpc1768 board.
The low-level PWM output device.
Definition: pwmout-defs.h:44
Represents one pin and the respective function to be set for each PWM output.
Definition: pwmout-defs.h:74