X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fdrv%2Fgpio_stm32.h;h=17be2f56cc048030ee90ac967e33caaac054c972;hb=563795df4180aaceb7d69306551230c98fbca879;hp=6d1293a9c6fa25e81c75795af2e57ad62890f196;hpb=36675365b75d266ec02b3ac4a5fa27f541dd826b;p=bertos.git diff --git a/bertos/cpu/cortex-m3/drv/gpio_stm32.h b/bertos/cpu/cortex-m3/drv/gpio_stm32.h index 6d1293a9..17be2f56 100644 --- a/bertos/cpu/cortex-m3/drv/gpio_stm32.h +++ b/bertos/cpu/cortex-m3/drv/gpio_stm32.h @@ -74,7 +74,7 @@ enum * \param pins mask of pins that we want set or clear * \param val true to set selected pins of false to clear they. */ -INLINE void stm32_gpioPinWrite(struct stm32_gpio *base, uint32_t pins, bool val) +INLINE void stm32_gpioPinWrite(struct stm32_gpio *base, uint16_t pins, bool val) { if (val) base->BSRR |= pins; @@ -88,7 +88,7 @@ INLINE void stm32_gpioPinWrite(struct stm32_gpio *base, uint32_t pins, bool val) * \param base gpio register address * \param pins mask of pins that we want read */ -INLINE uint8_t stm32_gpioPinRead(struct stm32_gpio *base, uint32_t pins) +INLINE uint16_t stm32_gpioPinRead(struct stm32_gpio *base, uint16_t pins) { return (base->IDR & pins); }