| 6 | #include "stdio.h" |
| 7 | #include "config.hpp" |
| 8 | DebugDevice::DebugDevice(proto_DebugDevice device, uint16_t id) : Device(id), m_device(device) |
| 9 | { |
| 10 | bi_decl(bi_2pins_with_func(device.uart.tx, device.uart.rx, GPIO_FUNC_UART)); |
| 11 | uart_inst = uart_get_instance(device.uart.block); |
| 12 | stdio_uart_init_full(uart_inst, device.uart.baudrate, device.uart.tx, device.uart.rx); |
| 13 | m_lastConnected = true; |
| 14 | } |
| 15 | |
| 16 | void DebugDevice::begin() |
| 17 | { |
nothing calls this directly
no outgoing calls
no test coverage detected