Fixed splhigh/splx for the IAR compiler
This commit is contained in:
parent
dd8576830e
commit
bf299b1a07
2 changed files with 12 additions and 12 deletions
|
@ -275,16 +275,16 @@ splhigh_(void)
|
|||
/*
|
||||
* Restore previous interrupt mask.
|
||||
*/
|
||||
void
|
||||
splx_(int sr)
|
||||
{
|
||||
#ifdef __IAR_SYSTEMS_ICC__
|
||||
__bis_SR_register(sr);
|
||||
#else
|
||||
/* If GIE was set, restore it. */
|
||||
asmv("bis %0, r2" : : "r" (sr));
|
||||
#endif
|
||||
}
|
||||
/* void */
|
||||
/* splx_(int sr) */
|
||||
/* { */
|
||||
/* #ifdef __IAR_SYSTEMS_ICC__ */
|
||||
/* __bis_SR_register(sr); */
|
||||
/* #else */
|
||||
/* /\* If GIE was set, restore it. *\/ */
|
||||
/* asmv("bis %0, r2" : : "r" (sr)); */
|
||||
/* #endif */
|
||||
/* } */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* this code will always start the TimerB if not already started */
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue