From 8ae69a3463dc2054fa6f9dcfeeec00e30cc98a6a Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Sat, 8 May 2021 11:13:26 -0700 Subject: [PATCH] Minor keyword and mutex fixes for multicore --- cores/rp2040/main.cpp | 4 ++-- keywords.txt | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cores/rp2040/main.cpp b/cores/rp2040/main.cpp index 27fd1a2d..a1375529 100644 --- a/cores/rp2040/main.cpp +++ b/cores/rp2040/main.cpp @@ -25,8 +25,7 @@ RP2040 rp2040; volatile bool _MFIFO::_otherIdled = false; - -auto_init_mutex(_pioMutex); +mutex_t _pioMutex; extern void setup(); @@ -58,6 +57,7 @@ extern "C" int main() { set_sys_clock_khz(F_CPU / 1000, true); #endif + mutex_init(&_pioMutex); initVariant(); #ifndef DISABLE_USB_SERIAL diff --git a/keywords.txt b/keywords.txt index 93c21bbd..82358c40 100644 --- a/keywords.txt +++ b/keywords.txt @@ -9,6 +9,8 @@ ####################################### # Methods and Functions (KEYWORD2) ####################################### +setup1 KEYWORD2 +loop2 KEYWORD2 analogWriteFreq KEYWORD2 analogWriteRange KEYWORD2 analogWriteResolution KEYWORD2