Indentation fixes

- Fix dir-locals so emacs won't inject occasional tabs to case statements.
- Fix stray tab indentation in example programs. (Thx @pfalcon for pointing this out)
This commit is contained in:
Angus Gratton 2015-06-09 09:00:32 +10:00
parent a59b1565e4
commit c09167715e
10 changed files with 234 additions and 226 deletions

View file

@ -12,9 +12,9 @@ void task1(void *pvParameters)
printf("Hello from task1!\r\n");
uint32_t count = 0;
while(1) {
vTaskDelay(100);
xQueueSend(*queue, &count, 0);
count++;
vTaskDelay(100);
xQueueSend(*queue, &count, 0);
count++;
}
}
@ -23,12 +23,12 @@ void task2(void *pvParameters)
printf("Hello from task 2!\r\n");
xQueueHandle *queue = (xQueueHandle *)pvParameters;
while(1) {
uint32_t count;
if(xQueueReceive(*queue, &count, 1000)) {
printf("Got %d\n", count);
} else {
printf("No msg :(\n");
}
uint32_t count;
if(xQueueReceive(*queue, &count, 1000)) {
printf("Got %d\n", count);
} else {
printf("No msg :(\n");
}
}
}
@ -42,5 +42,3 @@ void user_init(void)
xTaskCreate(task1, (signed char *)"tsk1", 256, &mainqueue, 2, NULL);
xTaskCreate(task2, (signed char *)"tsk2", 256, &mainqueue, 2, NULL);
}