Skip to content

Commit

Permalink
refactor: The Arduino config moved to the project's CMakeLists.txt
Browse files Browse the repository at this point in the history
Signed-off-by: Ota Fejfar <[email protected]>
  • Loading branch information
fejfao1 committed Mar 6, 2024
1 parent 4febdfa commit 0ae8e32
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@ target_compile_definitions(${NEURONWIRED} PUBLIC
-DBOARD_PRODUCT="DEFY"
-DUSB_PRODUCT="DEFY"

-DARDUINO_RASPBERRY_PI_PICO
-DARDUINO_ARCH_RP2040
-DARDUINO=10804
-DCFG_DEBUG=0
-DLFS_NO_ASSERT
-DUSE_LFXO
-DUSBCON
-DUSE_TINYUSB

-DEEPROM_EMULATION_SIZE=8192
-DKALEIDOSCOPE_HARDWARE_H="Kaleidoscope-Hardware-Dygma-DefyWN.h"
-DKALEIDOSCOPE_LED_CONTROL_H="kaleidoscope/plugin/LEDControl.h"
Expand Down
11 changes: 0 additions & 11 deletions lib/Arduino/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
add_library(Arduino INTERFACE)

target_compile_definitions(Arduino INTERFACE
-DARDUINO_RASPBERRY_PI_PICO
-DARDUINO_ARCH_RP2040
-DARDUINO=10804
-DCFG_DEBUG=0
-DLFS_NO_ASSERT
-DUSE_LFXO
-DUSBCON
-DUSE_TINYUSB
)

target_include_directories(Arduino
INTERFACE
cores/rp2040
Expand Down

0 comments on commit 0ae8e32

Please sign in to comment.