sam3 port: enable power on all PIO input ports by default.
[bertos.git] / bertos / cpu / cortex-m3 / drv / gpio_stm32.h
index 1314bfdb5cf0f18d01ba5611143094e6e00178d2..6d1293a9c6fa25e81c75795af2e57ad62890f196 100644 (file)
@@ -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);
 }
 
 /**