Instead of using an interrupt to read a serial message, a thread is created within the interrupt that reads serial data coming in. Original project for LPC1768.

Files at this revision

API Documentation at this revision

Comitter:
Ritzerk
Date:
Thu Mar 07 16:33:37 2019 +0000
Parent:
1:5438da9e6654
Commit message:
Removed mutex, serial already uses mutex

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 5438da9e6654 -r 65ff74ea1476 main.cpp
--- a/main.cpp	Thu Mar 07 16:29:56 2019 +0000
+++ b/main.cpp	Thu Mar 07 16:33:37 2019 +0000
@@ -4,7 +4,6 @@
 osThreadId ISRthreadId;
 
 RawSerial pc(USBTX, USBRX);
-Mutex serial_mutex;
 
 DigitalOut myled(LED1);
 DigitalOut myled4(LED4);