1 /* 2 * Copyright 2022-2024 NXP 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef _FWK_CONFIG_H_ 8 #define _FWK_CONFIG_H_ 9 10 #include "fwk_platform_definitions.h" 11 12 #ifndef gPlatformUseHwParameter_d 13 #define gPlatformUseHwParameter_d 0 14 #endif 15 16 #ifndef gPlatformDisableBleLowPower_d 17 #define gPlatformDisableBleLowPower_d 0 18 #endif 19 20 #ifndef gPlatformDisableSetBtCalData_d 21 #define gPlatformDisableSetBtCalData_d 0 22 #endif 23 24 #ifndef gPlatformDisableSetBtCalDataAnnex100_d 25 #define gPlatformDisableSetBtCalDataAnnex100_d 1 26 #endif 27 28 #ifndef gPlatformDisableVendorSpecificInit 29 #define gPlatformDisableVendorSpecificInit 0 30 #endif 31 32 #ifndef gPlatformEnableTxPowerChangeWithCountry_d 33 #define gPlatformEnableTxPowerChangeWithCountry_d 0 34 #endif 35 36 /* 37 * gPlatformSetAntDiversity_d 38 * value is 0, enable ant1(share antenna with annex100),or enable ant2 with external FEM(ble only case) 39 * value is 1, enable ant3(diversity with annex100) 40 * value is 2, enable ant4(diversity with annex100) 41 */ 42 #ifndef gPlatformSetAntDiversity_d 43 #define gPlatformSetAntDiversity_d 0 44 #endif 45 46 /* 47 * gBoardUseFro32k_d diversity 48 * value is 0, enable external XTAL32K 49 * value is 1, enable internal FRO32K 50 */ 51 #ifndef gBoardUseFro32k_d 52 #define gBoardUseFro32k_d 0 53 #endif 54 55 /********************************************************************* 56 * gPlatNvsSectorSize_c NVS Sector size is necessarily a multiple of 57 * physical flash sector size. 58 * 59 * Defaults to 2 flash sectors because 8kB slabs is already pretty large. 60 * Cannot exceed 16 sectors. 61 * 62 *********************************************************************/ 63 #ifndef gPlatNvsSectorSize_c 64 #define gPlatNvsSectorSize_c (PLATFORM_EXTFLASH_SECTOR_SIZE * 2u) 65 #endif 66 67 #endif /* _FWK_CONFIG_H_ */ 68