[sky9x] Massstorage (read seems ok, write has bugs)

This commit is contained in:
bsongis
2012-09-12 18:31:11 +00:00
parent 46a0fe8533
commit 2e0a7a293e
3 changed files with 32 additions and 185 deletions
+10 -8
View File
@@ -3573,15 +3573,17 @@ void menusTask(void * pdata)
open9xInit();
while (check_soft_power() != e_power_off) {
#ifdef MASSSTORAGE
if (PIOC->PIO_PDSR & PIO_PC25) {
for (uint8_t i=0; i<10; i++)
usbMassStorage();
TRACE_DEBUG("Apres usbMassStorage\n\r");
}
#endif
perMain();
CoTickDelay(5); // 10ms for now
for (uint8_t i=0; i<5; i++) {
#ifdef MASSSTORAGE
if (PIOC->PIO_PDSR & PIO_PC25) {
for (uint8_t i=0; i<10; i++)
usbMassStorage();
TRACE_DEBUG("Apres usbMassStorage\n\r");
}
#endif
CoTickDelay(1); // 10ms for now
}
}
#if defined(SDCARD)