Austin Schuh | 208337d | 2022-01-01 14:29:11 -0800 | [diff] [blame] | 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 | |
Ravago Jones | d208ae7 | 2023-02-13 02:24:07 -0800 | [diff] [blame^] | 19 | #define __PICO_STRING(x) #x |
| 20 | #define __PICO_XSTRING(x) __PICO_STRING(x) |
| 21 | |
Austin Schuh | 208337d | 2022-01-01 14:29:11 -0800 | [diff] [blame] | 22 | #include "pico/types.h" |
| 23 | #include "pico/version.h" |
Ravago Jones | d208ae7 | 2023-02-13 02:24:07 -0800 | [diff] [blame^] | 24 | |
| 25 | // 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 |
| 26 | #ifdef PICO_CONFIG_HEADER |
| 27 | #include __PICO_XSTRING(PICO_CONFIG_HEADER) |
| 28 | #else |
Austin Schuh | 208337d | 2022-01-01 14:29:11 -0800 | [diff] [blame] | 29 | #include "pico/config.h" |
Ravago Jones | d208ae7 | 2023-02-13 02:24:07 -0800 | [diff] [blame^] | 30 | #endif |
Austin Schuh | 208337d | 2022-01-01 14:29:11 -0800 | [diff] [blame] | 31 | #include "pico/platform.h" |
| 32 | #include "pico/error.h" |
| 33 | |
| 34 | #endif |