Skip to content

Commit 9eae58c

Browse files
Unbreak bare metal, fix missing library
1 parent 5912d41 commit 9eae58c

File tree

13 files changed

+19
-28
lines changed

13 files changed

+19
-28
lines changed

cores/rp2040/lwip_wrap.cpp

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -843,23 +843,23 @@ extern "C" {
843843
}
844844

845845
#ifndef __FREERTOS
846-
extern bool __real_cyw43_driver_init(async_context_t *context)'
846+
extern bool __real_cyw43_driver_init(async_context_t *context);
847847
bool __wrap_cyw43_driver_init(async_context_t *context) {
848-
return __real_cyw43_driver_init(async_context_t *context);
848+
return __real_cyw43_driver_init(context);
849849
}
850850
extern void __real_cyw43_driver_deinit(async_context_t *context);
851851
void __wrap_cyw43_driver_deinit(async_context_t *context) {
852852
__real_cyw43_driver_deinit(context);
853853
}
854-
extern void __real_cyw43_thread_enter(void);
854+
extern void __real_cyw43_thread_enter();
855855
void __wrap_cyw43_thread_enter() {
856856
__real_cyw43_thread_enter();
857857
}
858-
extern void __real_cyw43_thread_exit(void);
858+
extern void __real_cyw43_thread_exit();
859859
void __wrap_cyw43_thread_exit() {
860860
__real_cyw43_thread_exit();
861861
}
862-
extern void __real_cyw43_thread_lock_check(void);
862+
extern void __real_cyw43_thread_lock_check();
863863
void __wrap_cyw43_thread_lock_check() {
864864
__real_cyw43_thread_lock_check();
865865
}
@@ -875,10 +875,18 @@ extern "C" {
875875
void __wrap_cyw43_delay_us(uint32_t us) {
876876
__real_cyw43_delay_us(us);
877877
}
878-
extern void __real_cyw43_post_poll_hook(void);
879-
void __wrap_cyw43_post_poll_hook(void) {
878+
extern void __real_cyw43_post_poll_hook();
879+
void __wrap_cyw43_post_poll_hook() {
880880
__real_cyw43_post_poll_hook();
881881
}
882+
extern void __real_cyw43_await_background_or_timeout_us(uint32_t timeout_us);
883+
void __wrap_cyw43_await_background_or_timeout_us(uint32_t timeout_us) {
884+
__real_cyw43_await_background_or_timeout_us(timeout_us);
885+
}
886+
extern void __real_cyw43_schedule_internal_poll_dispatch(void (*func)());
887+
void __wrap_cyw43_schedule_internal_poll_dispatch(void (*func)()) {
888+
__real_cyw43_schedule_internal_poll_dispatch(func);
889+
}
882890

883891
#endif
884892

lib/core_wrap.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,5 @@
8989
-Wl,--wrap=cyw43_delay_ms
9090
-Wl,--wrap=cyw43_delay_us
9191
-Wl,--wrap=cyw43_post_poll_hook
92+
-Wl,--wrap=cyw43_schedule_internal_poll_dispatch
93+

lib/rp2040/liblwip-bt.a

-588 Bytes
Binary file not shown.

lib/rp2040/liblwip.a

35.2 KB
Binary file not shown.

lib/rp2040/libpico.a

0 Bytes
Binary file not shown.

lib/rp2350-riscv/liblwip-bt.a

-1.05 KB
Binary file not shown.

lib/rp2350-riscv/liblwip.a

-1.05 KB
Binary file not shown.

lib/rp2350-riscv/libpico.a

0 Bytes
Binary file not shown.

lib/rp2350/liblwip-bt.a

-520 Bytes
Binary file not shown.

lib/rp2350/liblwip.a

-524 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)