mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
rp2: Replace CMSIS funcs with Pico SDK equivalents.
Pico SDK defines `__dsb()` and `__sev()` so use those instead of the CMSIS equivalents. This matches the use of `__wfi()` in lieu of `__WFI()` and lowers the dependency on CMSIS headers. And then, move the include of "RP2040.h" from the widely-included "mphalport.h" to specific source files that need this header, to keep its inclusion contained. Signed-off-by: Phil Howard <phil@gadgetoid.com>
This commit is contained in:
committed by
Damien George
parent
0dd25a369e
commit
0e261443be
@@ -30,7 +30,6 @@
|
||||
#include "pico/time.h"
|
||||
#include "hardware/clocks.h"
|
||||
#include "hardware/structs/systick.h"
|
||||
#include "RP2040.h" // cmsis, for __WFI
|
||||
#include "pendsv.h"
|
||||
|
||||
#define SYSTICK_MAX (0xffffff)
|
||||
|
||||
Reference in New Issue
Block a user