diff --git a/src/common/pico_base/CMakeLists.txt b/src/common/pico_base/CMakeLists.txt index 76b5090..ef051bb 100644 --- a/src/common/pico_base/CMakeLists.txt +++ b/src/common/pico_base/CMakeLists.txt @@ -10,5 +10,4 @@ if (NOT TARGET pico_base_headers) list(APPEND PICO_SDK_POST_LIST_FILES ${CMAKE_CURRENT_LIST_DIR}/generate_config_header.cmake) pico_promote_common_scope_vars() -endif() - +endif() \ No newline at end of file diff --git a/src/host/pico_platform/include/pico/platform.h b/src/host/pico_platform/include/pico/platform.h index a36f0e2..f9a7308 100644 --- a/src/host/pico_platform/include/pico/platform.h +++ b/src/host/pico_platform/include/pico/platform.h @@ -143,6 +143,9 @@ static inline void __compiler_memory_barrier(void) { uint get_core_num(); +static inline uint __get_current_exception(void) { + return 0; +} #ifdef __cplusplus } #endif diff --git a/src/host/pico_stdio/CMakeLists.txt b/src/host/pico_stdio/CMakeLists.txt index ee9fc5c..82a3148 100644 --- a/src/host/pico_stdio/CMakeLists.txt +++ b/src/host/pico_stdio/CMakeLists.txt @@ -1,5 +1,5 @@ if (NOT TARGET pico_stdio) - pico_add_library(pico_stdio NOFLAG) + pico_add_library(pico_stdio) target_include_directories(pico_stdio_headers INTERFACE ${CMAKE_CURRENT_LIST_DIR}/include) diff --git a/src/rp2_common/pico_cyw43_arch/CMakeLists.txt b/src/rp2_common/pico_cyw43_arch/CMakeLists.txt index 1a0a191..db5e498 100644 --- a/src/rp2_common/pico_cyw43_arch/CMakeLists.txt +++ b/src/rp2_common/pico_cyw43_arch/CMakeLists.txt @@ -1,6 +1,6 @@ if (PICO_CYW43_SUPPORTED) # set by BOARD=pico-w if (TARGET cyw43_driver_picow) - pico_add_library(pico_cyw43_arch NOFLAG) + pico_add_library(pico_cyw43_arch) target_sources(pico_cyw43_arch INTERFACE ${CMAKE_CURRENT_LIST_DIR}/cyw43_arch.c ${CMAKE_CURRENT_LIST_DIR}/cyw43_arch_poll.c diff --git a/src/rp2_common/pico_divider/CMakeLists.txt b/src/rp2_common/pico_divider/CMakeLists.txt index eb4fc3e..13ce960 100644 --- a/src/rp2_common/pico_divider/CMakeLists.txt +++ b/src/rp2_common/pico_divider/CMakeLists.txt @@ -3,7 +3,7 @@ if (NOT TARGET pico_divider) pico_add_impl_library(pico_divider) # no custom implementation; falls thru to compiler - add_library(pico_divider_compiler INTERFACE) + pico_add_library(pico_divider_compiler) # add alias "default" which is just hardware. add_library(pico_divider_default INTERFACE) @@ -25,7 +25,7 @@ if (NOT TARGET pico_divider) hardware_regs ) - add_library(pico_divider_hardware INTERFACE) + pico_add_library(pico_divider_hardware) target_link_libraries(pico_divider_hardware INTERFACE pico_divider_hardware_explicit) diff --git a/src/rp2_common/pico_fix/rp2040_usb_device_enumeration/CMakeLists.txt b/src/rp2_common/pico_fix/rp2040_usb_device_enumeration/CMakeLists.txt index 33021fc..aa1a133 100644 --- a/src/rp2_common/pico_fix/rp2040_usb_device_enumeration/CMakeLists.txt +++ b/src/rp2_common/pico_fix/rp2040_usb_device_enumeration/CMakeLists.txt @@ -1,4 +1,4 @@ -pico_add_library(pico_fix_rp2040_usb_device_enumeration NOFLAG) +pico_add_library(pico_fix_rp2040_usb_device_enumeration) target_sources(pico_fix_rp2040_usb_device_enumeration INTERFACE ${CMAKE_CURRENT_LIST_DIR}/rp2040_usb_device_enumeration.c diff --git a/src/rp2_common/pico_float/CMakeLists.txt b/src/rp2_common/pico_float/CMakeLists.txt index 26c1c01..0f3107d 100644 --- a/src/rp2_common/pico_float/CMakeLists.txt +++ b/src/rp2_common/pico_float/CMakeLists.txt @@ -1,6 +1,6 @@ if (NOT TARGET pico_float) # library to be depended on - we make this depend on particular implementations using per target generator expressions - pico_add_library(pico_float NOFLAG) + pico_add_library(pico_float) # no custom implementation; falls thru to compiler pico_add_library(pico_float_compiler) diff --git a/src/rp2_common/pico_int64_ops/CMakeLists.txt b/src/rp2_common/pico_int64_ops/CMakeLists.txt index 0e8e0b1..cdb4607 100644 --- a/src/rp2_common/pico_int64_ops/CMakeLists.txt +++ b/src/rp2_common/pico_int64_ops/CMakeLists.txt @@ -1,7 +1,7 @@ if (NOT TARGET pico_int64_ops) #shims for ROM functions for -lgcc functions (listed below) - pico_add_library(pico_int64_ops NOFLAG) + pico_add_library(pico_int64_ops) # no custom implementation; falls thru to compiler pico_add_library(pico_int64_ops_compiler) diff --git a/src/rp2_common/pico_malloc/CMakeLists.txt b/src/rp2_common/pico_malloc/CMakeLists.txt index 1c0bc21..d6f2a12 100644 --- a/src/rp2_common/pico_malloc/CMakeLists.txt +++ b/src/rp2_common/pico_malloc/CMakeLists.txt @@ -1,6 +1,6 @@ if (NOT TARGET pico_malloc) #shims for ROM functions for -lgcc functions (listed below) - pico_add_library(pico_malloc NOFLAG) + pico_add_library(pico_malloc) target_sources(pico_malloc INTERFACE ${CMAKE_CURRENT_LIST_DIR}/pico_malloc.c diff --git a/src/rp2_common/pico_mem_ops/CMakeLists.txt b/src/rp2_common/pico_mem_ops/CMakeLists.txt index 14562ec..8d66bc6 100644 --- a/src/rp2_common/pico_mem_ops/CMakeLists.txt +++ b/src/rp2_common/pico_mem_ops/CMakeLists.txt @@ -3,7 +3,7 @@ if (NOT TARGET pico_mem_ops) pico_add_library(pico_mem_ops) # no custom implementation; falls thru to compiler - add_library(pico_mem_ops_compiler INTERFACE) + pico_add_library(pico_mem_ops_compiler) # add alias "default" which is just pico. add_library(pico_mem_ops_default INTERFACE) diff --git a/src/rp2_common/pico_printf/CMakeLists.txt b/src/rp2_common/pico_printf/CMakeLists.txt index c92c1f3..a5b95ff 100644 --- a/src/rp2_common/pico_printf/CMakeLists.txt +++ b/src/rp2_common/pico_printf/CMakeLists.txt @@ -1,6 +1,6 @@ if (NOT TARGET pico_printf) # library to be depended on - we make this depend on particular implementations using per target generator expressions - pico_add_library(pico_printf NOFLAG) + pico_add_library(pico_printf) # no custom implementation; falls thru to compiler pico_add_library(pico_printf_compiler) diff --git a/src/rp2_common/pico_runtime/CMakeLists.txt b/src/rp2_common/pico_runtime/CMakeLists.txt index dc68ccc..08a9a50 100644 --- a/src/rp2_common/pico_runtime/CMakeLists.txt +++ b/src/rp2_common/pico_runtime/CMakeLists.txt @@ -1,4 +1,4 @@ -pico_add_library(pico_runtime NOFLAG) +pico_add_library(pico_runtime) target_sources(pico_runtime INTERFACE ${CMAKE_CURRENT_LIST_DIR}/runtime.c diff --git a/src/rp2_common/pico_standard_link/CMakeLists.txt b/src/rp2_common/pico_standard_link/CMakeLists.txt index 57374c1..582b439 100644 --- a/src/rp2_common/pico_standard_link/CMakeLists.txt +++ b/src/rp2_common/pico_standard_link/CMakeLists.txt @@ -1,5 +1,5 @@ if (NOT TARGET pico_standard_link) - pico_add_library(pico_standard_link NOFLAG) + pico_add_library(pico_standard_link) target_sources(pico_standard_link INTERFACE ${CMAKE_CURRENT_LIST_DIR}/crt0.S diff --git a/src/rp2_common/pico_stdio/CMakeLists.txt b/src/rp2_common/pico_stdio/CMakeLists.txt index 5e15b9c..831f58d 100644 --- a/src/rp2_common/pico_stdio/CMakeLists.txt +++ b/src/rp2_common/pico_stdio/CMakeLists.txt @@ -1,5 +1,5 @@ if (NOT TARGET pico_stdio) - pico_add_library(pico_stdio NOFLAG) + pico_add_library(pico_stdio) target_include_directories(pico_stdio_headers INTERFACE ${CMAKE_CURRENT_LIST_DIR}/include) diff --git a/src/rp2_common/pico_stdlib/CMakeLists.txt b/src/rp2_common/pico_stdlib/CMakeLists.txt index a29b896..9869345 100644 --- a/src/rp2_common/pico_stdlib/CMakeLists.txt +++ b/src/rp2_common/pico_stdlib/CMakeLists.txt @@ -6,7 +6,7 @@ option(PICO_STDIO_USB "Globablly enable stdio USB" 0) option(PICO_STDIO_SEMIHOSTING "Globablly enable stdio semihosting" 0) if (NOT TARGET pico_stdlib) - pico_add_impl_library(pico_stdlib NOFLAG) + pico_add_impl_library(pico_stdlib) target_sources(pico_stdlib INTERFACE ${CMAKE_CURRENT_LIST_DIR}/stdlib.c ) diff --git a/src/rp2_common/pico_unique_id/CMakeLists.txt b/src/rp2_common/pico_unique_id/CMakeLists.txt index 8812ff0..b8b63f5 100644 --- a/src/rp2_common/pico_unique_id/CMakeLists.txt +++ b/src/rp2_common/pico_unique_id/CMakeLists.txt @@ -1,4 +1,4 @@ -pico_add_library(pico_unique_id NOFLAG) +pico_add_library(pico_unique_id) target_sources(pico_unique_id INTERFACE ${CMAKE_CURRENT_LIST_DIR}/unique_id.c