From 45f2ca61dafb82c7b3f3b6bc35105ccf92a99b1b Mon Sep 17 00:00:00 2001 From: modtronix-com Date: Wed, 10 Jun 2015 14:39:00 +1000 Subject: [PATCH] STM32L151RC requires same code as STM32L152RC Special code for STM32L151RC and STM32L152RC --- .../mbed/targets/hal/TARGET_STM/TARGET_STM32L1/gpio_object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32L1/gpio_object.h b/libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32L1/gpio_object.h index 3339350902..48476cc7f8 100755 --- a/libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32L1/gpio_object.h +++ b/libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32L1/gpio_object.h @@ -54,7 +54,7 @@ static inline void gpio_write(gpio_t *obj, int value) if (value) { *obj->reg_set = obj->mask; } else { -#if defined(TARGET_STM32L152RC) +#if defined(TARGET_STM32L152RC) || defined(TARGET_STM32L151RC) *obj->reg_set = obj->mask << 16; #else *obj->reg_clr = obj->mask;