/* Erases the flash sectors encompassed by parameters passed into function. 
This function erases the appropriate number of flash sectors based on the desired start address and length.  */
status_t FLASH_Erase(flash_config_t *config, uint32_t start, uint32_t lengthInBytes, uint32_t key)
/* Erases the flash sectors encompassed by parameters passed into function. 
This function erases the appropriate number of flash sectors based on the desired start address and length.  */
status_t FLASH_Erase(flash_config_t *config, uint32_t start, uint32_t lengthInBytes, uint32_t key)
{
    assert(BOOTLOADER_API_TREE_POINTER);
    return BOOTLOADER_API_TREE_POINTER->flashDriver->flash_erase(config, start, lengthInBytes, key);
}