blob: 784566e0328870521c5ad55b6ddbeca3489d8342 [file] [log] [blame]
Austin Schuh208337d2022-01-01 14:29:11 -08001/*
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 Jonesd208ae72023-02-13 02:24:07 -080019#define __PICO_STRING(x) #x
20#define __PICO_XSTRING(x) __PICO_STRING(x)
21
Austin Schuh208337d2022-01-01 14:29:11 -080022#include "pico/types.h"
23#include "pico/version.h"
Ravago Jonesd208ae72023-02-13 02:24:07 -080024
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 Schuh208337d2022-01-01 14:29:11 -080029#include "pico/config.h"
Ravago Jonesd208ae72023-02-13 02:24:07 -080030#endif
Austin Schuh208337d2022-01-01 14:29:11 -080031#include "pico/platform.h"
32#include "pico/error.h"
33
34#endif