Skip to content

Commit 71238cc

Browse files
Clean up CoreMutex and __isFreeRTOS definition (earlephilhower#1312)
See earlephilhower#1311 for more info. __isFreeRTOS is C++ linkage and only used in the core proper (all C++).
1 parent 1dfd9eb commit 71238cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cores/rp2040/Arduino.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ void analogWriteFreq(uint32_t freq);
8484
void analogWriteRange(uint32_t range);
8585
void analogWriteResolution(int res);
8686

87-
// FreeRTOS potential calls
88-
extern bool __isFreeRTOS;
89-
9087
#ifdef __cplusplus
9188
} // extern "C"
9289
#endif
9390

91+
// FreeRTOS potential calls
92+
extern bool __isFreeRTOS;
93+
9494
// Ancient AVR defines
9595
#define HAVE_HWSERIAL0
9696
#define HAVE_HWSERIAL1

cores/rp2040/CoreMutex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ class CoreMutex {
4343
private:
4444
mutex_t *_mutex;
4545
bool _acquired;
46-
u_int8_t _option;
46+
uint8_t _option;
4747
};

0 commit comments

Comments
 (0)