OVMS3-idf/examples/09_a2dp/main/demo_main.c
wangmengyang 0ad3017df7 component/bt: A2DP code original in example project moved to component/bt directory;
1. move btif and A2DP source code from project directory to bluetooth directory;
2. some updates of audio source code;
2016-12-26 17:40:28 +08:00

29 lines
655 B
C
Executable file

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "bt.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "nvs_flash.h"
#include "esp_system.h"
#include "EspAudio.h"
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()
{
nvs_flash_init();
system_init();
#include "psramApi.h"
psram_cache_enable();
printf("Free memory: %d bytes\n", system_get_free_heap_size());
EspAudio_Init();
bt_controller_init();
bt_app_task_start_up();
// bte_main_boot_entry(bt_app_core_start);
}