![]() Now add the following global variables to timerdemo.c:Īnd in the loop that counts down minutes add the following: Note that it makes a reference to runcount so you must make sure to remove the static keyword in its declaration in timerdemo.c. For this create a new module called times.c and add it to your the above example. With some minor changes you can also use it to drive the ANSI-C clock() function. Variable runcount will now be incremented every 100 ms and is used to toggle each LED at specific time intervals. * add own handler for timer interrupts */ ![]() * initialise timer at SYSTIME_CLOCK rate */ Note these two lines very early on in main: Its code is used in timerdemo.c to drive 4 LED's on your application kit. In this example module timer.c implements everything related to STM. Expand the TriCore Free Entre Toolchain tree.To create this project you need to do the following: It installs a user handler derived from STM. ![]() You may want to take a look at the Time Demo. I know I can get the frequency of a system timer module with the function below. The software requires a function to return the current system clock time measured in system ticks.Ĭan it be done using some iLLD framework functions? I am working on porting some piece of software for the Infineon Tricore TC29x.
0 Comments
Leave a Reply. |