bootloader_console.h 517 B

1234567891011121314151617181920212223
  1. /*
  2. * SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. /**
  8. * @brief Initialize console output (UART or USB)
  9. */
  10. void bootloader_console_init(void);
  11. /**
  12. * @brief Flush and otherwise de-initialize console output.
  13. */
  14. void bootloader_console_deinit(void);
  15. /**
  16. * @brief "Write character to USB" function for ets_install_putc1.
  17. * Only defined if USB CDC is used for console output.
  18. */
  19. void bootloader_console_write_char_usb(char c);