diff options
author | Martin Galvan <martin.galvan@tallertechnologies.com> | 2015-03-11 16:57:23 -0300 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-03-20 09:16:07 +0100 |
commit | 7b35a36fb16491dbdb98106ab39d35b8d19598e5 (patch) | |
tree | a5c23a33c3316623fa5fa5129f6669147f249bb0 /c/src/lib/libbsp/arm/lpc176x/include/io.h | |
parent | score: Fix _Thread_Change_priority() (diff) | |
download | rtems-7b35a36fb16491dbdb98106ab39d35b8d19598e5.tar.bz2 |
Add CAN, PWM, ADC and UART1/2/3 support to the LPC176x BSP.
This patch adds support for the following devices to the LPC176x BSP:
* CAN
* PWM
* ADC
It also adds the probe routines for UART1/2/3 to the console_device_table in console-config.c, and enables UART1 in configure.ac.
Diffstat (limited to 'c/src/lib/libbsp/arm/lpc176x/include/io.h')
-rw-r--r-- | c/src/lib/libbsp/arm/lpc176x/include/io.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/arm/lpc176x/include/io.h b/c/src/lib/libbsp/arm/lpc176x/include/io.h index e7c0dd0d58..9538372716 100644 --- a/c/src/lib/libbsp/arm/lpc176x/include/io.h +++ b/c/src/lib/libbsp/arm/lpc176x/include/io.h @@ -31,7 +31,7 @@ extern "C" { #endif /* __cplusplus */ /** - * @brief Set pin to the selected function. + * @brief Sets pin to the selected function. * * @param pin The pin to set. * @param function Defines the function to set. @@ -42,6 +42,17 @@ void lpc176x_pin_select( ); /** + * @brief Sets pin to the selected mode. + * + * @param pin The pin to set. + * @param mode Defines the mode to set. + */ +void lpc176x_pin_set_mode( + const uint32_t pin, + const lpc176x_pin_mode mode +); + +/** * @brief Enables the module power and clock. * * @param module Represents the module to be enabled. |