Const-correctness in LPC55xx ROM API

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Const-correctness in LPC55xx ROM API

跳至解决方案
741 次查看
craigmcqueenir
Contributor IV

In the SDK for the LPCXpresso55S28, in fsl_iap.c, there are the definitions of functions in the ROM API. Eg struct version1FlashDriverInterface, function pointer flash_program().

That function flash_program() has a parameter uint8_t *src. The parameter isn't marked as const. I'm wondering if that is because the parameter is genuinely a non-const pointer — i.e. flash_program() might actually change the src data — or if it is just because the function definitions in fsl_iap.c have not been created with const-correctness in mind.

标签 (1)
0 项奖励
回复
1 解答
703 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

HI @craigmcqueenir 

We will fix it in next release SDK 2.15.0

Thank you for bringing the problem to our attention.

Have a nice day,

Jun Zhang

在原帖中查看解决方案

0 项奖励
回复
1 回复
704 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

HI @craigmcqueenir 

We will fix it in next release SDK 2.15.0

Thank you for bringing the problem to our attention.

Have a nice day,

Jun Zhang

0 项奖励
回复