Same as freertos_bluetooth but now with FreeRTOS v_8.2.1

Dependencies:   mbed m3pi FreeRTOS_V8_2_1_LPC1768

Revision:
6:00f820418d01
Parent:
5:97a449a1e05f
--- a/main.cpp	Wed Dec 05 18:13:24 2018 +0000
+++ b/main.cpp	Mon Dec 10 10:04:44 2018 +0000
@@ -12,8 +12,7 @@
 DigitalOut led1(LED1);
 DigitalOut led2(LED2);
 
-Serial rn41(p28,p27); // Serial rn41(p9,p10);
-
+DigitalOut nRST(p26);
 
 const portTickType xDelay = 100 / portTICK_RATE_MS;
 
@@ -23,8 +22,14 @@
 void TaskBluetooth (void* pvParameters)
 {       
     (void) pvParameters;                    // Just to stop compiler warnings.   
+        
+    int i;    
     
-    int i;    
+    nRST = 0;
+    vTaskDelay(xDelay);
+    nRST = 1;
+    
+    Serial rn41(p28,p27); // Serial rn41(p9,p10);
     
     rn41.baud(115200);
     led1 = 1;
@@ -63,7 +68,7 @@
 
 int main (void)
 {
-    xTaskCreate( TaskBluetooth, ( signed char * ) "TaskBluetooth", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, ( xTaskHandle * ) NULL );
+    xTaskCreate( TaskBluetooth, ( const char * ) "TaskBluetooth", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, ( xTaskHandle * ) NULL );
     vTaskStartScheduler();
    //should never get here
    printf("ERORR: vTaskStartScheduler returned!");