aboutsummaryrefslogtreecommitdiffstats
path: root/boards/base/STM32F746-Discovery/gmouse_lld_FT5336_board.h
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@seriouslyembedded.com>2015-10-20 19:52:22 +0200
committerJoel Bodenmann <joel@seriouslyembedded.com>2015-10-20 19:52:22 +0200
commit56794c2eb911ef6c3fe77517696b0ea1681f68e4 (patch)
tree4c5db38d9763cf0ec3cbac5e4f3c4eeef68c3eab /boards/base/STM32F746-Discovery/gmouse_lld_FT5336_board.h
parent117e26bffdf040e25a63c6253e3c4fac254a260d (diff)
downloaduGFX-56794c2eb911ef6c3fe77517696b0ea1681f68e4.tar.gz
uGFX-56794c2eb911ef6c3fe77517696b0ea1681f68e4.tar.bz2
uGFX-56794c2eb911ef6c3fe77517696b0ea1681f68e4.zip
Fixing compiler warnings in STM32F746-Discovery board files
Diffstat (limited to 'boards/base/STM32F746-Discovery/gmouse_lld_FT5336_board.h')
-rw-r--r--boards/base/STM32F746-Discovery/gmouse_lld_FT5336_board.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/boards/base/STM32F746-Discovery/gmouse_lld_FT5336_board.h b/boards/base/STM32F746-Discovery/gmouse_lld_FT5336_board.h
index 1e3e6877..8dd3ebf3 100644
--- a/boards/base/STM32F746-Discovery/gmouse_lld_FT5336_board.h
+++ b/boards/base/STM32F746-Discovery/gmouse_lld_FT5336_board.h
@@ -40,14 +40,14 @@ static bool_t init_board(GMouse* m, unsigned instance)
GPIOH->MODER |= GPIO_MODER_MODER7_1; // Alternate function
GPIOH->OTYPER |= GPIO_OTYPER_OT_7; // OpenDrain
GPIOH->OSPEEDR &= ~GPIO_OSPEEDER_OSPEEDR7; // LowSpeed
- GPIOH->AFRL |= (0b0100 << 4*7); // AF4
+ GPIOH->AFRL |= (uint32_t)(0x04 << 4*7); // AF4
// I2C3_SDA GPIOH8, alternate, opendrain, highspeed
RCC->AHB1ENR |= RCC_AHB1ENR_GPIOHEN; // Enable clock
GPIOH->MODER |= GPIO_MODER_MODER8_1; // Alternate function
GPIOH->OTYPER |= GPIO_OTYPER_OT_8; // OpenDrain
GPIOH->OSPEEDR &= ~GPIO_OSPEEDER_OSPEEDR8; // LowSpeed
- GPIOH->AFRH |= (0b0100 << 4*0); // AF4
+ GPIOH->AFRH |= (uint32_t)(0x04 << 4*0); // AF4
// Initialize the I2C3 peripheral
if (!(i2cInit(I2C3))) {