Flash writting support functionality.
Functions | |
void | flash_fill_page_buffer (uint16_t start_offset, uint16_t length, uint8_t *data) |
Writes data to flash location. More... | |
void | flash_program_page (uint32_t page_start_addr) |
Writes the actual flash page. More... | |
void | flash_swap (uint32_t image_start_addr, uint32_t image_size) |
Swaps the firmware image. More... | |
Variables | |
void | noinline |
void flash_fill_page_buffer | ( | uint16_t | start_offset, |
uint16_t | length, | ||
uint8_t * | data | ||
) |
Writes data to flash location.
start_offset | Offset of start address |
length | Number of bytes to write |
data | Pointer to data location Fills the temporary page buffer |
This function fills the temporay flash page buffer.
start_offset | Offset of start address |
length | Length of provide data buffer |
data | Pointer to data buffer |
Referenced by vendor_data_ind().
void flash_program_page | ( | uint32_t | page_start_addr | ) |
Writes the actual flash page.
This function writes the data from the temporary flash page buffer to the actual flash page.
page_start_addr | Start address of the flash page |
Referenced by vendor_data_ind().
void flash_swap | ( | uint32_t | image_start_addr, |
uint32_t | image_size | ||
) |
Swaps the firmware image.
This function swapes the image with the current application program.
image_start_addr | Start address of the image within the flash |
image_size | Size of the firmware image |
Referenced by vendor_data_ind().
void noinline |