diff --git a/examples/CriticalSection/CriticalSection.ino b/examples/CriticalSection/CriticalSection.ino index da3c2df..6b5ae32 100644 --- a/examples/CriticalSection/CriticalSection.ino +++ b/examples/CriticalSection/CriticalSection.ino @@ -101,18 +101,16 @@ namespace void setup() { - // High speed output so we don't stall on Serial with mutex locked - Serial.begin(115200); + Serial.begin(9600); while (!Serial); // This is ATMega328 specific ADMUX = bit(REFS0); // AVcc as reference - // Start monitoring and print task with same priority to test - // round-robin scheduling. - monitoring_task.start(1); + // Start both tasks print_task.start(1); + monitoring_task.start(2); } void loop() diff --git a/keywords.txt b/keywords.txt index aa266b0..e03d227 100644 --- a/keywords.txt +++ b/keywords.txt @@ -17,6 +17,11 @@ finalizePostFromInterrupt KEYWORD2 yield KEYWORD2 msleep KEYWORD2 wait KEYWORD2 +beginCriticalSection KEYWORD2 +endCriticalSection KEYWORD2 +lock KEYWORD2 +unlock KEYWORD2 +getFillLevel KEYWORD2 push KEYWORD2 preparePushFromInterrupt KEYWORD2 pushFromInterrupt KEYWORD2 @@ -25,7 +30,3 @@ pop KEYWORD2 preparePopFromInterrupt KEYWORD2 popFromInterrupt KEYWORD2 finalizePopFromInterrupt KEYWORD2 -lock KEYWORD2 -unlock KEYWORD2 -beginCriticalSection KEYWORD2 -endCriticalSection KEYWORD2 diff --git a/library.properties b/library.properties index 81386e4..f2bfed3 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=frt -version=0.0.1 +version=0.9.0 author=Flössie maintainer=Flössie sentence=Lightweight, easy-to-use wrapper around the Arduino_FreeRTOS_Library.