Skip to content

Commit 57bac9a

Browse files
committed
update submodules
1 parent 3e616cc commit 57bac9a

3 files changed

Lines changed: 8 additions & 23 deletions

File tree

devices/ble_hci/common-hal/_bleio/Adapter.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,14 @@
3434

3535
#include "shared-bindings/_bleio/Connection.h"
3636
#include "shared-bindings/_bleio/ScanResults.h"
37+
#include "shared-bindings/busio/UART.h"
38+
#include "shared-bindings/digitalio/DigitalInOut.h"
3739
#include "shared-bindings/microcontroller/Pin.h"
3840

41+
#ifndef BLEIO_TOTAL_CONNECTION_COUNT
42+
#define BLEIO_TOTAL_CONNECTION_COUNT 5
43+
#endif
44+
3945
extern bleio_connection_internal_t bleio_connections[BLEIO_TOTAL_CONNECTION_COUNT];
4046

4147
typedef struct {

devices/ble_hci/common-hal/_bleio/Connection.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ typedef struct {
6161
volatile pair_status_t pair_status;
6262
uint8_t sec_status; // Internal security status.
6363
mp_obj_t connection_obj;
64-
ble_drv_evt_handler_entry_t handler_entry;
65-
ble_gap_conn_params_t conn_params;
64+
//REMOVE ble_drv_evt_handler_entry_t handler_entry;
65+
//REMOVE ble_gap_conn_params_t conn_params;
6666
volatile bool conn_params_updating;
6767
uint16_t mtu;
6868
// Request that CCCD values for this conenction be saved, using sys_attr values.
@@ -81,8 +81,6 @@ typedef struct {
8181
uint8_t disconnect_reason;
8282
} bleio_connection_obj_t;
8383

84-
bool connection_on_ble_evt(ble_evt_t *ble_evt, void *self_in);
85-
8684
uint16_t bleio_connection_get_conn_handle(bleio_connection_obj_t *self);
8785
mp_obj_t bleio_connection_new_from_internal(bleio_connection_internal_t* connection);
8886
bleio_connection_internal_t *bleio_conn_handle_to_connection(uint16_t conn_handle);

devices/ble_hci/supervisor/bluetooth.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,3 @@
2727
#if CIRCUITPY_BLE_FILE_SERVICE
2828
#error CIRCUITPY_BLE_FILE_SERVICE not implemented for CIRCUITPY_BLEIO_HCI
2929
#endif
30-
31-
void supervisor_bluetooth_start_advertising(void) {
32-
}
33-
34-
void supervisor_start_bluetooth(void) {
35-
}
36-
37-
FIL active_file;
38-
volatile bool new_filename;
39-
volatile bool run_ble_background;
40-
bool was_connected;
41-
42-
void supervisor_bluetooth_background(void) {
43-
}
44-
45-
// This happens in an interrupt so we need to be quick.
46-
bool supervisor_bluetooth_hook(ble_evt_t *ble_evt) {
47-
return false;
48-
}

0 commit comments

Comments
 (0)