Browse Source

STM32LTDC: Fix board function signatures

develop
Joel Bodenmann 1 year ago
parent
commit
37450998e1
  1. 4
      boards/base/STM32F746-Discovery/board_STM32LTDC.h
  2. 4
      drivers/gdisp/STM32LTDC/board_STM32LTDC_template.h

4
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;

4
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
}

Loading…
Cancel
Save