2024-03-24 20:52:55 +08:00
|
|
|
file(GLOB FILELIST
|
2025-03-22 21:13:21 +08:00
|
|
|
start.S
|
2024-03-24 20:52:55 +08:00
|
|
|
src/common.c
|
|
|
|
|
src/system.c
|
2025-03-23 21:25:33 +08:00
|
|
|
src/resets.c
|
2024-03-24 20:52:55 +08:00
|
|
|
src/clock.c
|
2025-03-29 16:32:49 +08:00
|
|
|
src/irq.c
|
2024-03-24 20:52:55 +08:00
|
|
|
src/sio.c
|
|
|
|
|
src/gpio.c
|
2025-03-15 16:16:20 +08:00
|
|
|
src/pio.c
|
|
|
|
|
src/timer.c
|
2025-03-16 12:23:06 +08:00
|
|
|
src/dma.c
|
2025-03-19 15:59:12 +08:00
|
|
|
src/uart.c
|
2025-03-29 16:32:49 +08:00
|
|
|
src/usb.c
|
2025-06-01 16:18:31 +08:00
|
|
|
src/watchdog.c
|
2024-03-24 20:52:55 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
set(TARGET driver)
|
|
|
|
|
add_library(${TARGET} STATIC ${FILELIST})
|
|
|
|
|
|
|
|
|
|
target_include_directories(${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/inc)
|
|
|
|
|
target_include_directories(${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/inc/reg)
|
2025-03-22 21:13:21 +08:00
|
|
|
target_include_directories(${TARGET} PUBLIC ${SDK_BASE_DIR}/CMSIS/Core/Include/)
|
|
|
|
|
target_include_directories(${TARGET} PUBLIC ${SDK_BASE_DIR}/CMSIS/Device/RaspberryPi/RP2040/Include)
|