|
Bouffalo SDK
1.0
Bouffalolab Software Development Kit
|
|
Modules | |
| flash iomode definition | |
| flash aes key type definition | |
Data Structures | |
| struct | bflb_flash_aes_config_s |
Functions | |
| int | bflb_flash_init (void) |
| Initialize flash. More... | |
| uint32_t | bflb_flash_get_jedec_id (void) |
| Get flash jedec id. More... | |
| uint32_t | bflb_flash_get_size (void) |
| get flash size More... | |
| void | bflb_flash_get_cfg (uint8_t **cfg_addr, uint32_t *len) |
| Get flash config. More... | |
| void | bflb_flash_set_iomode (uint8_t iomode) |
| Set flash iomode. More... | |
| uint32_t | bflb_flash_get_image_offset (void) |
| Get flash image offset. More... | |
| int | bflb_flash_erase (uint32_t addr, uint32_t len) |
| Erase flash with sectors. More... | |
| int | bflb_flash_write (uint32_t addr, uint8_t *data, uint32_t len) |
| Write data into flash. More... | |
| int | bflb_flash_read (uint32_t addr, uint8_t *data, uint32_t len) |
| Read data from flash. More... | |
| int | bflb_flash_get_unique_id (uint8_t *data, uint8_t id_len) |
| read flash unique id More... | |
| int | bflb_flash_set_cache (uint8_t cont_read, uint8_t cache_enable, uint8_t cache_way_disable, uint32_t flash_offset) |
| Config flash cache. More... | |
| void | bflb_flash_aes_init (struct bflb_flash_aes_config_s *config) |
| Initialize flash aes controller. More... | |
| void | bflb_flash_aes_enable (void) |
| Enable flash decrypt with aes. More... | |
| void | bflb_flash_aes_disable (void) |
| Disable flash decrypt with aes. More... | |
| void | bflb_flash_jump_encrypted_app (uint8_t index, uint32_t flash_addr, uint32_t len) |
| Initialize flash jump to encrypted app. More... | |
| void bflb_flash_aes_disable | ( | void | ) |
Disable flash decrypt with aes.
| void bflb_flash_aes_enable | ( | void | ) |
Enable flash decrypt with aes.
| void bflb_flash_aes_init | ( | struct bflb_flash_aes_config_s * | config | ) |
Initialize flash aes controller.
| [in] | config | pointer to flash aes config. |
| int bflb_flash_erase | ( | uint32_t | addr, |
| uint32_t | len | ||
| ) |
Erase flash with sectors.
| [in] | addr | |
| [in] | len |
| void bflb_flash_get_cfg | ( | uint8_t ** | cfg_addr, |
| uint32_t * | len | ||
| ) |
Get flash config.
| [out] | cfg_addr | pointer to save config |
| [in] | len | flash config size |
| uint32_t bflb_flash_get_image_offset | ( | void | ) |
Get flash image offset.
| uint32_t bflb_flash_get_jedec_id | ( | void | ) |
Get flash jedec id.
| uint32_t bflb_flash_get_size | ( | void | ) |
get flash size
| int bflb_flash_get_unique_id | ( | uint8_t * | data, |
| uint8_t | id_len | ||
| ) |
read flash unique id
| data | |
| id_len |
| int bflb_flash_init | ( | void | ) |
Initialize flash.
| void bflb_flash_jump_encrypted_app | ( | uint8_t | index, |
| uint32_t | flash_addr, | ||
| uint32_t | len | ||
| ) |
Initialize flash jump to encrypted app.
| [in] | index | region index |
| [in] | flash_addr | flash physical address. |
| [in] | len | firmware length. |
| int bflb_flash_read | ( | uint32_t | addr, |
| uint8_t * | data, | ||
| uint32_t | len | ||
| ) |
Read data from flash.
| [in] | addr | flash physical address |
| [out] | data | pointer to data buffer |
| [in] | len | length of data |
| int bflb_flash_set_cache | ( | uint8_t | cont_read, |
| uint8_t | cache_enable, | ||
| uint8_t | cache_way_disable, | ||
| uint32_t | flash_offset | ||
| ) |
Config flash cache.
| [in] | cont_read | enable or not continuous read mode. |
| [in] | cache_enable | enable cache or not |
| [in] | cache_way_disable | ways of cache to disable |
| [in] | flash_offset | flash image offset |
| void bflb_flash_set_iomode | ( | uint8_t | iomode | ) |
Set flash iomode.
| [in] | iomode | flash iomode, use flash iomode definition |
| int bflb_flash_write | ( | uint32_t | addr, |
| uint8_t * | data, | ||
| uint32_t | len | ||
| ) |
Write data into flash.
| [in] | addr | flash physical address |
| [in] | data | pointer to data buffer |
| [in] | len | length of data |