2022-01-03 21:17:32 -05:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2020-03-06 09:04:06 -05:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-01-22 19:00:40 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2020-08-06 08:41:32 -04:00
|
|
|
#include "esp_err.h"
|
2020-03-06 09:04:06 -05:00
|
|
|
|
2020-08-06 08:41:32 -04:00
|
|
|
/**
|
|
|
|
* @brief Redirect output to the USB serial
|
|
|
|
* @param cdc_intf - interface number of TinyUSB's CDC
|
|
|
|
*
|
|
|
|
* @return esp_err_t - ESP_OK, ESP_FAIL or an error code
|
|
|
|
*/
|
|
|
|
esp_err_t esp_tusb_init_console(int cdc_intf);
|
2020-03-06 09:04:06 -05:00
|
|
|
|
2020-08-06 08:41:32 -04:00
|
|
|
/**
|
|
|
|
* @brief Switch log to the default output
|
|
|
|
* @param cdc_intf - interface number of TinyUSB's CDC
|
|
|
|
*
|
|
|
|
* @return esp_err_t
|
|
|
|
*/
|
|
|
|
esp_err_t esp_tusb_deinit_console(int cdc_intf);
|
2021-01-22 19:00:40 -05:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|