blob: 0426110c88d441ee14ef065704db12eedb007144 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
set(target_name hid)
add_executable(${target_name})
target_sources(${target_name} PRIVATE
main.c
ph_outputs.c
ph_usb.c
ph_usb_kbd.c
ph_usb_mouse.c
ph_ps2.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
)
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})
pico_generate_pio_header(${target_name} ${CMAKE_CURRENT_LIST_DIR}/ph_ps2.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})
|