diff options
| author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-06-24 14:37:54 -0400 |
|---|---|---|
| committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-06-24 14:37:54 -0400 |
| commit | 55ec285642dc2651733b55687f4bb0bd23817b38 (patch) | |
| tree | 1f84b59ed38561b3964c881cfef67d7c556c78c3 /examples/freertos-blinky.cpp | |
| parent | 493300b13bf7095990c42663289f5612163d332c (diff) | |
Make FreeRTOS changes comply with the coding standard.
Don't modify the core FreeRTOS code; only change source that's
specific to libmaple.
Diffstat (limited to 'examples/freertos-blinky.cpp')
| -rwxr-xr-x | examples/freertos-blinky.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/examples/freertos-blinky.cpp b/examples/freertos-blinky.cpp index acdfc0f..6f82d71 100755 --- a/examples/freertos-blinky.cpp +++ b/examples/freertos-blinky.cpp @@ -1,8 +1,8 @@ #include "wirish.h" #include "libraries/FreeRTOS/MapleFreeRTOS.h" -static void vLEDFlashTask( void *pvParameters ) { - for(;;) { +static void vLEDFlashTask(void *pvParameters) { + for (;;) { vTaskDelay(1000); digitalWrite(BOARD_LED_PIN, HIGH); vTaskDelay(50); @@ -14,7 +14,12 @@ void setup() { // initialize the digital pin as an output: pinMode(BOARD_LED_PIN, OUTPUT); - xTaskCreate( vLEDFlashTask, ( signed portCHAR * ) "Task1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 2, NULL ); + xTaskCreate(vLEDFlashTask, + (signed portCHAR *)"Task1", + configMINIMAL_STACK_SIZE, + NULL, + tskIDLE_PRIORITY + 2, + NULL); vTaskStartScheduler(); } |
