Skip to content

Commit

Permalink
Merge pull request #1058 from veremenko-y/pico_cleanup
Browse files Browse the repository at this point in the history
PI Pico: Save about 6K of RAM
  • Loading branch information
EtchedPixels authored Apr 4, 2024
2 parents 83151c8 + 557c6fb commit d39baa9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ size.report
.obj
*.elf
bin
*.debug
10 changes: 7 additions & 3 deletions Kernel/platform/platform-rpipico/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ set(CMAKE_C_STANDARD 11)
set(CMAKE_BUILD_TYPE Debug)
set(PICO_COPY_TO_RAM 1)

add_compile_definitions(
PICO_HEAP_SIZE=0x0
PICO_NO_BINARY_INFO=1
PICO_TIME_DEFAULT_ALARM_POOL_DISABLED
)

pico_sdk_init()

include_directories(
Expand Down Expand Up @@ -70,9 +76,7 @@ target_link_libraries(fuzix
pico_multicore
hardware_flash
hardware_spi
hardware_uart
tinyusb_device_unmarked
tinyusb_board
tinyusb_device
)

pico_set_float_implementation(fuzix none)
Expand Down
4 changes: 3 additions & 1 deletion Kernel/platform/platform-rpipico/picosdk.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#define MANGLED 0
#include "mangle.h"

#include "pico/stdlib.h"
#include <pico/platform.h>
#include <hardware/gpio.h>
#include <hardware/regs/addressmap.h>

#define MANGLED 1
#include "mangle.h"
Expand Down

0 comments on commit d39baa9

Please sign in to comment.