[rtems commit] bsp/lm3s69xx: add macros for UART CTS/RTS pin configuration
Sebastian Huber
sebh at rtems.org
Wed Aug 14 14:21:14 UTC 2013
Module: rtems
Branch: master
Commit: 526f895efe74dfc6b1fc8f98ac546543d49178be
Changeset: http://git.rtems.org/rtems/commit/?id=526f895efe74dfc6b1fc8f98ac546543d49178be
Author: Karel Gardas <karel.gardas at centrum.cz>
Date: Wed Aug 14 15:35:58 2013 +0200
bsp/lm3s69xx: add macros for UART CTS/RTS pin configuration
---
c/src/lib/libbsp/arm/lm3s69xx/include/io.h | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/c/src/lib/libbsp/arm/lm3s69xx/include/io.h b/c/src/lib/libbsp/arm/lm3s69xx/include/io.h
index 4b7f920..dc698fa 100644
--- a/c/src/lib/libbsp/arm/lm3s69xx/include/io.h
+++ b/c/src/lib/libbsp/arm/lm3s69xx/include/io.h
@@ -111,6 +111,34 @@ typedef enum {
.slr = LM3S69XX_GPIO_NO_SLEW_RATE_CONTROL \
}
+#define LM3S69XX_PIN_UART_RTS(port, idx) \
+ { \
+ .pin_first = LM3S69XX_GPIO_PIN(port, idx), \
+ .pin_last = LM3S69XX_GPIO_PIN(port, idx), \
+ .digital = LM3S69XX_GPIO_DIGITAL_ENABLE, \
+ .alternate = LM3S69XX_GPIO_AF_ENABLE, \
+ .analog = LM3S69XX_GPIO_ANALOG_DISABLE, \
+ .dir = LM3S69XX_GPIO_DIRECTION_OUTPUT, \
+ .otype = LM3S69XX_GPIO_OTYPE_PUSH_PULL, \
+ .drive = LM3S69XX_GPIO_DRIVE_2MA, \
+ .pull = LM3S69XX_GPIO_NO_PULL, \
+ .slr = LM3S69XX_GPIO_NO_SLEW_RATE_CONTROL \
+ }
+
+#define LM3S69XX_PIN_UART_CTS(port, idx) \
+ { \
+ .pin_first = LM3S69XX_GPIO_PIN(port, idx), \
+ .pin_last = LM3S69XX_GPIO_PIN(port, idx), \
+ .digital = LM3S69XX_GPIO_DIGITAL_ENABLE, \
+ .alternate = LM3S69XX_GPIO_AF_ENABLE, \
+ .analog = LM3S69XX_GPIO_ANALOG_DISABLE, \
+ .dir = LM3S69XX_GPIO_DIRECTION_INPUT, \
+ .otype = LM3S69XX_GPIO_OTYPE_PUSH_PULL, \
+ .drive = LM3S69XX_GPIO_DRIVE_2MA, \
+ .pull = LM3S69XX_GPIO_PULL_UP, \
+ .slr = LM3S69XX_GPIO_NO_SLEW_RATE_CONTROL \
+ }
+
#define LM3S69XX_PIN_LED(port, idx) \
{ \
.pin_first = LM3S69XX_GPIO_PIN(port, idx), \
More information about the vc
mailing list