Hi,
At least put the prototype in (an include of) the file
that contains main(). This is where the ISR table is
filled.
When you use an included header file I consider it good
practice to also include it where the function is
implemented so the compiler can check the prototype for
being an interrupt and its number.
Other files do not need to know about the ISR.
Greets,
Maarten
> Hi Folks
>
> What is the correct way of Declare Prototypes of ISR ?
>
> Is it only in the file that contains main()
>
> or
>
> file that has main() and file that contain ISR routine it self
>
> or
>
> every file that is compiled and linked to for the runtime object ?
>
>
> void Timer0_ISR(void) interrupt 1 using 2;
>
> void Timer0_ISR(void) interrupt 1 using 2
> {
> ...
> }
>
>
>
> Problem
>
> ASM file seem to have the errors in the ISR table
>
> thanks
>
> Gaz
>
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user