Skip to content

Commit

Permalink
Merge pull request #867 from Daft-Freak/pico-no-nano
Browse files Browse the repository at this point in the history
pico: revert using nano.specs
  • Loading branch information
Daft-Freak authored Nov 5, 2024
2 parents 788e0d2 + 9fb1f8e commit 349bd9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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

0 comments on commit 349bd9a

Please sign in to comment.