aboutsummaryrefslogtreecommitdiffstats
path: root/boards/base/STM32F746-Discovery/gmouse_lld_FT5336_board.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2015-10-23 18:24:49 +1000
committerinmarket <andrewh@inmarket.com.au>2015-10-23 18:24:49 +1000
commit48a9d334b7a5b462b32c17a5fde07159deb4c280 (patch)
tree0f7032657b98730750a74ba6d09d01f2de119d4d /boards/base/STM32F746-Discovery/gmouse_lld_FT5336_board.h
parent17c940423ba2159b20965ea6d004386bc392aa68 (diff)
downloaduGFX-48a9d334b7a5b462b32c17a5fde07159deb4c280.tar.gz
uGFX-48a9d334b7a5b462b32c17a5fde07159deb4c280.tar.bz2
uGFX-48a9d334b7a5b462b32c17a5fde07159deb4c280.zip
Replace all inline definitions with GFXINLINE
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 8dd3ebf3..7d61bb25 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 |= (uint32_t)(0x04 << 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 |= (uint32_t)(0x04 << 4*0); // AF4
+ GPIOH->AFRH |= ((uint32_t)0x04 << 4*0); // AF4
// Initialize the I2C3 peripheral
if (!(i2cInit(I2C3))) {