@@ -64,7 +64,7 @@ void calibrate() {
64
64
uint32_t t = micros ();
65
65
burnCPU (1000 );
66
66
t = micros () - t;
67
- cal = (TICK_USEC* 1000 * cal)/ t;
67
+ cal = (TICK_USEC * 1000 * cal) / t;
68
68
}
69
69
// ------------------------------------------------------------------------------
70
70
// print helpers
@@ -85,7 +85,7 @@ void done(const char* msg, task_t* task, TickType_t now) {
85
85
Serial.print (" Task: " );
86
86
Serial.flush ();
87
87
printTask (task);
88
- while (1 );
88
+ while (1 );
89
89
}
90
90
// ------------------------------------------------------------------------------
91
91
// start tasks at 1000 ticks
@@ -123,7 +123,7 @@ void setup() {
123
123
portBASE_TYPE s; // task create status
124
124
125
125
Serial.begin (9600 );
126
- while (!Serial) {}
126
+ while (!Serial) {}
127
127
Serial.println (" Rate Monotonic Scheduling Examples." );
128
128
Serial.println (" Cases 1 and 3 should fail" );
129
129
Serial.println (" Cases 2 and 4 should succeed" );
@@ -152,18 +152,18 @@ void setup() {
152
152
153
153
uint32_t t = micros ();
154
154
burnCPU (1000 );
155
- Serial.println (micros () -t);
155
+ Serial.println (micros () - t);
156
156
Serial.println (" Starting tasks - period and CPU in ticks" );
157
157
Serial.println (" Period,CPU,Priority" );
158
158
Serial.flush ();
159
159
for (int i = 0 ; i < n; i++) {
160
160
printTask (&tasks[i]);
161
- cpuUse += tasks[i].cpu / (float )tasks[i].period ;
161
+ cpuUse += tasks[i].cpu / (float )tasks[i].period ;
162
162
163
163
s = xTaskCreate (task, NULL , 200 , (void *)&tasks[i], tasks[i].priority , NULL );
164
164
if (s != pdPASS) {
165
165
printf (" task create failed\n " );
166
- while (1 );
166
+ while (1 );
167
167
}
168
168
}
169
169
@@ -174,7 +174,7 @@ void setup() {
174
174
// start tasks
175
175
vTaskStartScheduler ();
176
176
Serial.println (" Scheduler failed" );
177
- while (1 );
177
+ while (1 );
178
178
}
179
179
// ------------------------------------------------------------------------------
180
180
// WARNING idle loop has a very small stack (configMINIMAL_STACK_SIZE)
0 commit comments