Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 632 Bytes

README.md

File metadata and controls

40 lines (34 loc) · 632 Bytes

ff_iso

STM32 multitasking FATFS+SDIO

Solve problem in using fatfs+sdio in different tasks. Create a task with high priority. Call ff_init(). Call ff_loop() in infinite loop.


void StartTaskOther(void *argument)
{
  osDelay(100);
  ff_mount ......
  ....
  ....
  ff_open ....
  
  ff_close ....
  
  for(;;)
  {
    osDelay(1);
  }
}

void StartTaskSD(void *argument)
{
  ff_init();
  for(;;)
  {
    ff_loop();
    osDelay(1);
  }
}