7#ifndef _PICO_PLATFORM_COMMON_H
8#define _PICO_PLATFORM_COMMON_H
22#ifdef PICO_PLATFORM_TEST_HEADER
23#include __PICO_XSTRING(PICO_PLATFORM_TEST_HEADER)
27#ifndef PICO_MINIMAL_STORED_VECTOR_TABLE
28#define PICO_MINIMAL_STORED_VECTOR_TABLE 0
31#if PICO_MINIMAL_STORED_VECTOR_TABLE && (PICO_NO_FLASH && !defined(__riscv))
32#if PICO_NUM_VTABLE_IRQS
33#warning PICO_NUM_VTABLE_IRQS is specied with PICO_MINIMAL_STORED_VECTOR_TABLE for NO_FLASH Arm binary; ignored
34#undef PICO_NUM_VTABLE_IRQS
36#define PICO_NUM_VTABLE_IRQS 0
39#ifndef PICO_NUM_VTABLE_IRQS
40#define PICO_NUM_VTABLE_IRQS NUM_IRQS
47#ifndef PICO_NO_FPGA_CHECK
48#define PICO_NO_FPGA_CHECK 1
52#ifndef PICO_NO_SIM_CHECK
53#define PICO_NO_SIM_CHECK 1
61static inline bool running_on_fpga(
void) {
return false;}
63bool running_on_fpga(
void);
67static inline bool running_in_sim(
void) {
return false;}
69bool running_in_sim(
void);
78#ifndef tight_loop_contents
90#ifndef blocked_waiter_wakeup
94#define host_safe_hw_ptr(x) ((uintptr_t)(x))
95#define native_safe_hw_ptr(x) host_safe_hw_ptr(x)