Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pico: revert using nano.specs #867

Merged
merged 2 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion 32blit-pico/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ function(blit_executable NAME)

add_executable(${NAME} ${SOURCES})
target_link_libraries(${NAME} BlitHalPico BlitEngine)
target_link_options(${NAME} PUBLIC -specs=nano.specs -u _printf_float)

pico_enable_stdio_uart(${NAME} 1)
pico_enable_stdio_usb(${NAME} 0)
Expand Down
5 changes: 5 additions & 0 deletions 32blit-pico/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ using namespace blit;

static blit::AudioChannel channels[CHANNEL_COUNT];

// override terminate handler to save ~20-30k
namespace __cxxabiv1 {
std::terminate_handler __terminate_handler = std::abort;
}

static uint32_t now() {
return to_ms_since_boot(get_absolute_time());
}
Expand Down
Loading