From 48a9d334b7a5b462b32c17a5fde07159deb4c280 Mon Sep 17 00:00:00 2001 From: inmarket Date: Fri, 23 Oct 2015 18:24:49 +1000 Subject: Replace all inline definitions with GFXINLINE --- boards/base/STM32F746-Discovery/gmouse_lld_FT5336_board.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'boards/base/STM32F746-Discovery/gmouse_lld_FT5336_board.h') 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))) { -- cgit v1.2.3