summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bsps/arm/lpc24xx/include/bsp/io.h3
-rw-r--r--bsps/arm/lpc24xx/start/io.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/bsps/arm/lpc24xx/include/bsp/io.h b/bsps/arm/lpc24xx/include/bsp/io.h
index b5b724b16b..dd76368fab 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 dafd3aa8f5..87f42e224f 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;
}