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