From 36675365b75d266ec02b3ac4a5fa27f541dd826b Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 1 Sep 2010 15:24:19 +0000 Subject: [PATCH] Return bitmask instead the logic value. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4218 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/cortex-m3/drv/gpio_stm32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bertos/cpu/cortex-m3/drv/gpio_stm32.h b/bertos/cpu/cortex-m3/drv/gpio_stm32.h index 1314bfdb..6d1293a9 100644 --- a/bertos/cpu/cortex-m3/drv/gpio_stm32.h +++ b/bertos/cpu/cortex-m3/drv/gpio_stm32.h @@ -90,7 +90,7 @@ INLINE void stm32_gpioPinWrite(struct stm32_gpio *base, uint32_t pins, bool val) */ INLINE uint8_t stm32_gpioPinRead(struct stm32_gpio *base, uint32_t pins) { - return !!(base->IDR & pins); + return (base->IDR & pins); } /** -- 2.25.1