/* * Copyright (c) 2020 Raspberry Pi (Trading) Ltd. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef PICO_H_ #define PICO_H_ /** \file pico.h * \defgroup pico_base pico_base * * Core types and macros for the Raspberry Pi Pico SDK. This header is intended to be included by all source code * as it includes configuration headers and overrides in the correct order * * This header may be included by assembly code */ #define __PICO_STRING(x) #x #define __PICO_XSTRING(x) __PICO_STRING(x) #include "pico/types.h" #include "pico/version.h" // 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, default=none, group=pico_base #ifdef PICO_CONFIG_HEADER #include __PICO_XSTRING(PICO_CONFIG_HEADER) #else #include "pico/config.h" #endif #include "pico/platform.h" #include "pico/error.h" #endif