mirror of https://github.com/rusefi/ChibiOS.git
Bindings for Pico-SDK.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14079 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
748ce8d634
commit
de273b8b04
|
@ -86,7 +86,7 @@ endif
|
|||
PROJECT = ch
|
||||
|
||||
# Target settings.
|
||||
MCU = cortex-m0
|
||||
MCU = cortex-m0plus
|
||||
|
||||
# Imported source files and paths.
|
||||
CHIBIOS := ../../..
|
||||
|
@ -112,6 +112,7 @@ include $(CHIBIOS)/tools/mk/autobuild.mk
|
|||
include $(CHIBIOS)/test/lib/test.mk
|
||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||
include $(CHIBIOS)/os/various/pico_bindings/pico-sdk.mk
|
||||
|
||||
# Define linker script file here
|
||||
LDSCRIPT= $(STARTUPLD)/RP2040_RAM.ld
|
||||
|
@ -120,6 +121,7 @@ LDSCRIPT= $(STARTUPLD)/RP2040_RAM.ld
|
|||
# setting.
|
||||
CSRC = $(ALLCSRC) \
|
||||
$(TESTSRC) \
|
||||
$(PICOSDKROOT)/src/rp2_common/hardware_clocks/clocks.c \
|
||||
main.c
|
||||
|
||||
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#include "boards/pico.h"
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
// ---------------------------------------
|
||||
// THIS FILE IS AUTOGENERATED; DO NOT EDIT
|
||||
// ---------------------------------------
|
||||
|
||||
#ifndef _PICO_VERSION_H
|
||||
#define _PICO_VERSION_H
|
||||
|
||||
#define PICO_SDK_VERSION_MAJOR 1
|
||||
#define PICO_SDK_VERSION_MINOR 1
|
||||
#define PICO_SDK_VERSION_REVISION 0
|
||||
#define PICO_SDK_VERSION_STRING "1.1.0"
|
||||
|
||||
#endif
|
|
@ -0,0 +1,22 @@
|
|||
# Pico-SDK files.
|
||||
PICOSDKROOT := $(CHIBIOS)/ext/pico-sdk
|
||||
PICOSDKSRC =
|
||||
|
||||
PICOSDKINC = $(CHIBIOS)//os/various/pico_bindings/dumb/include \
|
||||
$(PICOSDKROOT)/src/common/pico_base/include \
|
||||
$(PICOSDKROOT)/src/rp2_common/pico_platform/include \
|
||||
$(PICOSDKROOT)/src/rp2_common/hardware_base/include \
|
||||
$(PICOSDKROOT)/src/rp2_common/hardware_clocks/include \
|
||||
$(PICOSDKROOT)/src/rp2_common/hardware_gpio/include \
|
||||
$(PICOSDKROOT)/src/rp2_common/hardware_irq/include \
|
||||
$(PICOSDKROOT)/src/rp2_common/hardware_pll/include \
|
||||
$(PICOSDKROOT)/src/rp2_common/hardware_resets/include \
|
||||
$(PICOSDKROOT)/src/rp2_common/hardware_xosc/include \
|
||||
$(PICOSDKROOT)/src/rp2_common/hardware_watchdog/include \
|
||||
$(PICOSDKROOT)/src/rp2040/hardware_regs/include \
|
||||
$(PICOSDKROOT)/src/rp2040/hardware_structs/include \
|
||||
$(PICOSDKROOT)/src/boards/include
|
||||
|
||||
# Shared variables
|
||||
ALLCSRC += $(PICOSDKSRC)
|
||||
ALLINC += $(PICOSDKINC)
|
Loading…
Reference in New Issue