21#ifndef LPC176X_PWMOUT_DEFS_H
22#define LPC176X_PWMOUT_DEFS_H
31#define PWM_DEFAULT_PERIOD 20000u
32#define PWM_DEFAULT_PULSEWIDTH 0u
34#define PWM_PRESCALER_USECOND ( LPC176X_CCLK / 1000000 )
35#define PWM_MCR_RESET_ON_MATCH0 ( 1 << 1 )
36#define PWM_PCR_ENABLE_PWM( pwmout ) ( 1 << ( 9 + pwmout ) )
37#define PWM_TCR_RESET ( 1 << 1 )
38#define PWM_TCR_ENABLE ( 1u )
39#define PWM_TCR_PWM ( 1 << 3 )
40#define PWM_LER_LATCH_MATCH_0 1u
41#define PWM_LER_LATCH( match ) ( 1 << ( ( match ) + 1 ) )
48 volatile uint32_t TCR;
52 volatile uint32_t
MCR;
53 volatile uint32_t MR0;
54 volatile uint32_t MR1;
55 volatile uint32_t MR2;
56 volatile uint32_t MR3;
57 volatile uint32_t CCR;
58 volatile uint32_t CR0;
59 volatile uint32_t CR1;
60 volatile uint32_t CR2;
61 volatile uint32_t CR3;
62 volatile uint32_t RESERVED0;
63 volatile uint32_t MR4;
64 volatile uint32_t MR5;
65 volatile uint32_t MR6;
66 volatile uint32_t PCR;
67 volatile uint32_t LER;
68 volatile uint32_t RESERVED1[ 7 ];
69 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:70
Specific register definitions according to lpc176x family boards.
lpc176x_pwm_pin_number
A pin for each PWM output.
Definition: pwmout-defs.h:97
lpc176x_pwm_number
The PWM outputs of the board.
Definition: pwmout-defs.h:84
PWM-Out controller for the mbed lpc1768 board.
The low-level PWM output device.
Definition: pwmout-defs.h:46
Represents one pin and the respective function to be set for each PWM output.
Definition: pwmout-defs.h:76