mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-03 01:20:35 +00:00
test/flash_tlv: drop hal_flash_init
This commit is contained in:
parent
89739e6fa3
commit
91c4a2a3ef
@ -48,12 +48,6 @@ extern "C" {
|
|||||||
// Number of flash banks
|
// Number of flash banks
|
||||||
#define HAL_FLASH_SECTOR_NUM 2
|
#define HAL_FLASH_SECTOR_NUM 2
|
||||||
|
|
||||||
/**
|
|
||||||
* Initialize flash sector implementation.
|
|
||||||
*/
|
|
||||||
|
|
||||||
void hal_flash_sector_init(void);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get size of flash banks
|
* Get size of flash banks
|
||||||
*/
|
*/
|
||||||
|
@ -61,11 +61,6 @@ void hal_flash_sector_erase(int bank){
|
|||||||
memset(hal_flash_storage_banks[bank], 0xff, HAL_FLASH_SECTOR_SIZE);
|
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){
|
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);
|
// log_info("read offset %u, len %u", offset, size);
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
|
|
||||||
TEST_GROUP(HAL_FLASH_SECTOR){
|
TEST_GROUP(HAL_FLASH_SECTOR){
|
||||||
void setup(void){
|
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){
|
TEST_GROUP(BSTACK_TLV){
|
||||||
void setup(void){
|
void setup(void){
|
||||||
hal_flash_sector_init();
|
hal_flash_sector_erase(0);
|
||||||
|
hal_flash_sector_erase(1);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user