File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+
3945extern bleio_connection_internal_t bleio_connections [BLEIO_TOTAL_CONNECTION_COUNT ];
4046
4147typedef struct {
Original file line number Diff line number Diff 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-
8684uint16_t bleio_connection_get_conn_handle (bleio_connection_obj_t * self );
8785mp_obj_t bleio_connection_new_from_internal (bleio_connection_internal_t * connection );
8886bleio_connection_internal_t * bleio_conn_handle_to_connection (uint16_t conn_handle );
Original file line number Diff line number Diff line change 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- }
You can’t perform that action at this time.
0 commit comments