2022-02-16 17:17:33 +00:00
|
|
|
set(MOD_NAME badger2040)
|
|
|
|
string(TOUPPER ${MOD_NAME} MOD_NAME_UPPER)
|
|
|
|
add_library(usermod_${MOD_NAME} INTERFACE)
|
|
|
|
|
|
|
|
target_sources(usermod_${MOD_NAME} INTERFACE
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/${MOD_NAME}.c
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/${MOD_NAME}.cpp
|
2022-03-26 11:55:56 +00:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/badgerinit.S
|
2022-02-16 17:17:33 +00:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/badger2040/badger2040.cpp
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../drivers/uc8151/uc8151.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(usermod_${MOD_NAME} INTERFACE
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/badger2040/
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../drivers/uc8151/
|
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_definitions(usermod_${MOD_NAME} INTERFACE
|
|
|
|
MODULE_BADGER2040_ENABLED=1
|
|
|
|
)
|
|
|
|
|
2022-03-29 20:56:23 +00:00
|
|
|
target_link_libraries(usermod INTERFACE usermod_${MOD_NAME}
|
|
|
|
hardware_vreg
|
|
|
|
hardware_pll
|
|
|
|
hardware_resets)
|