projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Return bitmask instead the logic value.
[bertos.git]
/
bertos
/
cpu
/
cortex-m3
/
drv
/
gpio_stm32.h
diff --git
a/bertos/cpu/cortex-m3/drv/gpio_stm32.h
b/bertos/cpu/cortex-m3/drv/gpio_stm32.h
index 1314bfdb5cf0f18d01ba5611143094e6e00178d2..6d1293a9c6fa25e81c75795af2e57ad62890f196 100644
(file)
--- 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);
}
/**