Const-correctness in LPC55xx ROM API

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Const-correctness in LPC55xx ROM API

ソリューションへジャンプ
523件の閲覧回数
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 解決策
485件の閲覧回数
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 返信
486件の閲覧回数
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 件の賞賛