rom: patch uart function to switch buffer

This commit is contained in:
morris
2023-01-30 14:01:19 +08:00
parent 0d07f85916
commit b7799ec84d
10 changed files with 41 additions and 30 deletions

View File

@@ -19,6 +19,10 @@ config ESP_ROM_HAS_JPEG_DECODE
bool
default y
config ESP_ROM_HAS_UART_BUF_SWITCH
bool
default y
config ESP_ROM_NEEDS_SWSETUP_WORKAROUND
bool
default y

View File

@@ -10,4 +10,5 @@
#define ESP_ROM_HAS_CRC_BE (1) // ROM CRC library supports Big Endian
#define ESP_ROM_HAS_MZ_CRC32 (1) // ROM has mz_crc32 function
#define ESP_ROM_HAS_JPEG_DECODE (1) // ROM has JPEG decode library
#define ESP_ROM_HAS_UART_BUF_SWITCH (1) // ROM has exported the uart buffer switch function
#define ESP_ROM_NEEDS_SWSETUP_WORKAROUND (1) // ROM uses 32-bit time_t. A workaround is required to prevent printf functions from crashing

View File

@@ -26,6 +26,7 @@ PROVIDE ( esp_rom_uart_rx_one_char = uart_rx_one_char );
PROVIDE ( esp_rom_uart_rx_string = UartRxString );
PROVIDE ( esp_rom_uart_set_as_console = uart_tx_switch );
PROVIDE ( esp_rom_uart_putc = ets_write_char_uart );
PROVIDE ( esp_rom_uart_switch_buffer = uart_buff_switch );
/* wpa_supplicant re-implements the MD5 functions: MD5Init, MD5Update, MD5Final */
/* so here we directly assign the symbols with the ROM API address */