Minor keyword and mutex fixes for multicore

parent 763846ae
...@@ -25,8 +25,7 @@ ...@@ -25,8 +25,7 @@
RP2040 rp2040; RP2040 rp2040;
volatile bool _MFIFO::_otherIdled = false; volatile bool _MFIFO::_otherIdled = false;
mutex_t _pioMutex;
auto_init_mutex(_pioMutex);
extern void setup(); extern void setup();
...@@ -58,6 +57,7 @@ extern "C" int main() { ...@@ -58,6 +57,7 @@ extern "C" int main() {
set_sys_clock_khz(F_CPU / 1000, true); set_sys_clock_khz(F_CPU / 1000, true);
#endif #endif
mutex_init(&_pioMutex);
initVariant(); initVariant();
#ifndef DISABLE_USB_SERIAL #ifndef DISABLE_USB_SERIAL
......
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
####################################### #######################################
# Methods and Functions (KEYWORD2) # Methods and Functions (KEYWORD2)
####################################### #######################################
setup1 KEYWORD2
loop2 KEYWORD2
analogWriteFreq KEYWORD2 analogWriteFreq KEYWORD2
analogWriteRange KEYWORD2 analogWriteRange KEYWORD2
analogWriteResolution KEYWORD2 analogWriteResolution KEYWORD2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment