Skip to content

Commit

Permalink
Moved kvs count to be board specific
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs committed Nov 18, 2021
1 parent 00ef4a5 commit 7eb0560
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions third_party/efr32_sdk/efr32_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ template("efr32_sdk") {
"${efr32_mcu}=1",
"${efr32_board}=1",
"SL_SUPRESS_DEPRECATION_WARNINGS_SDK_3_1",
"CHIP_KVS_SECTOR_COUNT=4",
"CHIP_KVS_BASE_SECTOR_INDEX=((FLASH_SIZE/FLASH_PAGE_SIZE)-(CHIP_KVS_SECTOR_COUNT))",
"CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI=1",
"__HEAP_SIZE=0",
Expand Down Expand Up @@ -164,7 +163,10 @@ template("efr32_sdk") {
"${efr32_sdk_root}/platform/emdrv/nvm3/lib/libnvm3_CM4_gcc.a",
]

defines += [ "EFR32MG12" ]
defines += [
"EFR32MG12",
"CHIP_KVS_SECTOR_COUNT=5",
]
} else if (efr32_family == "efr32mg21") {
_include_dirs += [
"${efr32_sdk_root}/hardware/driver/memlcd/inc/memlcd_usart",
Expand All @@ -187,6 +189,7 @@ template("efr32_sdk") {
defines += [
"EFR32MG21",
"EFR32_SERIES2_CONFIG1_MICRO",
"CHIP_KVS_SECTOR_COUNT=4",
]
} else if (efr32_family == "efr32mg24") {
_include_dirs += [
Expand All @@ -210,6 +213,7 @@ template("efr32_sdk") {
defines += [
"EFR32MG24",
"EFR32_SERIES2_CONFIG4_MICRO",
"CHIP_KVS_SECTOR_COUNT=4",
]
}

Expand Down

0 comments on commit 7eb0560

Please sign in to comment.