diff options
| author | Avi Levkovich <avi@twine-s.com> | 2018-10-25 11:00:26 +0300 |
|---|---|---|
| committer | Avi Levkovich <avi@twine-s.com> | 2018-10-25 11:00:26 +0300 |
| commit | f53db3d231cfd41ea6e13106db3db98951c20e52 (patch) | |
| tree | cbe038170003d9f85d87b20a83167e31137f11f0 /Software/Embedded_SW/Embedded/Main.c | |
| parent | 57ad0a219784843d565524235122dbd1ad6c37ae (diff) | |
| download | Tango-f53db3d231cfd41ea6e13106db3db98951c20e52.tar.gz Tango-f53db3d231cfd41ea6e13106db3db98951c20e52.zip | |
Add flash file system module
(#error in wrong configuration)
Diffstat (limited to 'Software/Embedded_SW/Embedded/Main.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Main.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/Main.c b/Software/Embedded_SW/Embedded/Main.c index 80daa8f17..58527e708 100644 --- a/Software/Embedded_SW/Embedded/Main.c +++ b/Software/Embedded_SW/Embedded/Main.c @@ -59,6 +59,8 @@ extern Semaphore_Handle sdCardSem; #include "drivers/FPGA/FPGA_GPIO/FPGA_GPIO.h" #include "drivers/I2C_Communication/DAC/Blower.h" +#include "drivers/Flash_Memory/FATFS/ff.h" +#include "drivers/Flash_Memory/FATFS/Control_File_System.h" //#define WATCHDOG //***************************************************************************** @@ -216,6 +218,17 @@ int main(void) ControlStart(); MotorsInit(); + //////////////////////////// + + FRESULT iFResult = Init_Flash_File_System(true); + if(iFResult != FR_OK) + { + LOG_ERROR (iFResult, "Error during init Flash File System"); + assert(iFResult); + } + Control_File_System();// test file system + + //////////////////////////// RegisterReceiveCallback(&receive_callback); |
