BSP_IPSBAR v.s. _PSP_GET_IPSBAR()

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

BSP_IPSBAR v.s. _PSP_GET_IPSBAR()

跳至解决方案
1,408 次查看
MikeMarynowski
Contributor III

As the title suggets, what's the difference? I've seen Freescale code examples that use both.

 

Which one is more "correct" to use? Wouldn't using the constant (BSP_IPSBAR) be better than the function call?

0 项奖励
回复
1 解答
1,274 次查看
c0170
Senior Contributor III

hi mike,

 

they are same in a meaning but you probably should use PSP_GET_IPSBAR().

BSP_IPSBAR is define or constant from linker command file.

PSP_GET_IPSBAR gets the value which is set by the assembly function _psp_set_mbar.

 

Regards,

MartinK

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,275 次查看
c0170
Senior Contributor III

hi mike,

 

they are same in a meaning but you probably should use PSP_GET_IPSBAR().

BSP_IPSBAR is define or constant from linker command file.

PSP_GET_IPSBAR gets the value which is set by the assembly function _psp_set_mbar.

 

Regards,

MartinK

0 项奖励
回复