]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS-Plus/Source/FreeRTOS-IoT-Libraries/c_sdk/standard/common/taskpool/iot_taskpool.c
Continued to work on the MQTT demo project.
[freertos] / FreeRTOS-Plus / Source / FreeRTOS-IoT-Libraries / c_sdk / standard / common / taskpool / iot_taskpool.c
index 0a51c3a57e64e75b210398c19af8a69250db2078..56849933776fe8780eac83b28c33184f7d713829 100644 (file)
@@ -665,8 +665,8 @@ static IotTaskPoolError_t _createTaskPool( const IotTaskPoolInfo_t * const pInfo
     static StaticTask_t workerTaskTCBs[ IOT_TASKPOOL_NUMBER_OF_WORKERS ];\r
     static StackType_t workerTaskStacks[ IOT_TASKPOOL_NUMBER_OF_WORKERS ][ IOT_TASKPOOL_WORKER_STACK_SIZE_BYTES / sizeof( portSTACK_TYPE ) ];\r
 \r
-       /* Static structure to hold te software timer. */\r
-       static StaticTimer_t staticTimer;\r
+    /* Static structure to hold te software timer. */\r
+    static StaticTimer_t staticTimer;\r
 \r
     uint32_t threadsCreated = 0; /* Although initialised before use removing the initialiser here results in compiler warnings. */\r
     char taskName[ 10 ];\r
@@ -682,11 +682,11 @@ static IotTaskPoolError_t _createTaskPool( const IotTaskPoolInfo_t * const pInfo
 \r
     /* Create the timer for a new connection. */\r
     pTaskPool->timer = xTimerCreateStatic( NULL, /* Text name for the timer, only used for debugging. */\r
-                                                  portMAX_DELAY, /* Timer period in ticks. */\r
-                                                  pdFALSE, /* pdFALSE means its a one-shot timer. */\r
-                                                 ( void * ) pTaskPool, /* Parameter passed into callback. */\r
-                                                 _timerCallback, /* Callback that executes when the timer expires. */\r
-                                                 &staticTimer ); /* Static storage for the timer's data structure. */\r
+                                           portMAX_DELAY, /* Timer period in ticks. */\r
+                                           pdFALSE, /* pdFALSE means its a one-shot timer. */\r
+                                          ( void * ) pTaskPool, /* Parameter passed into callback. */\r
+                                          _timerCallback, /* Callback that executes when the timer expires. */\r
+                                          &staticTimer ); /* Static storage for the timer's data structure. */\r
 \r
     /* The task pool will initialize the minimum number of threads requested by the user upon start.\r
     Note this tailored version of the task pool does not autoscale, but fixes the number of tasks\r
@@ -699,17 +699,17 @@ static IotTaskPoolError_t _createTaskPool( const IotTaskPoolInfo_t * const pInfo
 \r
         xTaskCreateStatic( _taskPoolWorker, /* Function that implements the task. */\r
                            taskName,       /* Text name for the task, used for debugging only. */\r
-                                      IOT_TASKPOOL_WORKER_STACK_SIZE_BYTES / sizeof( portSTACK_TYPE ), /* xTaskCreate() expects the stack size to be specified in words. */\r
+                           IOT_TASKPOOL_WORKER_STACK_SIZE_BYTES / sizeof( portSTACK_TYPE ), /* xTaskCreate() expects the stack size to be specified in words. */\r
                            pTaskPool,       /* Parameter passed into the task. */\r
                            pInfo->priority, /* Priority at which the task starts running. */\r
                            &( workerTaskStacks[ threadsCreated ][ 0 ] ), /* Pointer to static storage for the task's stack. */\r
-                                                  &( workerTaskTCBs[ threadsCreated ] ) ); /* Pointer to static storage for te task's TCB. */\r
+                           &( workerTaskTCBs[ threadsCreated ] ) ); /* Pointer to static storage for te task's TCB. */\r
 \r
-               /* Upon successful thread creation, increase the number of active threads. */\r
+        /* Upon successful thread creation, increase the number of active threads. */\r
         pTaskPool->activeThreads++;\r
         ++threadsCreated;\r
     }\r
-       pTaskPool->running = true;\r
+    pTaskPool->running = true;\r
 \r
     TASKPOOL_FUNCTION_CLEANUP();\r
 \r