-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update pico SDK to v2.1.0 with RP2350 support (#2918)
- Loading branch information
Showing
42 changed files
with
828 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* heap.c | ||
*/ | ||
|
||
#include "include/heap.h" | ||
#include <malloc.h> | ||
#include <cstdlib> | ||
#include <new> | ||
|
||
extern "C" uint32_t system_get_free_heap_size(void) | ||
{ | ||
// These are set by linker | ||
extern char __end__; | ||
extern char __StackLimit; | ||
uint32_t maxHeap = (uint32_t)&__StackLimit - (uint32_t)&__end__; | ||
struct mallinfo m = mallinfo(); | ||
return maxHeap - m.uordblks; | ||
} | ||
|
||
void* operator new(size_t size) | ||
{ | ||
return malloc(size); | ||
} | ||
|
||
void* operator new(size_t size, const std::nothrow_t&) | ||
{ | ||
return malloc(size); | ||
} | ||
|
||
void* operator new[](size_t size) | ||
{ | ||
return malloc(size); | ||
} | ||
|
||
void* operator new[](size_t size, const std::nothrow_t&) | ||
{ | ||
return malloc(size); | ||
} | ||
|
||
void operator delete(void* ptr) | ||
{ | ||
free(ptr); | ||
} | ||
|
||
void operator delete[](void* ptr) | ||
{ | ||
free(ptr); | ||
} | ||
|
||
void operator delete(void* ptr, size_t) | ||
{ | ||
free(ptr); | ||
} | ||
|
||
void operator delete[](void* ptr, size_t) | ||
{ | ||
free(ptr); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule picotool
updated
98 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/lib/whereami/whereami.c b/lib/whereami/whereami.c | ||
index d052e14..940736e 100644 | ||
--- a/lib/whereami/whereami.c | ||
+++ b/lib/whereami/whereami.c | ||
@@ -60,8 +60,9 @@ extern "C" { | ||
#if defined(_MSC_VER) | ||
#pragma warning(push, 3) | ||
#endif | ||
+#undef _WIN32_WINNT | ||
+#define _WIN32_WINNT _WIN32_WINNT_WINXP | ||
#include <windows.h> | ||
-#include <intrin.h> | ||
#if defined(_MSC_VER) | ||
#pragma warning(pop) | ||
#endif | ||
diff --git a/picoboot_connection/picoboot_connection.c b/picoboot_connection/picoboot_connection.c | ||
index 265608c..e487714 100644 | ||
--- a/picoboot_connection/picoboot_connection.c | ||
+++ b/picoboot_connection/picoboot_connection.c | ||
@@ -9,6 +9,8 @@ | ||
#include <stdbool.h> | ||
#include <inttypes.h> | ||
|
||
+#define static_assert _Static_assert | ||
+ | ||
#include "picoboot_connection.h" | ||
#include "boot/bootrom_constants.h" | ||
#include "pico/stdio_usb/reset_interface.h" |
Oops, something went wrong.