CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

int_ext

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
sharaz
Guest







int_ext
PostPosted: Sat Sep 16, 2006 10:38 pm     Reply with quote

am new to this environment and sjut starting to get use to some of this terminolgy. My question is what does the #int_ext do and why must it be followed by the void ext_isr(void); and if i am working with source boost compiler how do i begin to write codes with it before loading the code onto proteus. thx
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Sep 16, 2006 11:04 pm     Reply with quote

Quote:
My question is what does the #int_ext do and why must it be followed by the void ext_isr(void);

Quote:
if i am working with source boost compiler how do i begin to write codes with it


Your first question is about the CCS compiler, but then your 2nd
question is about the BoostC compiler. Are you sure you are on
the correct forum ?

If you are really using the BoostC compiler, then you should use
their forum.
http://forum.sourceboost.com/
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Sun Sep 17, 2006 7:24 am     Reply with quote

Quote:
My question is what does the #int_ext do and why must it be followed by the void ext_isr(void);
The #int_ext declaration tells the compiler that the following function is a special function for handling the EXT pin interrupt. Interrupt functions are by definition of the void type with void parameters, the actual name you use for the function is not important as it is not used anywhere.

Quote:
and if i am working with source boost compiler how do i begin to write codes with it before loading the code onto proteus.
I don't know. The handling of interrupts is not defined in the C programming language, every compiler builder has defined it's own extensions to the C language to fill this gap. #int_xxx is the CCS way of handling interrupts. For the Boost Compiler you will have to look up their manual.
sharaz
Guest







#int_ext
PostPosted: Sun Sep 17, 2006 2:37 pm     Reply with quote

thx for yoour reply, it was indeed helpful
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group