mirror of
https://github.com/stargieg/bacnet-stack
synced 2025-10-26 23:35:52 +08:00
[r3151] Clean up compile for Atmel port example.
This commit is contained in:
parent
e99cf2d714
commit
d5afb15e9b
|
|
@ -16,6 +16,7 @@
|
||||||
/* Taken from the Yahoo LPC2000 User's Group - Files Section 'UT050418A.ZIP' */
|
/* Taken from the Yahoo LPC2000 User's Group - Files Section 'UT050418A.ZIP' */
|
||||||
/* Specifically, the module armVIC.c with the include file references removed */
|
/* Specifically, the module armVIC.c with the include file references removed */
|
||||||
/* ********************************************************************************************** */
|
/* ********************************************************************************************** */
|
||||||
|
#include "isr.h"
|
||||||
|
|
||||||
#define IRQ_MASK 0x00000080
|
#define IRQ_MASK 0x00000080
|
||||||
#define FIQ_MASK 0x00000040
|
#define FIQ_MASK 0x00000040
|
||||||
|
|
@ -25,8 +26,7 @@ static inline unsigned __get_cpsr(
|
||||||
void)
|
void)
|
||||||
{
|
{
|
||||||
unsigned long retval;
|
unsigned long retval;
|
||||||
asm volatile (
|
asm volatile (" mrs %0, cpsr" : "=r" (retval) : /* no inputs */ );
|
||||||
" mrs %0, cpsr":"=r" (retval): /* no inputs */ );
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user