MODSERIAL with support for more devices
Dependents: 1D-Pong BMT-K9_encoder BMT-K9-Regelaar programma_filter ... more
Check the cookbook page for more information: https://mbed.org/cookbook/MODSERIAL
Did you add a device? Please send a pull request so we can keep everything in one library instead of many copies. In that case also send a PM, since currently mbed does not inform of new pull requests. I will then also add you to the developers of this library so you can do other changes directly.
Diff: RESIZE.cpp
- Revision:
- 27:9c93ce7cb9d8
- Parent:
- 0:eb2522b41db8
- Child:
- 36:a2ceec937db7
diff -r 91e4dba7ebe2 -r 9c93ce7cb9d8 RESIZE.cpp --- a/RESIZE.cpp Mon Jun 10 19:06:21 2013 +0000 +++ b/RESIZE.cpp Thu Jul 11 13:34:53 2013 +0000 @@ -35,7 +35,7 @@ if (buffer_size[type] == size) return rval; // Make sure the ISR cannot use the buffers while we are manipulating them. - disableIrq(); + NVIC_DisableIRQ(_IRQ); // If the requested buffer size is larger than the current size, // attempt to create a new buffer and use it. @@ -47,7 +47,7 @@ } // Start the ISR system again with the new buffers. - enableIrq(); + NVIC_EnableIRQ(_IRQ); return rval; }