add_library(tmc2209_driver STATIC
    src/tmc2209/uart_interface.cpp
    src/tmc2209/uart_registers.cpp
    src/tmc2209/step.cpp
)

target_include_directories(tmc2209_driver PRIVATE
    include/tmc2209/
    build/
)

target_link_libraries(tmc2209_driver
    pico_stdlib
    hardware_uart
    hardware_pio
)
