From 75978aeaeb40cb33e9e868ae9d891f568cdc2d7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=B6ssie?= Date: Sun, 4 Feb 2018 16:18:58 +0100 Subject: [PATCH] Fix `CriticalSection.ino` and `keywords.txt`, bump version to 0.9.0 --- examples/CriticalSection/CriticalSection.ino | 8 +++----- keywords.txt | 9 +++++---- library.properties | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) 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.