MeterLogger
|
Go to the source code of this file.
Functions | |
ICACHE_FLASH_ATTR void | ext_spi_init () |
ICACHE_FLASH_ATTR uint16_t | ext_spi_flash_id () |
ICACHE_FLASH_ATTR bool | ext_spi_flash_erase_sector (uint16_t sec) |
ICACHE_FLASH_ATTR bool | ext_spi_flash_read (uint32_t src_addr, uint32_t *dst_addr, uint32_t size) |
ICACHE_FLASH_ATTR bool | ext_spi_flash_write (uint32_t dst_addr, uint32_t *src_addr, uint32_t size) |
ICACHE_FLASH_ATTR void | ext_spi_flash_hexdump (uint32_t addr) |
ICACHE_FLASH_ATTR bool ext_spi_flash_erase_sector | ( | uint16_t | sec | ) |
Definition at line 34 of file ext_spi_flash.c.
References HSPI, ICACHE_FLASH_ATTR, and spi_transaction().
Referenced by cfg_save().
ICACHE_FLASH_ATTR void ext_spi_flash_hexdump | ( | uint32_t | addr | ) |
Definition at line 130 of file ext_spi_flash.c.
References ext_spi_flash_read(), and os_printf.
ICACHE_FLASH_ATTR uint16_t ext_spi_flash_id | ( | ) |
Definition at line 29 of file ext_spi_flash.c.
References HSPI, ICACHE_FLASH_ATTR, and spi_transaction().
Referenced by ext_spi_init().
ICACHE_FLASH_ATTR bool ext_spi_flash_read | ( | uint32_t | src_addr, |
uint32_t * | dst_addr, | ||
uint32_t | size | ||
) |
Definition at line 47 of file ext_spi_flash.c.
References HSPI, ICACHE_FLASH_ATTR, and spi_transaction().
Referenced by cfg_load(), cfg_save(), and ext_spi_flash_hexdump().
ICACHE_FLASH_ATTR bool ext_spi_flash_write | ( | uint32_t | dst_addr, |
uint32_t * | src_addr, | ||
uint32_t | size | ||
) |
Definition at line 78 of file ext_spi_flash.c.
References HSPI, ICACHE_FLASH_ATTR, and spi_transaction().
Referenced by cfg_save().
ICACHE_FLASH_ATTR void ext_spi_init | ( | ) |
Definition at line 8 of file ext_spi_flash.c.
References CLEAR_PERI_REG_MASK, ext_spi_flash_id(), HSPI, ICACHE_FLASH_ATTR, os_printf, SET_PERI_REG_MASK, SPI_BYTE_ORDER_LOW_TO_HIGH, SPI_CLK_USE_DIV, spi_clock(), SPI_CS_HOLD, SPI_CS_SETUP, SPI_FLASH_MODE, spi_init_gpio(), spi_rx_byte_order(), spi_tx_byte_order(), and SPI_USER.