Other Parts Discussed in Thread: CC1101
因为CC1310内部的FLASH资源不够用,不能有太多的程序代码和const数据,
以下配置:rfePatchFxn,会占用比较大的程序const(FLASH)空间。
请问,rfePatchFxn这个有什么用?在哪里有相关文档?不配置为什么就不能跟CC1101通讯?
程序就差4K左右的FLASH空间,怎么优化都优化不了了。怎样精简这段代码?
谢谢!
----------------------------------
#ifdef H75T
#define __PATCH_NO_UNROLLING
#endif
#include DeviceFamily_constructPath(rf_patches/rf_patch_cpe_genfsk.h)
#include DeviceFamily_constructPath(rf_patches/rf_patch_rfe_genfsk.h)
#ifdef H75T
RF_Mode RF_prop =
{
.rfMode = RF_MODE_PROPRIETARY_SUB_1,
.cpePatchFxn = 0,
.mcePatchFxn = 0,
.rfePatchFxn = &rf_patch_rfe_genfsk
};
#else
RF_Mode RF_prop =
{
.rfMode = RF_MODE_PROPRIETARY_SUB_1,
.cpePatchFxn = &rf_patch_cpe_genfsk,
.mcePatchFxn = 0,
.rfePatchFxn = &rf_patch_rfe_genfsk
};
#endif