diff --git a/ios/RetroArch/input/BTStack/btstack/btstack.h b/ios/RetroArch/input/BTStack/btstack/btstack.h index 03c02a0fb2..4c866dc7f9 100644 --- a/ios/RetroArch/input/BTStack/btstack/btstack.h +++ b/ios/RetroArch/input/BTStack/btstack/btstack.h @@ -40,9 +40,9 @@ #pragma once -#include "hci_cmds.h" -#include "run_loop.h" -#include "utils.h" +#include +#include +#include #include diff --git a/ios/RetroArch/input/BTStack/btstack/btstack_memory.c b/ios/RetroArch/input/BTStack/btstack/btstack_memory.c index 9e3e7b9a10..b832ef8d6f 100644 --- a/ios/RetroArch/input/BTStack/btstack/btstack_memory.c +++ b/ios/RetroArch/input/BTStack/btstack/btstack_memory.c @@ -44,7 +44,7 @@ */ #include "btstack_memory.h" -#include "memory_pool.h" +#include #include diff --git a/ios/RetroArch/input/BTStack/btstack/daemon.c b/ios/RetroArch/input/BTStack/btstack/daemon.c index c4ef78c9e7..77014f91ec 100644 --- a/ios/RetroArch/input/BTStack/btstack/daemon.c +++ b/ios/RetroArch/input/BTStack/btstack/daemon.c @@ -54,9 +54,9 @@ #include -#include "btstack.h" -#include "linked_list.h" -#include "run_loop.h" +#include +#include +#include #include "debug.h" #include "hci.h" diff --git a/ios/RetroArch/input/BTStack/btstack/hci.c b/ios/RetroArch/input/BTStack/btstack/hci.c index 37a2dd5c42..5a48838d01 100644 --- a/ios/RetroArch/input/BTStack/btstack/hci.c +++ b/ios/RetroArch/input/BTStack/btstack/hci.c @@ -51,14 +51,14 @@ #ifndef EMBEDDED #include // gethostbyname -#include "version.h" +#include #endif #include "btstack_memory.h" #include "debug.h" #include "hci_dump.h" -#include "hci_cmds.h" +#include #define HCI_CONNECTION_TIMEOUT_MS 10000 diff --git a/ios/RetroArch/input/BTStack/btstack/hci_cmds.c b/ios/RetroArch/input/BTStack/btstack/hci_cmds.c index 638c440b9c..b517815ff7 100644 --- a/ios/RetroArch/input/BTStack/btstack/hci_cmds.c +++ b/ios/RetroArch/input/BTStack/btstack/hci_cmds.c @@ -40,11 +40,11 @@ * Created by Matthias Ringwald on 7/23/09. */ -#include "hci_cmds.h" +#include #include -#include "sdp_util.h" +#include #include "config.h" #include "hci.h" diff --git a/ios/RetroArch/input/BTStack/btstack/hci_transport_h4_ehcill_dma.c b/ios/RetroArch/input/BTStack/btstack/hci_transport_h4_ehcill_dma.c index 29f550face..fec101b527 100644 --- a/ios/RetroArch/input/BTStack/btstack/hci_transport_h4_ehcill_dma.c +++ b/ios/RetroArch/input/BTStack/btstack/hci_transport_h4_ehcill_dma.c @@ -54,9 +54,11 @@ #include "hci.h" #include "hci_dump.h" #include "hci_transport.h" -#include "run_loop.h" +#include -#include "hal_uart_dma.h" +#include + +// #define DUMP // eHCILL commands (+interal CTS signal) #define EHCILL_GO_TO_SLEEP_IND 0x030 @@ -314,6 +316,17 @@ static void h4_block_sent(void){ } } +#ifdef DUMP +static void dump(uint8_t *data, uint16_t len){ + int i; + if (len > 5) len = 8; + for (i=0; i #include /** * tests if list is empty diff --git a/ios/RetroArch/input/BTStack/btstack/memory_pool.c b/ios/RetroArch/input/BTStack/btstack/memory_pool.c index 75f1b6a8be..9ab94a8c2a 100644 --- a/ios/RetroArch/input/BTStack/btstack/memory_pool.c +++ b/ios/RetroArch/input/BTStack/btstack/memory_pool.c @@ -43,7 +43,7 @@ * */ -#include "memory_pool.h" +#include #include typedef struct node { diff --git a/ios/RetroArch/input/BTStack/btstack/rfcomm.c b/ios/RetroArch/input/BTStack/btstack/rfcomm.c index 9e9b0ba19d..1c3516c736 100644 --- a/ios/RetroArch/input/BTStack/btstack/rfcomm.c +++ b/ios/RetroArch/input/BTStack/btstack/rfcomm.c @@ -43,11 +43,11 @@ #include // memcpy #include -#include "btstack.h" -#include "hci_cmds.h" -#include "utils.h" +#include +#include +#include -#include "utils.h" +#include #include "btstack_memory.h" #include "hci.h" #include "hci_dump.h" diff --git a/ios/RetroArch/input/BTStack/btstack/run_loop.c b/ios/RetroArch/input/BTStack/btstack/run_loop.c index 9b66f043d2..59ed77edff 100644 --- a/ios/RetroArch/input/BTStack/btstack/run_loop.c +++ b/ios/RetroArch/input/BTStack/btstack/run_loop.c @@ -40,7 +40,7 @@ * Created by Matthias Ringwald on 6/6/09. */ -#include "run_loop.h" +#include #include #include // exit() diff --git a/ios/RetroArch/input/BTStack/btstack/run_loop.h b/ios/RetroArch/input/BTStack/btstack/run_loop.h index b6fc92a14b..90494bf777 100644 --- a/ios/RetroArch/input/BTStack/btstack/run_loop.h +++ b/ios/RetroArch/input/BTStack/btstack/run_loop.h @@ -37,7 +37,7 @@ #pragma once -#include "linked_list.h" +#include #include diff --git a/ios/RetroArch/input/BTStack/btstack/run_loop_embedded.c b/ios/RetroArch/input/BTStack/btstack/run_loop_embedded.c index 3134d2f2d9..4ed5a9cac9 100644 --- a/ios/RetroArch/input/BTStack/btstack/run_loop_embedded.c +++ b/ios/RetroArch/input/BTStack/btstack/run_loop_embedded.c @@ -52,10 +52,10 @@ */ -#include "run_loop.h" -#include "linked_list.h" -#include "hal_tick.h" -#include "hal_cpu.h" +#include +#include +#include +#include #include "run_loop_private.h" #include "debug.h" diff --git a/ios/RetroArch/input/BTStack/btstack/run_loop_posix.c b/ios/RetroArch/input/BTStack/btstack/run_loop_posix.c index add6586f9a..5ea30ace06 100644 --- a/ios/RetroArch/input/BTStack/btstack/run_loop_posix.c +++ b/ios/RetroArch/input/BTStack/btstack/run_loop_posix.c @@ -40,8 +40,8 @@ * Created by Matthias Ringwald on 6/6/09. */ -#include "run_loop.h" -#include "linked_list.h" +#include +#include #include "debug.h" #include "run_loop_private.h" diff --git a/ios/RetroArch/input/BTStack/btstack/sdp_util.c b/ios/RetroArch/input/BTStack/btstack/sdp_util.c index de9aac017b..803e9e0626 100644 --- a/ios/RetroArch/input/BTStack/btstack/sdp_util.c +++ b/ios/RetroArch/input/BTStack/btstack/sdp_util.c @@ -38,8 +38,8 @@ * sdp_util.c */ -#include "sdp_util.h" -#include "utils.h" +#include +#include #include #include diff --git a/ios/RetroArch/input/BTStack/btstack/socket_connection.c b/ios/RetroArch/input/BTStack/btstack/socket_connection.c index 29e5856634..25af85be20 100644 --- a/ios/RetroArch/input/BTStack/btstack/socket_connection.c +++ b/ios/RetroArch/input/BTStack/btstack/socket_connection.c @@ -50,7 +50,7 @@ #include "config.h" -#include "btstack.h" +#include #include #include diff --git a/ios/RetroArch/input/BTStack/btstack/utils.c b/ios/RetroArch/input/BTStack/btstack/utils.c index a8a607eea7..395dd62f7e 100644 --- a/ios/RetroArch/input/BTStack/btstack/utils.c +++ b/ios/RetroArch/input/BTStack/btstack/utils.c @@ -43,7 +43,7 @@ */ #include "config.h" -#include "utils.h" +#include #include #include "debug.h"