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 --- .../STM32F746-Discovery/stm32f746g_raw32_ugfx.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'boards/base/STM32F746-Discovery/stm32f746g_raw32_ugfx.c') diff --git a/boards/base/STM32F746-Discovery/stm32f746g_raw32_ugfx.c b/boards/base/STM32F746-Discovery/stm32f746g_raw32_ugfx.c index 73df79e8..4fb5cebb 100644 --- a/boards/base/STM32F746-Discovery/stm32f746g_raw32_ugfx.c +++ b/boards/base/STM32F746-Discovery/stm32f746g_raw32_ugfx.c @@ -1,16 +1,18 @@ #include "gfx.h" #include "stm32f7xx_hal.h" -#if !GFX_USE_OS_CHIBIOS -systemticks_t gfxSystemTicks(void) -{ - return HAL_GetTick(); -} - -systemticks_t gfxMillisecondsToTicks(delaytime_t ms) -{ - return ms; -} +#if GFX_USE_OS_CHIBIOS + #define HAL_GPIO_Init(port, ptr) palSetGroupMode(port, (ptr)->Pin, 0, (ptr)->Mode|((ptr)->Speed<<3)|((ptr)->Pull<<5)|((ptr)->Alternate<<7)) +#else + systemticks_t gfxSystemTicks(void) + { + return HAL_GetTick(); + } + + systemticks_t gfxMillisecondsToTicks(delaytime_t ms) + { + return ms; + } #endif static void SystemClock_Config(void); -- cgit v1.2.3