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:
Phil Howard
2024-06-27 14:51:12 +01:00
committed by Damien George
parent 0dd25a369e
commit 0e261443be
4 changed files with 5 additions and 4 deletions

View File

@@ -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)