summaryrefslogtreecommitdiff
path: root/hid/pico/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'hid/pico/src/CMakeLists.txt')
-rw-r--r--hid/pico/src/CMakeLists.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/hid/pico/src/CMakeLists.txt b/hid/pico/src/CMakeLists.txt
index cb1c7feb..facab804 100644
--- a/hid/pico/src/CMakeLists.txt
+++ b/hid/pico/src/CMakeLists.txt
@@ -8,24 +8,29 @@ target_sources(${target_name} PRIVATE
ph_usb_kbd.c
ph_usb_mouse.c
ph_ps2.c
+ ph_ps2_kbd.c
+ ph_ps2_mouse.c
ph_cmds.c
ph_com.c
ph_com_bridge.c
ph_com_spi.c
ph_com_uart.c
ph_debug.c
- # TODO: PS2: ${PS2_PATH}/foo.c
+
+ ${PS2_PATH}/ps2phy.c
)
target_link_options(${target_name} PRIVATE -Xlinker --print-memory-usage)
target_compile_options(${target_name} PRIVATE -Wall -Wextra)
-target_include_directories(${target_name} PRIVATE ${CMAKE_CURRENT_LIST_DIR})
+target_include_directories(${target_name} PRIVATE ${CMAKE_CURRENT_LIST_DIR} ${PS2_PATH})
+
+pico_generate_pio_header(${target_name} ${PS2_PATH}/ps2phy.pio)
target_link_libraries(${target_name} PRIVATE
pico_stdlib
pico_unique_id
+ hardware_pio
hardware_spi
hardware_watchdog
tinyusb_device
- # TODO: PS2: ... or make a library
)
pico_add_extra_outputs(${target_name})