mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-23 09:41:03 +00:00
test/flash_tlv: fix tests for delete field
This commit is contained in:
parent
1d6958009f
commit
2092d4ad1b
@ -15,9 +15,10 @@
|
|||||||
#include "btstack_debug.h"
|
#include "btstack_debug.h"
|
||||||
|
|
||||||
#ifdef ENABLE_TLV_FLASH_EXPLICIT_DELETE_FIELD
|
#ifdef ENABLE_TLV_FLASH_EXPLICIT_DELETE_FIELD
|
||||||
// Provide additional bytes for 3 x delete fields (in both banks)
|
// Provide additional bytes for 3 x delete fields of 4 bytes (in both banks)
|
||||||
|
// note: only valid for alignments: 1,2 and 4
|
||||||
#define HAL_FLASH_BANK_MEMORY_STORAGE_SIZE (256 + 24)
|
#define HAL_FLASH_BANK_MEMORY_STORAGE_SIZE (256 + 24)
|
||||||
#define TAG_OVERHEAD 16
|
#define TAG_OVERHEAD 12
|
||||||
#else
|
#else
|
||||||
#define HAL_FLASH_BANK_MEMORY_STORAGE_SIZE (256)
|
#define HAL_FLASH_BANK_MEMORY_STORAGE_SIZE (256)
|
||||||
#define TAG_OVERHEAD 8
|
#define TAG_OVERHEAD 8
|
||||||
@ -251,7 +252,7 @@ TEST(BSTACK_TLV, TestWriteResetRead){
|
|||||||
CHECK_EQUAL(buffer, data);
|
CHECK_EQUAL(buffer, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(BSTACK_TLV, TestFullBank){
|
TEST(BSTACK_TLV, TestFullBankNormal){
|
||||||
btstack_tlv_impl = btstack_tlv_flash_bank_init_instance(&btstack_tlv_context, hal_flash_bank_impl, &hal_flash_bank_context);
|
btstack_tlv_impl = btstack_tlv_flash_bank_init_instance(&btstack_tlv_context, hal_flash_bank_impl, &hal_flash_bank_context);
|
||||||
|
|
||||||
// fill-up flash bank
|
// fill-up flash bank
|
||||||
|
Loading…
x
Reference in New Issue
Block a user