mirror of
https://github.com/justinian/edmfd_firmware.git
synced 2025-12-09 16:24:31 -08:00
Support feather board, move to broken out source
This commit is contained in:
@@ -22,7 +22,7 @@ include(pico_sdk_import.cmake)
|
||||
project(EDMFD C CXX)
|
||||
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
|
||||
set(PICO_STDIO_USB_CONNECT_WAIT_TIMEOUT_MS 3000)
|
||||
pico_sdk_init()
|
||||
@@ -35,18 +35,36 @@ add_compile_options(
|
||||
|
||||
if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||
add_compile_options(-Wno-maybe-uninitialized)
|
||||
add_compile_options(-ffile-prefix-map=${CMAKE_SOURCE_DIR}/src/=)
|
||||
endif()
|
||||
|
||||
include_directories(src)
|
||||
|
||||
add_library(logging STATIC
|
||||
src/logging/log.cc
|
||||
)
|
||||
target_include_directories(logging PRIVATE src)
|
||||
|
||||
add_executable(edmfd)
|
||||
target_include_directories(edmfd PUBLIC src)
|
||||
target_sources(edmfd PUBLIC
|
||||
src/blink.cc
|
||||
src/hid.cc
|
||||
src/main.cc
|
||||
src/usb_descriptors.cc
|
||||
src/vendor.cc
|
||||
src/edmfd/blink.cc
|
||||
src/edmfd/hid.cc
|
||||
src/edmfd/main.cc
|
||||
src/edmfd/mcp23017.cc
|
||||
src/edmfd/screen.cc
|
||||
src/edmfd/usb_descriptors.cc
|
||||
src/edmfd/vendor.cc
|
||||
)
|
||||
|
||||
pico_enable_stdio_usb(edmfd 1)
|
||||
pico_enable_stdio_uart(edmfd 1)
|
||||
pico_enable_stdio_uart(edmfd 0)
|
||||
pico_add_extra_outputs(edmfd)
|
||||
target_link_libraries(edmfd PUBLIC pico_stdlib pico_unique_id tinyusb_device tinyusb_board)
|
||||
target_link_libraries(edmfd PUBLIC
|
||||
logging
|
||||
pico_stdlib
|
||||
pico_stdio_uart
|
||||
pico_unique_id
|
||||
hardware_i2c
|
||||
tinyusb_device
|
||||
tinyusb_board
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user