mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
Add some optional header includes, to make per-target changes to config easier (#851)
This commit is contained in:
parent
d3dcbb8292
commit
6389927cf9
2 changed files with 14 additions and 0 deletions
|
|
@ -16,9 +16,18 @@
|
|||
* 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"
|
||||
|
||||
|
|
|
|||
|
|
@ -18,4 +18,9 @@
|
|||
|
||||
#include "pico/config_autogen.h"
|
||||
|
||||
// PICO_CONFIG: PICO_CONFIG_RTOS_ADAPTER_HEADER, unquoted path to header include in the default pico/config.h for RTOS integration defines that must be included in all sources, default=none, group=pico_base
|
||||
#ifdef PICO_CONFIG_RTOS_ADAPTER_HEADER
|
||||
#include __PICO_XSTRING(PICO_CONFIG_RTOS_ADAPTER_HEADER)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Reference in a new issue