diff --git a/boards/base/STM32F746-Discovery/board_STM32LTDC.h b/boards/base/STM32F746-Discovery/board_STM32LTDC.h index 1f432c65..e5e203be 100644 --- a/boards/base/STM32F746-Discovery/board_STM32LTDC.h +++ b/boards/base/STM32F746-Discovery/board_STM32LTDC.h @@ -393,7 +393,7 @@ static void configureLcdPins(void) { #endif } -static GFXINLINE void init_ltdc_clock() +static GFXINLINE void init_ltdc_clock(void) { // Reset the LTDC peripheral RCC->APB2RSTR |= RCC_APB2RSTR_LTDCRST; @@ -407,7 +407,7 @@ static GFXINLINE void init_ltdc_clock() } #if LTDC_USE_DMA2D - static GFXINLINE void init_dma2d_clock() + static GFXINLINE void init_dma2d_clock(void) { // Enable DMA2D clock RCC->AHB1ENR |= RCC_AHB1ENR_DMA2DEN; diff --git a/drivers/gdisp/STM32LTDC/board_STM32LTDC_template.h b/drivers/gdisp/STM32LTDC/board_STM32LTDC_template.h index de5f7b3e..5911e9c8 100644 --- a/drivers/gdisp/STM32LTDC/board_STM32LTDC_template.h +++ b/drivers/gdisp/STM32LTDC/board_STM32LTDC_template.h @@ -55,13 +55,13 @@ static const ltdcConfig driverCfg = { #endif }; -static GFXINLINE void init_ltdc_clock() +static GFXINLINE void init_ltdc_clock(void) { // Setup LTDC clock and enable the peripheral } #if LTDC_USE_DMA2D - static GFXINLINE void init_dma2d_clock() + static GFXINLINE void init_dma2d_clock(void) { // Setup DMA2D clock and enable the peripheral }