|
Post by Christian on Jan 22, 2018 15:00:33 GMT
For my Project I tried to use Timers. But even the example "GenTimersTest" example wont compile. Other TC275 Examples will compile without problem.
Error is "'TimerConfig' was not declared in this Scope".
Is there any #include File missing?
|
|
|
Post by Admin on Jan 22, 2018 15:18:42 GMT
OOps. Looks like the example is wrong. Attached is the corrected version. GenTimersTest.ino (3.01 KB) We will fix this in the next release!
|
|
|
Post by meijoa on Jan 23, 2018 11:05:49 GMT
Thank you for your Help and good Work.
What Arduino IDE-Versions are compatible? Somehow after 1.60 Add-in it wont connect to the Board.
|
|
|
Post by meijoa on Apr 30, 2018 10:13:02 GMT
Hi, I have a Question: Is it possible to start, set and reset the timers to implement some kind of timeout function? Or do the timers only allow cyclic interrupts?
|
|
|
Post by Admin on Apr 30, 2018 15:36:09 GMT
You can create a single event some time in the future using CreateTimerInterrupt():
If the function STM0_inittest() is only intended to run once but in 100us from now, this would be used:
/* Run STM0_inttest once, 100us in the future */ CreateTimerInterrupt(OneShotTimerInterrupt, 10000, STM0_inttest);
There are 100's of timers in the TC275 but these are not readily available in the Arduino IDE.
|
|