Omnimaga

Calculator Community => TI Calculators => Calculator C => Topic started by: SirCmpwn on October 28, 2010, 08:16:23 am

Title: Interrupts
Post by: SirCmpwn on October 28, 2010, 08:16:23 am
How do I set up a timed interrupt routine?
Title: Re: Interrupts
Post by: ExtendeD on October 28, 2010, 08:55:35 am
(I am supposing this is for the TI-Nspire)

Could you describe further what you would like to do? Setting an an interrupt handler is probably not easy, perhaps an inline delay could be a better solution depending on what you want to do.

I have a working sleep() routine I should commit to the Ndless SVN.
Title: Re: Interrupts
Post by: SirCmpwn on October 28, 2010, 04:45:05 pm
I want a way of timing when code will run, for music.
Title: Re: Interrupts
Post by: ExtendeD on October 28, 2010, 04:52:01 pm
For music? So it's not for the TI-Nspire.

Anyway I have just commited the sleep() (http://hackspire.unsads.com/wiki/index.php/Libndls#Time) function.
Title: Re: Interrupts
Post by: SirCmpwn on October 28, 2010, 04:53:28 pm
It is for the nspire, actually, hence why I posted in the C thread.
Title: Re: Interrupts
Post by: ExtendeD on October 28, 2010, 04:56:04 pm
So you are trying to output sound to the 84+ I/O port?
Is sleep() good for you?
Title: Re: Interrupts
Post by: SirCmpwn on October 28, 2010, 04:57:27 pm
I don't think so, I was hoping to have some code that is executed every so often, where "so often" was a known value.
Title: Re: Interrupts
Post by: SirCmpwn on October 29, 2010, 08:29:25 am
*bump*