Jump to content

[Feature] New GDISP driver STM32LTDC


Recommended Posts

  • 2 weeks later...

in file gdisp_lld_STM32LTDC.c (line 164) there is:

// Enable the LTDC clock

RCC->DCKCFGR1 = (RCC->DCKCFGR1 & ~RCC_DCKCFGR1_PLLSAIDIVR) | (1 << 16); /* /4 */

the compiler gives error on DCKCFGR1 (not found)

to make it working I have to modify the line using DCKCFGR (without 1)

RCC->DCKCFGR = (RCC->DCKCFGR & ~RCC_DCKCFGR_PLLSAIDIVR) | (1 << 16); /* /4 */

as declared in stm32f4xx.h

an then everything works

ciao

Alberto

Link to comment
Share on other sites

What libraries are you using? I downloaded the latest STM32CubeF4 and the file stm32f4xx.h from CMSIS has that define in there. It is the same for the F7 and there it works great for me.

Are you using the old StdPeriph libraries?

Line 67 in: stm32f4xx.h


/**
* @brief STM32 Family
*/
#if !defined (STM32F4)
#define STM32F4
#endif /* STM32F4 */

~ Tectu

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...