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
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/badger2040/badger2040.cpp
|
2022-06-23 11:58:36 +01:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../drivers/uc8151_legacy/uc8151_legacy.cpp
|
2022-02-16 17:17:33 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(usermod_${MOD_NAME} INTERFACE
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/badger2040/
|
2022-06-23 11:58:36 +01:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../drivers/uc8151_legacy/
|
2022-02-16 17:17:33 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_definitions(usermod_${MOD_NAME} INTERFACE
|
|
|
|
MODULE_BADGER2040_ENABLED=1
|
|
|
|
)
|
|
|
|
|
2022-03-29 21:56:23 +01:00
|
|
|
target_link_libraries(usermod INTERFACE usermod_${MOD_NAME}
|
|
|
|
hardware_vreg
|
|
|
|
hardware_pll
|
|
|
|
hardware_resets)
|