|
23 | 23 | #include "pico/platform/compiler.h" |
24 | 24 | #include "pico/platform/sections.h" |
25 | 25 | #include "pico/platform/panic.h" |
| 26 | +#include "pico/platform/common.h" |
26 | 27 | #include "hardware/regs/addressmap.h" |
27 | 28 | #include "hardware/regs/sio.h" |
28 | 29 | #ifdef __riscv |
29 | 30 | #include "hardware/regs/rvcsr.h" |
30 | 31 | #endif |
31 | 32 |
|
32 | | -// PICO_CONFIG: PICO_RP2350A, Whether the current board has an RP2350 in an A (30 GPIO) package, type=bool, default=Usually provided via board header, group=pico_platform |
| 33 | +// PICO_CONFIG: PICO_RP2350A, Whether the current board has an RP2350 in an A (30 GPIO) package - set to 0 for RP2350in a B (48 GPIO) package, type=bool, default=Usually provided via board header, group=pico_platform |
33 | 34 | #if 0 // make tooling checks happy |
34 | 35 | #define PICO_RP2350A 0 |
35 | 36 | #endif |
|
66 | 67 |
|
67 | 68 | #ifndef __ASSEMBLER__ |
68 | 69 |
|
69 | | -/*! \brief No-op function for the body of tight loops |
70 | | - * \ingroup pico_platform |
71 | | - * |
72 | | - * No-op function intended to be called by any tight hardware polling loop. Using this ubiquitously |
73 | | - * makes it much easier to find tight loops, but also in the future \#ifdef-ed support for lockup |
74 | | - * debugging might be added |
75 | | - */ |
76 | | -static __force_inline void tight_loop_contents(void) {} |
77 | | - |
78 | 70 | /*! \brief Helper method to busy-wait for at least the given number of cycles |
79 | 71 | * \ingroup pico_platform |
80 | 72 | * |
@@ -108,27 +100,6 @@ static inline void busy_wait_at_least_cycles(uint32_t minimum_cycles) { |
108 | 100 | ); |
109 | 101 | } |
110 | 102 |
|
111 | | -// PICO_CONFIG: PICO_NO_FPGA_CHECK, Remove the FPGA platform check for small code size reduction, type=bool, default=1, advanced=true, group=pico_runtime |
112 | | -#ifndef PICO_NO_FPGA_CHECK |
113 | | -#define PICO_NO_FPGA_CHECK 1 |
114 | | -#endif |
115 | | - |
116 | | -// PICO_CONFIG: PICO_NO_SIM_CHECK, Remove the SIM platform check for small code size reduction, type=bool, default=1, advanced=true, group=pico_runtime |
117 | | -#ifndef PICO_NO_SIM_CHECK |
118 | | -#define PICO_NO_SIM_CHECK 1 |
119 | | -#endif |
120 | | - |
121 | | -#if PICO_NO_FPGA_CHECK |
122 | | -static inline bool running_on_fpga(void) {return false;} |
123 | | -#else |
124 | | -bool running_on_fpga(void); |
125 | | -#endif |
126 | | -#if PICO_NO_SIM_CHECK |
127 | | -static inline bool running_in_sim(void) {return false;} |
128 | | -#else |
129 | | -bool running_in_sim(void); |
130 | | -#endif |
131 | | - |
132 | 103 | /*! \brief Execute a breakpoint instruction |
133 | 104 | * \ingroup pico_platform |
134 | 105 | */ |
@@ -213,9 +184,6 @@ __force_inline static bool pico_processor_state_is_nonsecure(void) { |
213 | 184 | #endif |
214 | 185 | } |
215 | 186 |
|
216 | | -#define host_safe_hw_ptr(x) ((uintptr_t)(x)) |
217 | | -#define native_safe_hw_ptr(x) host_safe_hw_ptr(x) |
218 | | - |
219 | 187 | /*! \brief Returns the RP2350 chip revision number |
220 | 188 | * \ingroup pico_platform |
221 | 189 | * @return the RP2350 chip revision number (1 for B0/B1, 2 for B2) |
|
0 commit comments