v2.0.0
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
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
platform.h