alxhoff / STM32-uGFX-Cmake

CMake project for a STM32F4 (easily modified for other chip series) using uGFX (optional)
GNU General Public License v3.0
1 stars 2 forks source link

Is uGFX_LLD_CONFIG really required? #8

Closed PhilippvK closed 4 years ago

PhilippvK commented 4 years ago

Short Question:

The following code snipped from cmake/FinduGFX.cmake does not make sense to me.

if(NOT uGFX_LLD_CONFIG)
    MESSAGE("No uGFX_LLD_CONFIG given, this may result in an error")
ELSE()
    LIST(APPEND uGFX_INCLUDE_DIRS ${uGFX_LLD_CONFIG})
ENDIF()

What value should this variable have and do you set in in your configuration?

alxhoff commented 4 years ago

I believe this is the variable you can use to pass the lld (low level drier) config file needed for the platform's screen device. example ones can be found in drivers/gdisp/${DRIVER}/gdisp_lld_config.h and they do things like specify screen rotation. This build has the config directly in the include folder so I don't need to pass it a separate directory to include.

alxhoff commented 4 years ago

just noticed your commit 99dd3507e4e21fa90994f61f5b836b5daeedb044. The uGFX_LLD_CONFIG variable could be used if you wanted to move the config into a config folder.

PhilippvK commented 4 years ago

Thanks for making this clear. Wouldn’t it be more straightforward if the Variable name contains DIR? I always thought I have to pass the file itself.

alxhoff commented 4 years ago

Thanks for making this clear. Wouldn’t it be more straightforward if the Variable name contains DIR? I always thought I have to pass the file itself.

yes that would be a bit clearer. PR it here.

PhilippvK commented 4 years ago

just noticed your commit 99dd350. The uGFX_LLD_CONFIG variable could be used if you wanted to move the config into a config folder.

This has nothing to do with UGFX. I moved the following files into the config directory:

alxhoff commented 4 years ago

No I mean if your were to do a similar thing and move the lld config to the same directory then it would be a useful variable