1 /* 2 * Copyright (c) 2020 Raspberry Pi (Trading) Ltd. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef _PICO_H 8 #define _PICO_H 9 10 /** \file pico.h 11 * \defgroup pico_base pico_base 12 * 13 * Core types and macros for the Raspberry Pi Pico SDK. This header is intended to be included by all source code 14 * as it includes configuration headers and overrides in the correct order 15 * 16 * This header may be included by assembly code 17 */ 18 19 // We may be included by assembly which cant include <cdefs.h> 20 #define __PICO_STRING(x) #x 21 #define __PICO_XSTRING(x) __PICO_STRING(x) 22 #define __PICO_CONCAT1(x, y) x ## y 23 24 #include "pico/types.h" 25 #include "pico/version.h" 26 27 // PICO_CONFIG: PICO_CONFIG_HEADER, unquoted path to header include in place of the default pico/config.h which may be desirable for build systems which can't easily generate the config_autogen header, group=pico_base 28 #ifdef PICO_CONFIG_HEADER 29 #include __PICO_XSTRING(PICO_CONFIG_HEADER) 30 #else 31 #include "pico/config.h" 32 #endif 33 #include "pico/platform.h" 34 #include "pico/error.h" 35 36 #endif 37