Skip to content

Commit 8ae69a3

Browse files
Minor keyword and mutex fixes for multicore
1 parent 763846a commit 8ae69a3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cores/rp2040/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
RP2040 rp2040;
2626

2727
volatile bool _MFIFO::_otherIdled = false;
28-
29-
auto_init_mutex(_pioMutex);
28+
mutex_t _pioMutex;
3029

3130

3231
extern void setup();
@@ -58,6 +57,7 @@ extern "C" int main() {
5857
set_sys_clock_khz(F_CPU / 1000, true);
5958
#endif
6059

60+
mutex_init(&_pioMutex);
6161
initVariant();
6262

6363
#ifndef DISABLE_USB_SERIAL

keywords.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#######################################
1010
# Methods and Functions (KEYWORD2)
1111
#######################################
12+
setup1 KEYWORD2
13+
loop2 KEYWORD2
1214
analogWriteFreq KEYWORD2
1315
analogWriteRange KEYWORD2
1416
analogWriteResolution KEYWORD2

0 commit comments

Comments
 (0)