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 * \brief Core types and macros for the Raspberry Pi Pico SDK. 14 * 15 * This header is intended to be included by all source code 16 * as it includes configuration headers and overrides in the correct order 17 * 18 * This header may be included by assembly code 19 */ 20 21 // We may be included by assembly which can't include <cdefs.h> 22 #define __PICO_STRING(x) #x 23 #define __PICO_XSTRING(x) __PICO_STRING(x) 24 #define __PICO_CONCAT1(x, y) x ## y 25 26 #include "pico/types.h" 27 #include "pico/version.h" 28 29 // 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 30 #ifdef PICO_CONFIG_HEADER 31 #include __PICO_XSTRING(PICO_CONFIG_HEADER) 32 #else 33 #include "pico/config.h" 34 #endif 35 #include "pico/platform.h" 36 #include "pico/error.h" 37 38 #endif 39