mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 18:41:54 +08:00
using ps2x2pico as a library
This commit is contained in:
@@ -8,7 +8,6 @@ target_sources(${target_name} PRIVATE
|
||||
ph_usb_kbd.c
|
||||
ph_usb_mouse.c
|
||||
ph_ps2.c
|
||||
ph_ps2_phy.c
|
||||
ph_ps2_kbd.c
|
||||
ph_ps2_mouse.c
|
||||
ph_cmds.c
|
||||
@@ -17,12 +16,14 @@ target_sources(${target_name} PRIVATE
|
||||
ph_com_spi.c
|
||||
ph_com_uart.c
|
||||
ph_debug.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} ${CMAKE_CURRENT_LIST_DIR}/ph_ps2_phy.pio)
|
||||
pico_generate_pio_header(${target_name} ${PS2_PATH}/ps2phy.pio)
|
||||
|
||||
target_link_libraries(${target_name} PRIVATE
|
||||
pico_stdlib
|
||||
|
||||
Reference in New Issue
Block a user