test/flash_tlv: drop hal_flash_init

This commit is contained in:
Matthias Ringwald 2017-06-04 16:04:42 +02:00
parent 89739e6fa3
commit 91c4a2a3ef
3 changed files with 4 additions and 13 deletions

View File

@ -48,12 +48,6 @@ extern "C" {
// Number of flash banks
#define HAL_FLASH_SECTOR_NUM 2
/**
* Initialize flash sector implementation.
*/
void hal_flash_sector_init(void);
/**
* Get size of flash banks
*/

View File

@ -61,11 +61,6 @@ void hal_flash_sector_erase(int bank){
memset(hal_flash_storage_banks[bank], 0xff, HAL_FLASH_SECTOR_SIZE);
}
void hal_flash_sector_init(void){
hal_flash_sector_erase(0);
hal_flash_sector_erase(1);
}
void hal_flash_sector_read(int bank, uint32_t offset, uint8_t * buffer, uint32_t size){
// log_info("read offset %u, len %u", offset, size);

View File

@ -8,7 +8,8 @@
TEST_GROUP(HAL_FLASH_SECTOR){
void setup(void){
hal_flash_sector_init();
hal_flash_sector_erase(0);
hal_flash_sector_erase(1);
}
};
@ -68,7 +69,8 @@ TEST(HAL_FLASH_SECTOR, TestWriteErase){
TEST_GROUP(BSTACK_TLV){
void setup(void){
hal_flash_sector_init();
hal_flash_sector_erase(0);
hal_flash_sector_erase(1);
}
};