
.
Revision 12:a07d0af60cc6, committed 2018-04-05
- Comitter:
- mbed_official
- Date:
- Thu Apr 05 15:30:17 2018 +0100
- Parent:
- 11:656a96b9981b
- Child:
- 13:50ed7a7039c9
- Commit message:
- Merge pull request #41 from ARMmbed/g-event-queue
Moved erase callback into event queue context
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-filesystem
Changed in this revision
--- a/README.md Fri Mar 09 21:30:16 2018 +0000 +++ b/README.md Thu Apr 05 15:30:17 2018 +0100 @@ -180,7 +180,7 @@ ``` diff - LittleFileSystem fs("fs"); -+ FATFileSysten fs("fs"); ++ FATFileSystem fs("fs"); ``` **Note:** Different file systems require different minimum numbers of storage
--- a/main.cpp Fri Mar 09 21:30:16 2018 +0000 +++ b/main.cpp Thu Apr 05 15:30:17 2018 +0100 @@ -72,8 +72,9 @@ int main() { printf("--- Mbed OS filesystem example ---\n"); - // Setup the irq in case we want to use it - irq.fall(erase); + // Setup the erase event on button press, use the event queue + // to avoid running in interrupt context + irq.fall(mbed_event_queue()->event(erase)); // Try to mount the filesystem printf("Mounting the filesystem... ");
--- a/mbed-os.lib Fri Mar 09 21:30:16 2018 +0000 +++ b/mbed-os.lib Thu Apr 05 15:30:17 2018 +0100 @@ -1,1 +1,1 @@ -https://github.com/ARMmbed/mbed-os/#569159b784f70feaa32ce226aaca896fb83452f7 +https://github.com/ARMmbed/mbed-os/#addec7ba10054be03849eff58a1d17f157391e7d