Differences

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

Link to this comparison view

Both sides previous revision Previous revision
chibios:book:kernel_vt [2015/12/14 19:30]
giovanni [Examples]
chibios:book:kernel_vt [2015/12/14 19:31] (current)
giovanni
Line 138: Line 138:
  
   LED_on();   LED_on();
-  ​chSysLockFromISR();​ +  ​chVTSet(&​led_vt,​ MS2ST(500), led_cb, NULL);
-  chVTSetI(&​led_vt,​ MS2ST(500), led_cb, NULL); +
-  chSysUnlockFromISR();+
 } }
  
Line 181: Line 179:
  
   LED_toggle();​   LED_toggle();​
-  ​chVTSet(&​led_vt,​ MS2ST(500), led_cb, NULL);+  ​chSysLockFromISR();​ 
 +  chVTSetI(&​led_vt,​ MS2ST(500), led_cb, NULL); 
 +  chSysUnlockFromISR();
 } }