pico.h
Go to the documentation of this file.
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 
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