From: asterix Date: Wed, 1 Sep 2010 15:24:19 +0000 (+0000) Subject: Return bitmask instead the logic value. X-Git-Tag: 2.6.0~183 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=36675365b75d266ec02b3ac4a5fa27f541dd826b;p=bertos.git Return bitmask instead the logic value. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4218 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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); } /**