Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Enable And Disable Interrupt In AT91FR40162S
PostPosted: Mon Oct 04, 2010 9:27 am 
Offline

Joined: Mon Oct 04, 2010 9:13 am
Posts: 1
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
:)


Top
 Profile  
 
 Post subject: Re: Enable And Disable Interrupt In AT91FR40162S
PostPosted: Mon Oct 04, 2010 9:26 pm 
Offline

Joined: Thu Feb 25, 2010 5:02 pm
Posts: 90
See http://www.keil.com/support/man/docs/armcc/armcc_chdfgfab.htm

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: