add_library(GobotRPC STATIC
    ${CMAKE_CURRENT_LIST_DIR}/../rx.cpp
    ${CMAKE_CURRENT_LIST_DIR}/../init.cpp
    ${CMAKE_CURRENT_LIST_DIR}/../protocol.cpp
    ${CMAKE_CURRENT_LIST_DIR}/../error_msg.cpp
    
    ${CMAKE_CURRENT_LIST_DIR}/../uart_ctrl/uart_ctrl_base.cpp
    ${CMAKE_CURRENT_LIST_DIR}/../uart_ctrl/uart_ctrl_registers.cpp
    ${CMAKE_CURRENT_LIST_DIR}/../uart_ctrl/uart_ctrl_rx.cpp
    ${CMAKE_CURRENT_LIST_DIR}/../uart_ctrl/uart_ctrl_tx.cpp
)

target_include_directories(GobotRPC PUBLIC 
    ${CMAKE_CURRENT_LIST_DIR}/../include
    ${CMAKE_CURRENT_LIST_DIR}/../../..
)

target_link_libraries(GobotRPC
    FreeRTOS-Kernel-Heap4
)