2016-11-04 03:08:30 -04:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <unistd.h>
|
2016-11-16 09:00:18 -05:00
|
|
|
#include <string.h>
|
2016-11-04 03:08:30 -04:00
|
|
|
#include "bt.h"
|
|
|
|
#include "freertos/FreeRTOS.h"
|
|
|
|
#include "freertos/task.h"
|
|
|
|
|
2016-11-16 09:00:18 -05:00
|
|
|
#include "nvs_flash.h"
|
|
|
|
#include "esp_system.h"
|
2016-12-26 07:35:28 -05:00
|
|
|
// #include "EspAudio.h"
|
2016-11-04 03:08:30 -04:00
|
|
|
|
|
|
|
extern void bte_main_boot_entry(void *);
|
|
|
|
extern void bt_app_task_start_up(void);
|
|
|
|
extern void bt_app_core_start(void);
|
|
|
|
|
|
|
|
void app_main()
|
|
|
|
{
|
2016-11-16 09:00:18 -05:00
|
|
|
nvs_flash_init();
|
2016-12-26 07:35:28 -05:00
|
|
|
// system_init();
|
|
|
|
// printf("Free memory: %d bytes\n", system_get_free_heap_size());
|
|
|
|
// EspAudio_Init();
|
2016-11-04 03:08:30 -04:00
|
|
|
bt_controller_init();
|
|
|
|
bt_app_task_start_up();
|
|
|
|
}
|