BSP_IPSBAR v.s. _PSP_GET_IPSBAR()

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BSP_IPSBAR v.s. _PSP_GET_IPSBAR()

Jump to solution
470 Views
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 Kudos
1 Solution
336 Views
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

View solution in original post

0 Kudos
1 Reply
337 Views
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 Kudos