diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2018-10-25 11:10:35 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2018-10-25 11:10:35 +0300 |
| commit | 2eb5e880d44c358ef6a97232e90e77ea0ec582ae (patch) | |
| tree | 156599c15b3013d83a29e8e36fc6f94b7d9fb9c7 /Software/Embedded_SW/Embedded/Main.c | |
| parent | b2ff9df011e1e710381683f8c50d66e9f34616a2 (diff) | |
| parent | f24af73628e5e7ddfa3590fe278c1623f6ede2df (diff) | |
| download | Tango-2eb5e880d44c358ef6a97232e90e77ea0ec582ae.tar.gz Tango-2eb5e880d44c358ef6a97232e90e77ea0ec582ae.zip | |
merge
Diffstat (limited to 'Software/Embedded_SW/Embedded/Main.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Main.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/Main.c b/Software/Embedded_SW/Embedded/Main.c index 4549b8768..8e64cb480 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 //***************************************************************************** @@ -130,6 +132,7 @@ int main(void) Calculateinit(); PortFunctionInit(); + #ifdef EVALUATION_BOARD Init_EVB(); #endif @@ -215,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); |
