forked from arduino/ArduinoCore-mbed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0055-RP2040-fix-include-paths.patch
51 lines (42 loc) · 1.78 KB
/
0055-RP2040-fix-include-paths.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
From 43afccc8589f445c1e5a4f2670cbba83278f569f Mon Sep 17 00:00:00 2001
From: Martino Facchin <m.facchin@arduino.cc>
Date: Mon, 3 May 2021 14:32:14 +0200
Subject: [PATCH 055/204] RP2040: fix include paths
---
targets/TARGET_RASPBERRYPI/TARGET_RP2040/analogin_api.c | 2 +-
targets/TARGET_RASPBERRYPI/TARGET_RP2040/reset_reason.c | 2 +-
targets/TARGET_RASPBERRYPI/TARGET_RP2040/watchdog_api.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/targets/TARGET_RASPBERRYPI/TARGET_RP2040/analogin_api.c b/targets/TARGET_RASPBERRYPI/TARGET_RP2040/analogin_api.c
index e1773a065c..a5cf6995f9 100644
--- a/targets/TARGET_RASPBERRYPI/TARGET_RP2040/analogin_api.c
+++ b/targets/TARGET_RASPBERRYPI/TARGET_RP2040/analogin_api.c
@@ -1,6 +1,6 @@
#include "mbed_assert.h"
#include "analogin_api.h"
-#include "adc.h"
+#include "hardware/adc.h"
#include "pinmap.h"
#include "PeripheralPins.h"
diff --git a/targets/TARGET_RASPBERRYPI/TARGET_RP2040/reset_reason.c b/targets/TARGET_RASPBERRYPI/TARGET_RP2040/reset_reason.c
index 7e511078c5..83de2cfb9d 100644
--- a/targets/TARGET_RASPBERRYPI/TARGET_RP2040/reset_reason.c
+++ b/targets/TARGET_RASPBERRYPI/TARGET_RP2040/reset_reason.c
@@ -3,7 +3,7 @@
#ifdef DEVICE_RESET_REASON
-#include "structs/resets.h"
+#include "hardware/structs/resets.h"
reset_reason_t hal_reset_reason_get(void)
{
diff --git a/targets/TARGET_RASPBERRYPI/TARGET_RP2040/watchdog_api.c b/targets/TARGET_RASPBERRYPI/TARGET_RP2040/watchdog_api.c
index 007b79c322..b7abac8917 100644
--- a/targets/TARGET_RASPBERRYPI/TARGET_RP2040/watchdog_api.c
+++ b/targets/TARGET_RASPBERRYPI/TARGET_RP2040/watchdog_api.c
@@ -1,6 +1,6 @@
#include "watchdog_api.h"
#include "hardware/watchdog.h"
-#include "structs/watchdog.h"
+#include "hardware/structs/watchdog.h"
#if DEVICE_WATCHDOG
--
2.39.1