MCPcopy Create free account
hub / github.com/Santroller/Santroller / DebugDevice

Method DebugDevice

src/devices/debug.cpp:8–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "stdio.h"
7#include "config.hpp"
8DebugDevice::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
16void DebugDevice::begin()
17{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected