Skip to content
Open
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
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@
[submodule "plasma"]
path = plasma
url = https://github.com/grblHAL/Plugin_plasma/
[submodule "flexgpio"]
path = flexgpio
url = https://github.com/Expatria-Technologies/plugin_FlexGPIO.git
11 changes: 9 additions & 2 deletions CMakeLists.txt
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not change configs not related to adding the new code.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cmake_minimum_required(VERSION 3.13)
option(ADD_HPGL "Add HPGL plugin" OFF)
# Note: WiFi and Ethernet cannot be enabled at the same time!
option(ADD_WIFI "Add WiFi networking" OFF)
option(ADD_ETHERNET "Add Ethernet networking" OFF)
option(ADD_ETHERNET "Add Ethernet networking" ON)
option(ADD_BLUETOOTH "Add Bluetooth" OFF)
# Set LWIP_DIR below to the root path of lwIP sources when the following is set ON!
option(ADD_mDNS "Add mDNS service" OFF)
Expand All @@ -26,7 +26,7 @@ option(ADD_MQTT "Add MQTT client API" OFF)
option(AddMyPlugin "Add my_plugin.c to build" OFF)

# Select the correct board in VSCode, the following line will be updated accordingly
set(PICO_BOARD pico CACHE STRING "Board type")
set(PICO_BOARD pimoroni_pga2350 CACHE STRING "Board type")

include(pico_sdk_import.cmake)

Expand Down Expand Up @@ -57,6 +57,8 @@ if(ADD_HPGL)
include(hpgl/CMakeLists.txt)
endif()

include(flexgpio/CMakeLists.txt)

project(grblHAL)
pico_sdk_init()

Expand All @@ -77,6 +79,7 @@ if(AddMyPlugin)
my_plugin.c
boards/pico_cnc.c
boards/btt_skr_pico_10.c
boards/flexihal2350.c
littlefs/lfs.c
littlefs/lfs_util.c
littlefs_hal.c
Expand All @@ -97,6 +100,7 @@ else()
tmc_uart.c
boards/pico_cnc.c
boards/btt_skr_pico_10.c
boards/flexihal2350.c
littlefs/lfs.c
littlefs/lfs_util.c
littlefs_hal.c
Expand All @@ -105,6 +109,8 @@ endif()

pico_generate_pio_header(grblHAL ${CMAKE_CURRENT_LIST_DIR}/driverPIO.pio)

add_compile_definitions(N_AXIS=6)

if(PICO_BOARD STREQUAL "pico" OR PICO_BOARD STREQUAL "pico_w")
target_compile_definitions(grblHAL PUBLIC RP_MCU=2040)
if(PICO_SDK_VERSION_STRING VERSION_GREATER_EQUAL "2.1.1")
Expand Down Expand Up @@ -231,6 +237,7 @@ target_link_libraries(grblHAL PRIVATE
plasma
misc_plugins
embroidery
flexgpio
tinyusb_device_unmarked
pico_stdlib
pico_unique_id
Expand Down
Loading