MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / start

Function start

Platforms/platform-esp32/source/drivers/esp32_uart.cpp:365–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365static error_t start(Device* device) {
366 ESP_LOGI(TAG, "%s start", device->name);
367 auto* data = new(std::nothrow) Esp32UartInternal();
368 if (!data) return ERROR_OUT_OF_MEMORY;
369
370 device_set_driver_data(device, data);
371
372 return ERROR_NONE;
373}
374
375static error_t stop(Device* device) {
376 ESP_LOGI(TAG, "%s stop", device->name);

Callers

nothing calls this directly

Calls 1

device_set_driver_dataFunction · 0.85

Tested by

no test coverage detected