| 363 | } |
| 364 | |
| 365 | static 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 | |
| 375 | static error_t stop(Device* device) { |
| 376 | ESP_LOGI(TAG, "%s stop", device->name); |
nothing calls this directly
no test coverage detected