commponant bt:change bt_app_main to app_main

This commit is contained in:
yulong
2016-10-14 04:44:56 -04:00
parent af9b08d863
commit f68c8dd687
4 changed files with 11 additions and 6 deletions

View File

@@ -1,6 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "bt.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "string.h"
extern void bte_main_boot_entry(void *);
@@ -15,8 +19,9 @@ void pingTask(void *pvParameters)
}
}
void bt_app_main()
void app_main()
{
bt_controller_init();
xTaskCreatePinnedToCore(&pingTask, "pingTask", 2048, NULL, 5, NULL, 0);
bt_app_task_start_up();
bte_main_boot_entry(bt_app_core_start);