12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
-
- #include "init_task.h"
- #include "common_config.h"
- #include "hw_init.h"
- #include "netconf.h"
- #include "main.h"
- #include "wdg.h"
- #include "usart.h"
- #include "settings_api.h"
- #include "rtc.h"
- #include "FreeRTOS.h"
- #include "task.h"
- #ifdef PRINTF_STDLIB
- #include <stdio.h>
- #endif
- #ifdef PRINTF_CUSTOM
- #include "tinystdio.h"
- #endif
- static void vTaskDebug(void *pvParameters);
- TaskHandle_t xHandleSntpOnceSinhro = NULL;
- void InitTask( void *params)
- {
- BT_6702_Init();
-
- SETTINGS_ResetBootTry();
- vTaskDelete(NULL);
- taskYIELD();
-
- }
- static void vTaskDebug(void *pvParameters)
- {
- char msg[700];
- for(;;)
- {
- vTaskList(msg);
- printf(msg);
- printf("\n\r");
-
- vTaskDelay(1000);
- }
- }
|