aboutsummaryrefslogtreecommitdiffstats
path: root/lib/pico-sdk/pico-sdk.patch
blob: 0cdd4229242121f99d04cb9394541804682af77c (plain)
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
diff --git a/lib/pico-sdk/hardware/address_mapped.h b/lib/pico-sdk/hardware/address_mapped.h
index b384f5572..635a275b5 100644
--- a/lib/pico-sdk/hardware/address_mapped.h
+++ b/lib/pico-sdk/hardware/address_mapped.h
@@ -7,7 +7,10 @@
 #ifndef _HARDWARE_ADDRESS_MAPPED_H
 #define _HARDWARE_ADDRESS_MAPPED_H
 
-#include "pico.h"
+//#include "pico.h"
+#define __force_inline inline
+#define static_assert(a,b)
+#define valid_params_if(a,b)
 #include "hardware/regs/addressmap.h"
 
 /** \file address_mapped.h
diff --git a/lib/pico-sdk/rp2040/cmsis_include/RP2040.h b/lib/pico-sdk/rp2040/cmsis_include/RP2040.h
index 8da431fae..be661392c 100644
--- a/lib/pico-sdk/rp2040/cmsis_include/RP2040.h
+++ b/lib/pico-sdk/rp2040/cmsis_include/RP2040.h
@@ -2572,6 +2572,7 @@ typedef struct {                                /*!< RTC Structure
   * @{
   */
 
+#if 0
 #define RESETS_BASE                 0x4000C000UL
 #define PSM_BASE                    0x40010000UL
 #define CLOCKS_BASE                 0x40008000UL
@@ -2608,6 +2609,7 @@ typedef struct {                                /*!< RTC Structure
 #define TBMAN_BASE                  0x4006C000UL
 #define VREG_AND_CHIP_RESET_BASE    0x40064000UL
 #define RTC_BASE                    0x4005C000UL
+#endif
 
 /** @} */ /* End of group Device_Peripheral_peripheralAddr */
 
diff --git a/lib/pico-sdk/rp2040/pico/asm_helper.S b/lib/pico-sdk/rp2040/pico/asm_helper.S
index aff1fc9ae..59c67db19 100644
--- a/lib/pico-sdk/rp2040/pico/asm_helper.S
+++ b/lib/pico-sdk/rp2040/pico/asm_helper.S
@@ -4,7 +4,7 @@
  * SPDX-License-Identifier: BSD-3-Clause
  */
 
-#include "pico.h"
+//#include "pico.h"
 
 # note we don't do this by default in this file for backwards comaptibility with user code
 # that may include this file, but not use unified syntax. Note that this macro does equivalent