Skip to content

Commit 85990ff

Browse files
Support CMSIS and rename conflicting header file (#362)
1 parent 238a6c8 commit 85990ff

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

cores/rp2040/Arduino.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <pins_arduino.h>
3131
#include "hardware/gpio.h" // Required for the port*Register macros
3232
#include "debug_internal.h"
33+
#include <RP2040.h> // CMSIS
3334

3435
// Try and make the best of the old Arduino abs() macro. When in C++, use
3536
// the sane std::abs() call, but for C code use their macro since stdlib abs()
@@ -95,7 +96,7 @@ void analogWriteResolution(int res);
9596
#endif
9697

9798
#include "SerialUART.h"
98-
#include "RP2040.h"
99+
#include "RP2040Support.h"
99100
#include "Bootsel.h"
100101

101102
// Template which will evaluate at *compile time* to a single 32b number
File renamed without changes.

lib/libpico.a

0 Bytes
Binary file not shown.

lib/platform_inc.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
-iwithprefixbefore/pico-sdk/src/common/pico_util/include
1616
-iwithprefixbefore/pico-sdk/src/rp2040/hardware_regs/include
1717
-iwithprefixbefore/pico-sdk/src/rp2040/hardware_structs/include
18+
-iwithprefixbefore/pico-sdk/src/rp2_common/cmsis/include
19+
-iwithprefixbefore/pico-sdk/src/rp2_common/cmsis/stub/CMSIS/Core/Include
20+
-iwithprefixbefore/pico-sdk/src/rp2_common/cmsis/stub/CMSIS/Device/RaspberryPi/RP2040/Include
1821
-iwithprefixbefore/pico-sdk/src/rp2_common/hardware_adc/include
1922
-iwithprefixbefore/pico-sdk/src/rp2_common/hardware_base/include
2023
-iwithprefixbefore/pico-sdk/src/rp2_common/hardware_claim/include

tools/libpico/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ target_link_libraries(pico
5353
hardware_vreg
5454
hardware_watchdog
5555
hardware_xosc
56+
cmsis
5657
pico_bit_ops
5758
pico_bootrom
5859
pico_bootsel_via_double_reset

0 commit comments

Comments
 (0)