[rtems commit] bsp/lpc24xx: Add LPC17XX_PIN_TYPE_FAST_SLEW_RATE
Sebastian Huber
sebh at rtems.org
Thu May 9 10:13:21 UTC 2019
Module: rtems
Branch: master
Commit: 0a6b81ad1ce71d04081fb48d80bd6b9886430242
Changeset: http://git.rtems.org/rtems/commit/?id=0a6b81ad1ce71d04081fb48d80bd6b9886430242
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu May 9 09:53:55 2019 +0200
bsp/lpc24xx: Add LPC17XX_PIN_TYPE_FAST_SLEW_RATE
---
bsps/arm/lpc24xx/include/bsp/io.h | 3 ++-
bsps/arm/lpc24xx/start/io.c | 3 +++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/bsps/arm/lpc24xx/include/bsp/io.h b/bsps/arm/lpc24xx/include/bsp/io.h
index b5b724b..dd76368 100644
--- a/bsps/arm/lpc24xx/include/bsp/io.h
+++ b/bsps/arm/lpc24xx/include/bsp/io.h
@@ -241,7 +241,8 @@ typedef enum {
LPC17XX_PIN_TYPE_DAC,
LPC17XX_PIN_TYPE_I2C,
LPC17XX_PIN_TYPE_I2C_FAST_PLUS,
- LPC17XX_PIN_TYPE_OPEN_DRAIN
+ LPC17XX_PIN_TYPE_OPEN_DRAIN,
+ LPC17XX_PIN_TYPE_FAST_SLEW_RATE
} lpc17xx_pin_type;
#ifdef ARM_MULTILIB_ARCH_V4
diff --git a/bsps/arm/lpc24xx/start/io.c b/bsps/arm/lpc24xx/start/io.c
index dafd3aa..87f42e2 100644
--- a/bsps/arm/lpc24xx/start/io.c
+++ b/bsps/arm/lpc24xx/start/io.c
@@ -409,6 +409,9 @@ lpc24xx_pin_set_function(
case LPC17XX_PIN_TYPE_OPEN_DRAIN:
iocon_extra |= IOCON_OD;
break;
+ case LPC17XX_PIN_TYPE_FAST_SLEW_RATE:
+ iocon_extra |= IOCON_SLEW;
+ break;
default:
break;
}
More information about the vc
mailing list