Differences

This shows you the differences between two versions of the page.

chibios:kb:timing [2012/07/22 21:22]
giovanni
chibios:kb:timing [2012/07/22 21:25] (current)
giovanni [A different solution]
Line 75: Line 75:
  
   /* Restarts the timer.*/   /* Restarts the timer.*/
 +  chSysLockFromIsr();
   chVTSetI(&vt, MS2ST(1000), do_something, p);   chVTSetI(&vt, MS2ST(1000), do_something, p);
 +  chSysUnlockFromIsr();
  
   /* Periodic code here.*/   /* Periodic code here.*/
 
chibios/kb/timing.txt · Last modified: 2012/07/22 21:25 by giovanni
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.3