cancel
Showing results for 
Search instead for 
Did you mean: 

SETPRIMASK is gone

nurist_m
Associate II
Posted on June 13, 2009 at 16:54

SETPRIMASK is gone

2 REPLIES 2
nurist_m
Associate II
Posted on May 17, 2011 at 13:14

Hi folks,

can any one please tell me how to use the former __SETPRIMASK(), __RESETPRIMASK() with the new CMSIS?

The according function is now _set_PRIMASK(u32 argument). But what argument do i need to get the same result as the old instructions?

[ This message was edited by: nurist_m on 10-06-2009 09:55 ]

joseph239955
Associate II
Posted on May 17, 2011 at 13:14

The CMSIS function for this is

void __set_PRIMASK(uint32_t priMask);

__SETPRIMASK() become __set_PRIMASK(1)

__RESETPRIMASK() become __set_PRIMASK(0)