mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-06 10:07:55 +00:00
nimble: Fix a few types in many places
This commit is contained in:
committed by
Łukasz Rymanowski
parent
7875bc2855
commit
9559689bc0
@@ -58,7 +58,7 @@ static struct os_callout blecsc_measure_timer;
|
||||
/* Variable holds current CSC measurement state */
|
||||
static struct ble_csc_measurement_state csc_measurement_state;
|
||||
|
||||
/* Variable holds simulted speed (kilometers per hour) */
|
||||
/* Variable holds simulated speed (kilometers per hour) */
|
||||
static uint16_t csc_sim_speed_kph = CSC_SIM_SPEED_KPH_MIN;
|
||||
|
||||
/* Variable holds simulated cadence (RPM) */
|
||||
|
||||
@@ -411,7 +411,7 @@ Advertising with Extended Advertising enabled
|
||||
+------------------------------+--------------------------+----------------------------+-------------------------------------------------------------------------------------+
|
||||
| | scan\_req\_notif | [``0``-1] | Enable SCAN\_REQ notifications |
|
||||
+------------------------------+--------------------------+----------------------------+-------------------------------------------------------------------------------------+
|
||||
| **advertise-set-addr** | | | Configure *random* adress for instance |
|
||||
| **advertise-set-addr** | | | Configure *random* address for instance |
|
||||
+------------------------------+--------------------------+----------------------------+-------------------------------------------------------------------------------------+
|
||||
| | instance | [``0``-UINT8\_MAX] | Advertising instance |
|
||||
+------------------------------+--------------------------+----------------------------+-------------------------------------------------------------------------------------+
|
||||
|
||||
@@ -4479,7 +4479,7 @@ ble_ll_adv_rx_pkt_in(uint8_t ptype, uint8_t *rxbuf, struct ble_mbuf_hdr *hdr)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* It is possible that advertising was stopped and a packet plcaed on the
|
||||
* It is possible that advertising was stopped and a packet placed on the
|
||||
* LL receive packet queue. In this case, just ignore the received packet
|
||||
* as the advertising state machine is no longer "valid"
|
||||
*/
|
||||
|
||||
@@ -3163,7 +3163,7 @@ ble_ll_conn_rx_isr_end(uint8_t *rxbuf, struct ble_mbuf_hdr *rxhdr)
|
||||
/*
|
||||
* Check the packet CRC. A connection event can continue even if the
|
||||
* received PDU does not pass the CRC check. If we receive two consecutive
|
||||
* CRC errors we end the conection event.
|
||||
* CRC errors we end the connection event.
|
||||
*/
|
||||
if (!BLE_MBUF_HDR_CRC_OK(rxhdr)) {
|
||||
/*
|
||||
@@ -3753,7 +3753,7 @@ ble_ll_conn_module_init(void)
|
||||
uint16_t i;
|
||||
struct ble_ll_conn_sm *connsm;
|
||||
|
||||
/* Initialize list of active conections */
|
||||
/* Initialize list of active connections */
|
||||
SLIST_INIT(&g_ble_ll_conn_active_list);
|
||||
STAILQ_INIT(&g_ble_ll_conn_free_list);
|
||||
|
||||
|
||||
@@ -408,7 +408,7 @@ ble_phy_set_start_time(uint32_t cputime, uint8_t rem_usecs)
|
||||
/**
|
||||
* Function is used to set PPI so that we can time out waiting for a reception
|
||||
* to occur. This happens for two reasons: we have sent a packet and we are
|
||||
* waiting for a respons (txrx should be set to ENABLE_TXRX) or we are
|
||||
* waiting for a response (txrx should be set to ENABLE_TXRX) or we are
|
||||
* starting a connection event and we are a slave and we are waiting for the
|
||||
* master to send us a packet (txrx should be set to ENABLE_RX).
|
||||
*
|
||||
@@ -1357,7 +1357,7 @@ ble_phy_setchan(uint8_t chan, uint32_t access_addr, uint32_t crcinit)
|
||||
NRF_RADIO->RXADDRESSES = (1 << 1);
|
||||
NRF_RADIO->CRCINIT = crcinit;
|
||||
} else {
|
||||
/* Logical adddress 0 preconfigured */
|
||||
/* Logical address 0 preconfigured */
|
||||
NRF_RADIO->TXADDRESS = 0;
|
||||
NRF_RADIO->RXADDRESSES = (1 << 0);
|
||||
NRF_RADIO->CRCINIT = BLE_LL_CRCINIT_ADV;
|
||||
|
||||
@@ -669,7 +669,7 @@ ble_phy_set_start_now(void)
|
||||
/**
|
||||
* Function is used to set PPI so that we can time out waiting for a reception
|
||||
* to occur. This happens for two reasons: we have sent a packet and we are
|
||||
* waiting for a respons (txrx should be set to ENABLE_TXRX) or we are
|
||||
* waiting for a response (txrx should be set to ENABLE_TXRX) or we are
|
||||
* starting a connection event and we are a slave and we are waiting for the
|
||||
* master to send us a packet (txrx should be set to ENABLE_RX).
|
||||
*
|
||||
|
||||
@@ -845,7 +845,7 @@ static int prov_link_accept(const struct prov_bearer_cb *cb, void *cb_data)
|
||||
link.cb = cb;
|
||||
link.cb_data = cb_data;
|
||||
|
||||
/* Make sure we're scanning for provisioning inviations */
|
||||
/* Make sure we're scanning for provisioning invitations */
|
||||
bt_mesh_scan_enable();
|
||||
/* Enable unprovisioned beacon sending */
|
||||
bt_mesh_beacon_enable();
|
||||
|
||||
@@ -37,7 +37,7 @@ struct bt_mesh_subnet {
|
||||
uint8_t beacons_last; /* Number of beacons during last
|
||||
* observation window
|
||||
*/
|
||||
uint8_t beacons_cur; /* Number of beaconds observed during
|
||||
uint8_t beacons_cur; /* Number of beacons observed during
|
||||
* currently ongoing window.
|
||||
*/
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
* ATT server - Attribute Protocol
|
||||
*
|
||||
* Notes on buffer reuse:
|
||||
* Most request handlers reuse the request buffer for the reponse. This is
|
||||
* Most request handlers reuse the request buffer for the response. This is
|
||||
* done to prevent out-of-memory conditions. However, there are two handlers
|
||||
* which do not reuse the request buffer:
|
||||
* 1. Write request.
|
||||
|
||||
@@ -5784,7 +5784,7 @@ ble_gap_enc_event(uint16_t conn_handle, int status,
|
||||
return;
|
||||
}
|
||||
|
||||
/* If encryption succeded and encryption has been restored for bonded device,
|
||||
/* If encryption succeeded and encryption has been restored for bonded device,
|
||||
* notify gatt server so it has chance to send notification/indication if needed.
|
||||
*/
|
||||
if (security_restored) {
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#define IOACT_INPUT BLE_SM_IOACT_INPUT
|
||||
#define IOACT_DISP BLE_SM_IOACT_DISP
|
||||
|
||||
/* This is the initiator passkey action action dpeneding on the io
|
||||
/* This is the initiator passkey action action depending on the io
|
||||
* capabilties of both parties
|
||||
*/
|
||||
static const uint8_t ble_sm_lgcy_init_ioa[5 /*resp*/ ][5 /*init*/ ] =
|
||||
|
||||
Reference in New Issue
Block a user