STM32 CUBE MX FATFS HEADER FILE INCLUDE ISSUE
Hi All,
I am currently building a project with USER-DEFINED FATFS (since my SD card mount on SPI instead of SDIO).
I notice two weird include statement, FFCONG.h LINE 25 and 26,
"
#include "main.h"
#include "stm32f4xx_hal.h"
"
which are unnecessary because there are only few #define statement in the file. And what worse if we use main.h in ffcong.h, we cannot declare any function in main.h file with any FATFS variable or function. If we do so, the compiler will show "UNDEFINE FIL...".
I just wonder the purpose of those two statement? Is there any benefit to include main.h in ffcong.h? Thank you.