RTEMS 6.1-rc2
|
PWM-Out controller for the mbed lpc1768 board. More...
Go to the source code of this file.
Functions | |
rtems_status_code | pwm_init (const lpc176x_pin_number pin_number) |
Initializes the PWM output device and sets an initial period of 20000us. | |
rtems_status_code | pwm_period (const lpc176x_pin_number pin_number, const lpc176x_microseconds period) |
Sets a period for the PWM output. (Note that this changes the period for all the PWM outputs.) | |
rtems_status_code | pwm_pulsewidth (const lpc176x_pin_number pin_number, const lpc176x_microseconds pwidth) |
Sets a pulsewidth for the PWM output. | |
PWM-Out controller for the mbed lpc1768 board.
rtems_status_code pwm_init | ( | const lpc176x_pin_number | pin_number | ) |
Initializes the PWM output device and sets an initial period of 20000us.
pin_number | The PWM output pin. |
rtems_status_code pwm_period | ( | const lpc176x_pin_number | pin_number, |
const lpc176x_microseconds | period | ||
) |
Sets a period for the PWM output. (Note that this changes the period for all the PWM outputs.)
pin_number | The pin whose period we want to change. |
period | The desired period in microseconds. |
rtems_status_code pwm_pulsewidth | ( | const lpc176x_pin_number | pin_number, |
const lpc176x_microseconds | pwidth | ||
) |
Sets a pulsewidth for the PWM output.
pin_number | The pin whose pulsewidth we want to change. |
pwidth | The desired pulsewidth in microseconds. |