hello all, 

thanks a lot for your feedback! As for your mails see my comments below

> You forgot the option to modify SDCC so it accepts the __interrupt keyword
> either before or after the function :)

weeeellll I figured that is not really an option - is it???

> Are you sure? The Raisonance C compiler for ST7/STM8 appears to expect the 
> interrupt or trap keywords to follow the function parameters, like SDCC. 
> See pages 43-44 here:
> 
>   ftp://raisonance.com/pub/Support/RKit-STM8/RCSTM8.pdf
> 
> You might also want to double check that you have the current version of 
> the STM8-SPL. From the link you provided, I downloaded STSW-STM8069 
> version 2.2.0. It appears to provide compiler specific implementations of 
> a macro named INTERRUPT_HANDLER that takes two parameters: a function name 
> and a vector number. The macro forms a function declaration with interrupt 
> keyword either at the beginning or end of the declartion, as appropriate 
> for the detected compiler.

sorry I probably haven’t made myself clear. The macro INTERRUPT_HANDLER you 
mention is used for the implementation and works just fine with SDCC. I was 
referring to the macro INTERRUPT (a few lines below) which is only used for 
declaration in the ISR header file (see stm8s_it.h). Maybe in the end I have to 
do the same as for Raisonance, which simply skips the declaration: not nice but 
works 

Best regards,
Georg Icking-Konert
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to