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;