The appropriate board name is BOARD_EMBEST_DMSTF4BB. The FSMC is just the way you have implemented the connection to the LCD in your board file.
For some situations there may be several board files for the one board each with different connection details.
Eg.
Imagine a fictitious LCD controller called XYZ which can be connected to your board (a "ABC" board) via either FSMC or SPI.
You would then have two board files gdisp_lld_board_abc_fsmc.h and gdisp_lld_board_abc_spi.h in the XYZ driver directory.
In your XYZ gdisp_lld.c you would have something like...
Code: Select all
#if defined(GDISP_USE_CUSTOM_BOARD) && GDISP_USE_CUSTOM_BOARD
/* Include the user supplied board definitions */
#include "gdisp_lld_board.h"
#elif defined(BOARD_ABC)
#include "gdisp_lld_board_abc_fsmc.h" /* FSMC and SPI supported - FSMC is the default */
#else
/* Include the user supplied board definitions */
#include "gdisp_lld_board.h"
#endif
A person using the SPI connections would just alter the "_fsmc" to "_spi" in gdisp_lld.c.
Alternatively (and preferably) they would copy gdisp_lld_board_abc_spi.h to their project directory and rename it gdisp_lld_board.h and then define GDISP_USE_CUSTOM_BOARD in their gfxconf.h. This method is also the preferred method if you have a non-standard connection to a controller eg use port 3 instead of port 1 as it allows custom hardware interfaces without having to modify the ChibiOS-GFX master source. You are just defining an "over-ride" board file in your project that can be edited as you need based on the template of an existing board file (or not).
Hope that helps.