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
Posted: Sat Sep 16, 2006 11:04 pm
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 ?
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Sun Sep 17, 2006 7:24 am
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.
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