Enable And Disable Interrupt In AT91FR40162S

All design tool related questions: compiler, assembler, linker. Embedded programming questions: assembler, C code.

Moderator: nferre

anup
Posts: 1
Joined: Mon Oct 04, 2010 9:13 am

Enable And Disable Interrupt In AT91FR40162S

Mon Oct 04, 2010 9:27 am

Hello to All,

I am working on one evaluation board that is using AT91FR40162S And right now i have one build code which is compiled by using Green Hills.

But i have to compile the same code by using KEIL IDE.

So in the code compiled by green Hills something like this is there:

// set CPSR IRQ and FIQ bits 6 and 7 to globally disable interrupts until we're ready
__DIR();

// clear IRQ and FIQ bits 6 and 7 in CPSR to globally enable interrupts
__EIR();

But i am not able to find out definition of __DIR(); and __EIR();

Please tell me How to write these two lines of Code in C to alter the CPSR bits.

I am using my coding in C language.

Thanks In Advance
:)
dfridley
Posts: 90
Joined: Thu Feb 25, 2010 5:02 pm

Re: Enable And Disable Interrupt In AT91FR40162S

Mon Oct 04, 2010 9:26 pm

Duane P. Fridley, IEEE CSDP
Viable Bytes, Inc.

Return to “Development Tools”

Who is online

Users browsing this forum: No registered users and 1 guest