• R/O
  • SSH
  • HTTPS

chibios: Commit


Commit MetaInfo

Revision14335 (tree)
Time2021-04-28 23:42:13
Authorgdisirio

Log Message

(empty log message)

Change Summary

Incremental Difference

--- trunk/testrt/VT_STORM/source/vt_storm.c (revision 14334)
+++ trunk/testrt/VT_STORM/source/vt_storm.c (revision 14335)
@@ -86,7 +86,6 @@
8686
8787 chSysLockFromISR();
8888 chVTSetI(&wrapper, (sysinterval_t)-1, wrapper_cb, NULL);
89- chVTSetI(&sweeper0, delay, sweeper0_cb, NULL);
9089 chSysUnlockFromISR();
9190 }
9291
@@ -93,37 +92,21 @@
9392 static void sweeperm1_cb(void *p) {
9493
9594 (void)p;
96-
97- chSysLockFromISR();
98- chVTSetI(&sweeperm1, delay - 1, sweeperm1_cb, NULL);
99- chSysUnlockFromISR();
10095 }
10196
10297 static void sweeperp1_cb(void *p) {
10398
10499 (void)p;
105-
106- chSysLockFromISR();
107- chVTSetI(&sweeperp1, delay + 1, sweeperp1_cb, NULL);
108- chSysUnlockFromISR();
109100 }
110101
111102 static void sweeperm3_cb(void *p) {
112103
113104 (void)p;
114-
115- chSysLockFromISR();
116- chVTSetI(&sweeperm3, delay - 3, sweeperm3_cb, NULL);
117- chSysUnlockFromISR();
118105 }
119106
120107 static void sweeperp3_cb(void *p) {
121108
122109 (void)p;
123-
124- chSysLockFromISR();
125- chVTSetI(&sweeperp3, delay + 3, sweeperp3_cb, NULL);
126- chSysUnlockFromISR();
127110 }
128111
129112 /*===========================================================================*/
@@ -182,11 +165,11 @@
182165 /* Starting sweepers.*/
183166 chSysLock();
184167 chVTSetI(&watchdog, TIME_MS2I(501), watchdog_cb, NULL);
185- chVTSetI(&sweeper0, delay, sweeper0_cb, NULL);
186- chVTSetI(&sweeperm1, delay - 1, sweeperm1_cb, NULL);
187- chVTSetI(&sweeperp1, delay + 1, sweeperp1_cb, NULL);
188- chVTSetI(&sweeperm3, delay - 3, sweeperm3_cb, NULL);
189- chVTSetI(&sweeperp3, delay + 3, sweeperp3_cb, NULL);
168+ chVTSetContinuousI(&sweeper0, delay, sweeper0_cb, NULL);
169+ chVTSetContinuousI(&sweeperm1, delay - 1, sweeperm1_cb, NULL);
170+ chVTSetContinuousI(&sweeperp1, delay + 1, sweeperp1_cb, NULL);
171+ chVTSetContinuousI(&sweeperm3, delay - 3, sweeperm3_cb, NULL);
172+ chVTSetContinuousI(&sweeperp3, delay + 3, sweeperp3_cb, NULL);
190173 chVTSetI(&wrapper, (sysinterval_t) - 1, wrapper_cb, NULL);
191174
192175 /* Letting them run for half second.*/
Show on old repository browser