RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Data Structures | Macros | Enumerations
pwmout-defs.h File Reference

PWM-Out controller for the mbed lpc1768 board. More...

#include <bsp/lpc176x.h>
#include <bsp/pwmout.h>

Go to the source code of this file.

Data Structures

struct  lpc176x_pwm_device
 The low-level PWM output device. More...
 
struct  lpc176x_pwm_pin
 Represents one pin and the respective function to be set for each PWM output. More...
 

Macros

#define PWM_DEFAULT_PERIOD   20000u
 
#define PWM_DEFAULT_PULSEWIDTH   0u
 
#define PWM_PRESCALER_USECOND   ( LPC176X_CCLK / 1000000 )
 
#define PWM_MCR_RESET_ON_MATCH0   ( 1 << 1 )
 
#define PWM_PCR_ENABLE_PWM(pwmout)   ( 1 << ( 9 + pwmout ) )
 
#define PWM_TCR_RESET   ( 1 << 1 )
 
#define PWM_TCR_ENABLE   ( 1u )
 
#define PWM_TCR_PWM   ( 1 << 3 )
 
#define PWM_LER_LATCH_MATCH_0   1u
 
#define PWM_LER_LATCH(match)   ( 1 << ( ( match ) + 1 ) )
 

Enumerations

enum  lpc176x_pwm_number {
  PWMO_1 , PWMO_2 , PWMO_3 , PWMO_4 ,
  PWMO_5 , PWMO_6 , PWM_OUTPUT_NUMBER
}
 The PWM outputs of the board.
 
enum  lpc176x_pwm_pin_number { PWM_FIRST_PIN , PWM_SECOND_PIN , PWM_NUMBER_OF_PINS }
 A pin for each PWM output.
 

Detailed Description

PWM-Out controller for the mbed lpc1768 board.