Skip to content

Commit c183306

Browse files
committed
frLiuLayland: Arduino IDE auto formatting
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
1 parent b5b32db commit c183306

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

examples/frLiuLayland/frLiuLayland.ino

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void calibrate() {
6464
uint32_t t = micros();
6565
burnCPU(1000);
6666
t = micros() - t;
67-
cal = (TICK_USEC*1000*cal)/t;
67+
cal = (TICK_USEC * 1000 * cal) / t;
6868
}
6969
//------------------------------------------------------------------------------
7070
// print helpers
@@ -84,7 +84,7 @@ void done(const char* msg, task_t* task, TickType_t now) {
8484
Serial.println(now);
8585
Serial.print("Task: ");
8686
printTask(task);
87-
while(1);
87+
while (1);
8888
}
8989
//------------------------------------------------------------------------------
9090
// start tasks at 1000 ticks
@@ -122,7 +122,7 @@ void setup() {
122122
portBASE_TYPE s; // task create status
123123

124124
Serial.begin(9600);
125-
while(!Serial) {}
125+
while (!Serial) {}
126126
Serial.println("Rate Monotonic Scheduling Examples.");
127127
Serial.println("Cases 1 and 3 should fail");
128128
Serial.println("Cases 2 and 4 should succeed");
@@ -151,29 +151,29 @@ void setup() {
151151

152152
uint32_t t = micros();
153153
burnCPU(1000);
154-
Serial.println(micros() -t);
154+
Serial.println(micros() - t);
155155
Serial.println("Starting tasks - period and CPU in ticks");
156156
Serial.println("Period,CPU,Priority");
157157
for (int i = 0; i < n; i++) {
158158
printTask(&tasks[i]);
159-
cpuUse += tasks[i].cpu/(float)tasks[i].period;
159+
cpuUse += tasks[i].cpu / (float)tasks[i].period;
160160

161161
s = xTaskCreate(task, NULL, 200, (void*)&tasks[i], tasks[i].priority, NULL);
162162
if (s != pdPASS) {
163163
printf("task create failed\n");
164-
while(1);
164+
while (1);
165165
}
166166
}
167167
printf("CPU use %%: %f\r\n", cpuUse * 100);
168168
printf("Liu and Layland bound %%: %f\r\n", LiuLayland[n - 1]);
169169
// start tasks
170170
vTaskStartScheduler();
171171
Serial.println("Scheduler failed");
172-
while(1);
172+
while (1);
173173
}
174174
//------------------------------------------------------------------------------
175175
// WARNING idle loop has a very small stack (configMINIMAL_STACK_SIZE)
176176
// loop must never block
177177
void loop() {
178178
// not used
179-
}
179+
}

0 commit comments

Comments
 (0)