Re: Does TINI OS use internally Timer Interrupts?
Bryan Armstrong <bryan.armstrong-6tN4nzCoH/[email protected]> Fri, 04 Jun 2004 08:36:15 -0500
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
Peter Wein wrote: > you have mentioned below, that I can use TIMER 1 or TIMER 3, if I do not > use Serial 1 or Serial 3.. > Two questions: > 1.) TIMER 1 is not used by Serial0IRqHandler, according to SDCC C- > Compiler, which rejected to write there?? You cannot use C native libraries with TINIOS. You will have to use assembler as no C compiler we have found will work within the restrictions. No direct usage, no indirect usage, no taking interrupts without calling system functions, restricted XSEG memory usage, etc. I am not familiar with the Serial0IRqHandler function. Is this a built in SDCC function label? Your code looks fine. If you are locating this code at 0x490000, you will have to put a vector at 0x0000XX to your timer3_isr() so that the interrupt will get to your code. -- -- Bryan Armstrong bryan.armstrong-6tN4nzCoH/[email protected] _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini