2021-11-06 05:21:57 -04:00
|
|
|
/*
|
2022-01-17 21:32:56 -05:00
|
|
|
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
|
2021-11-06 05:21:57 -04:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
/** ROM APIs
|
|
|
|
*/
|
|
|
|
PROVIDE ( esp_rom_crc32_le = crc32_le );
|
|
|
|
PROVIDE ( esp_rom_crc16_le = crc16_le );
|
|
|
|
PROVIDE ( esp_rom_crc8_le = crc8_le );
|
|
|
|
PROVIDE ( esp_rom_crc32_be = crc32_be );
|
|
|
|
PROVIDE ( esp_rom_crc16_be = crc16_be );
|
|
|
|
PROVIDE ( esp_rom_crc8_be = crc8_be );
|
|
|
|
|
|
|
|
PROVIDE ( esp_rom_gpio_pad_select_gpio = gpio_pad_select_gpio );
|
|
|
|
PROVIDE ( esp_rom_gpio_pad_pullup_only = gpio_pad_pullup );
|
|
|
|
PROVIDE ( esp_rom_gpio_pad_set_drv = gpio_pad_set_drv );
|
|
|
|
PROVIDE ( esp_rom_gpio_pad_unhold = gpio_pad_unhold );
|
|
|
|
PROVIDE ( esp_rom_gpio_connect_in_signal = gpio_matrix_in );
|
|
|
|
PROVIDE ( esp_rom_gpio_connect_out_signal = gpio_matrix_out );
|
|
|
|
|
|
|
|
PROVIDE ( esp_rom_efuse_mac_address_crc8 = esp_crc8 );
|
|
|
|
PROVIDE ( esp_rom_efuse_get_flash_wp_gpio = ets_efuse_get_wp_pad );
|
|
|
|
PROVIDE ( esp_rom_efuse_is_secure_boot_enabled = ets_efuse_secure_boot_enabled );
|
|
|
|
|
|
|
|
PROVIDE ( esp_rom_uart_flush_tx = uart_tx_flush );
|
|
|
|
PROVIDE ( esp_rom_uart_tx_one_char = uart_tx_one_char );
|
|
|
|
PROVIDE ( esp_rom_uart_tx_wait_idle = uart_tx_wait_idle );
|
|
|
|
PROVIDE ( esp_rom_uart_rx_one_char = uart_rx_one_char );
|
|
|
|
PROVIDE ( esp_rom_uart_rx_string = UartRxString );
|
2022-11-03 23:45:39 -04:00
|
|
|
PROVIDE ( esp_rom_uart_set_as_console = uart_tx_switch );
|
2021-11-06 05:21:57 -04:00
|
|
|
PROVIDE ( esp_rom_uart_putc = ets_write_char_uart );
|
|
|
|
|
2022-04-19 11:40:22 -04:00
|
|
|
PROVIDE ( esp_rom_mbedtls_md5_starts_ret = mbedtls_md5_starts_ret );
|
|
|
|
PROVIDE ( esp_rom_mbedtls_md5_update_ret = mbedtls_md5_update_ret );
|
|
|
|
PROVIDE ( esp_rom_mbedtls_md5_finish_ret = mbedtls_md5_finish_ret );
|
2021-11-06 05:21:57 -04:00
|
|
|
|
|
|
|
PROVIDE ( esp_rom_printf = ets_printf );
|
2022-10-12 08:07:40 -04:00
|
|
|
PROVIDE ( esp_rom_install_uart_printf = ets_install_uart_printf );
|
2021-11-06 05:21:57 -04:00
|
|
|
PROVIDE ( esp_rom_delay_us = ets_delay_us );
|
|
|
|
PROVIDE ( esp_rom_get_reset_reason = rtc_get_reset_reason );
|
2022-01-17 04:44:25 -05:00
|
|
|
PROVIDE ( esp_rom_route_intr_matrix = intr_matrix_set );
|
|
|
|
PROVIDE ( esp_rom_get_cpu_ticks_per_us = ets_get_cpu_frequency );
|
2021-11-26 04:03:47 -05:00
|
|
|
|
2022-08-08 04:34:10 -04:00
|
|
|
PROVIDE ( esp_rom_spiflash_attach = spi_flash_attach );
|
2021-11-26 03:04:49 -05:00
|
|
|
PROVIDE ( esp_rom_spiflash_clear_bp = esp_rom_spiflash_unlock );
|
|
|
|
PROVIDE ( esp_rom_spiflash_write_enable = SPI_write_enable);
|
2022-06-27 03:24:07 -04:00
|
|
|
PROVIDE ( esp_rom_spiflash_erase_area = SPIEraseArea );
|
2022-01-05 01:08:37 -05:00
|
|
|
|
2022-08-08 04:34:10 -04:00
|
|
|
PROVIDE ( esp_rom_spiflash_fix_dummylen = spi_dummy_len_fix );
|
|
|
|
PROVIDE ( esp_rom_spiflash_set_drvs = SetSpiDrvs);
|
|
|
|
PROVIDE ( esp_rom_spiflash_select_padsfunc = SelectSpiFunction );
|
|
|
|
PROVIDE ( esp_rom_spiflash_common_cmd = SPI_Common_Command );
|
|
|
|
|
2022-01-05 01:08:37 -05:00
|
|
|
PROVIDE ( esp_rom_regi2c_read = rom_i2c_readReg );
|
|
|
|
PROVIDE ( esp_rom_regi2c_read_mask = rom_i2c_readReg_Mask );
|
|
|
|
PROVIDE ( esp_rom_regi2c_write = rom_i2c_writeReg );
|
|
|
|
PROVIDE ( esp_rom_regi2c_write_mask = rom_i2c_writeReg_Mask );
|