From 0a6b81ad1ce71d04081fb48d80bd6b9886430242 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 9 May 2019 09:53:55 +0200 Subject: 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(-) (limited to 'bsps/arm') 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; } -- cgit v1.2.3