Skip to content
Snippets Groups Projects
Commit 0a4cbb9a authored by q3k's avatar q3k
Browse files

usermodule: init

This moves the badge23-specific hardware/synth modules into usermodule/.
parent 7e939323
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,8 @@ set(MICROPY_QSTRDEFS_PORT "${MICROPY_PORT_DIR}/qstrdefsport.h")
include("${MICROPY_DIR}/py/py.cmake")
set(USER_C_MODULES "${PROJECT_DIR}/usermodule/micropython.cmake")
if(NOT CMAKE_BUILD_EARLY_EXPANSION)
# Enable extmod components that will be configured by extmod.cmake.
# A board may also have enabled additional components.
......@@ -51,8 +53,6 @@ set(MICROPY_SOURCE_DRIVERS
)
set(MICROPY_SOURCE_PORT
${MICROPY_PORT_DIR}/badge23_mp_hardware.c
${MICROPY_PORT_DIR}/badge23_mp_synth.c
${MICROPY_PORT_DIR}/main.c
${MICROPY_PORT_DIR}/uart.c
${MICROPY_PORT_DIR}/usb.c
......
add_library(usermod_badge23 INTERFACE)
target_sources(usermod_badge23 INTERFACE
${CMAKE_CURRENT_LIST_DIR}/mp_hardware.c
${CMAKE_CURRENT_LIST_DIR}/mp_synth.c
)
target_include_directories(usermod_badge23 INTERFACE
${CMAKE_CURRENT_LIST_DIR}
)
target_link_libraries(usermod INTERFACE usermod_badge23)
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment