diff --git a/port/esp32/components/btstack/btstack_audio_esp32.c b/port/esp32/components/btstack/btstack_audio_esp32.c index ebecda375..09623b651 100644 --- a/port/esp32/components/btstack/btstack_audio_esp32.c +++ b/port/esp32/components/btstack/btstack_audio_esp32.c @@ -48,7 +48,6 @@ #include "btstack_debug.h" #include "btstack_audio.h" #include "btstack_run_loop.h" -#include "hal_audio.h" #include "freertos/FreeRTOS.h" #include "freertos/queue.h" diff --git a/port/esp32/integrate_btstack.py b/port/esp32/integrate_btstack.py index fd7a27b2a..50cde34db 100755 --- a/port/esp32/integrate_btstack.py +++ b/port/esp32/integrate_btstack.py @@ -45,7 +45,6 @@ dirs_to_copy = [ '3rd-party/micro-ecc', '3rd-party/yxml', 'platform/freertos', -'platform/embedded', 'platform/lwip', 'tool' ] @@ -54,5 +53,18 @@ for dir in dirs_to_copy: print('- %s' % dir) shutil.copytree(local_dir + '/../../' + dir, IDF_BTSTACK + '/' + dir) +# manually prepare platform/embedded +print('- platform/embedded') +platform_embedded_path = IDF_BTSTACK + '/platform/embedded' +os.makedirs(platform_embedded_path) +platform_embedded_files_to_copy = [ + 'hal_time_ms.h', + 'hal_uart_dma.h', + 'hci_dump_embedded_stdout.h', + 'hci_dump_embedded_stdout.c', +] +for file in platform_embedded_files_to_copy: + shutil.copy(local_dir+'/../../platform/embedded/'+file, platform_embedded_path) + # create example/btstack create_examples.create_examples(local_dir, '')