mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-01 04:50:58 +02:00
Update IDF to 65acd99 (#358)
* Update IDF to 65acd99 * Update platformio and arduino build paths and libs * Update esptool binaries
This commit is contained in:
@ -1383,6 +1383,11 @@ typedef UINT8 tBTM_IO_CAP;
|
||||
#define BTM_AUTH_BONDS 6 /* the general/dedicated bonding bits */
|
||||
#define BTM_AUTH_YN_BIT 1 /* this is the Yes or No bit */
|
||||
|
||||
#define BTM_BLE_ENC_KEY_MASK (1 << 0)
|
||||
#define BTM_BLE_ID_KEY_MASK (1 << 1)
|
||||
#define BTM_BLE_CSR_KEY_MASK (1 << 2)
|
||||
#define BTM_BLE_LINK_KEY_MASK (1 << 3)
|
||||
|
||||
#define BTM_BLE_INITIATOR_KEY_SIZE 15
|
||||
#define BTM_BLE_RESPONDER_KEY_SIZE 15
|
||||
#define BTM_BLE_MAX_KEY_SIZE 16
|
||||
@ -1526,6 +1531,7 @@ typedef void (tBTM_BOND_CANCEL_CMPL_CALLBACK) (tBTM_STATUS result);
|
||||
|
||||
/* LE related event and data structure
|
||||
*/
|
||||
#if (SMP_INCLUDED == TRUE)
|
||||
#define BTM_LE_IO_REQ_EVT SMP_IO_CAP_REQ_EVT /* received IO_CAPABILITY_REQUEST event */
|
||||
#define BTM_LE_SEC_REQUEST_EVT SMP_SEC_REQUEST_EVT /* security request event */
|
||||
#define BTM_LE_KEY_NOTIF_EVT SMP_PASSKEY_NOTIF_EVT /* received USER_PASSKEY_NOTIFY event */
|
||||
@ -1541,8 +1547,10 @@ typedef void (tBTM_BOND_CANCEL_CMPL_CALLBACK) (tBTM_STATUS result);
|
||||
#define BTM_LE_COMPLT_EVT SMP_COMPLT_EVT /* SMP complete event */
|
||||
#define BTM_LE_LAST_FROM_SMP BTM_LE_BR_KEYS_REQ_EVT
|
||||
#define BTM_LE_KEY_EVT BTM_LE_LAST_FROM_SMP + 1 /* KEY update event */
|
||||
#endif ///SMP_INCLUDED == TRUE
|
||||
typedef UINT8 tBTM_LE_EVT;
|
||||
|
||||
#if (BLE_INCLUDED == TRUE && SMP_INCLUDED == TRUE)
|
||||
#define BTM_LE_KEY_NONE 0
|
||||
#define BTM_LE_KEY_PENC SMP_SEC_KEY_TYPE_ENC /* encryption information of peer device */
|
||||
#define BTM_LE_KEY_PID SMP_SEC_KEY_TYPE_ID /* identity key of the peer device */
|
||||
@ -1552,12 +1560,15 @@ typedef UINT8 tBTM_LE_EVT;
|
||||
#define BTM_LE_KEY_LENC (SMP_SEC_KEY_TYPE_ENC << 4) /* master role security information:div */
|
||||
#define BTM_LE_KEY_LID (SMP_SEC_KEY_TYPE_ID << 4) /* master device ID key */
|
||||
#define BTM_LE_KEY_LCSRK (SMP_SEC_KEY_TYPE_CSRK << 4) /* local CSRK has been deliver to peer */
|
||||
#endif ///BLE_INCLUDED == TRUE && SMP_INCLUDED == TRUE
|
||||
typedef UINT8 tBTM_LE_KEY_TYPE;
|
||||
|
||||
#if (SMP_INCLUDED == TRUE)
|
||||
#define BTM_LE_AUTH_REQ_NO_BOND SMP_AUTH_NO_BOND /* 0 */
|
||||
#define BTM_LE_AUTH_REQ_BOND SMP_AUTH_GEN_BOND /* 1 << 0 */
|
||||
#define BTM_LE_AUTH_REQ_MITM SMP_AUTH_YN_BIT /* 1 << 2 */
|
||||
#endif ///SMP_INCLUDED == TRUE
|
||||
typedef UINT8 tBTM_LE_AUTH_REQ;
|
||||
#if (SMP_INCLUDED == TRUE)
|
||||
#define BTM_LE_SC_SUPPORT_BIT SMP_SC_SUPPORT_BIT /* (1 << 3) */
|
||||
#define BTM_LE_KP_SUPPORT_BIT SMP_KP_SUPPORT_BIT /* (1 << 4) */
|
||||
|
||||
@ -1571,6 +1582,7 @@ typedef UINT8 tBTM_LE_AUTH_REQ;
|
||||
#define BTM_LE_SEC_NONE SMP_SEC_NONE
|
||||
#define BTM_LE_SEC_UNAUTHENTICATE SMP_SEC_UNAUTHENTICATE /* 1 */
|
||||
#define BTM_LE_SEC_AUTHENTICATED SMP_SEC_AUTHENTICATED /* 4 */
|
||||
#endif ///SMP_INCLUDED == TRUE
|
||||
typedef UINT8 tBTM_LE_SEC;
|
||||
|
||||
|
||||
@ -2020,6 +2032,7 @@ tBTM_STATUS BTM_VendorSpecificCommand(UINT16 opcode,
|
||||
**
|
||||
*******************************************************************************/
|
||||
//extern
|
||||
#if (CLASSIC_BT_INCLUDED == TRUE)
|
||||
UINT8 BTM_AllocateSCN(void);
|
||||
|
||||
// btla-specific ++
|
||||
@ -2048,6 +2061,7 @@ BOOLEAN BTM_TryAllocateSCN(UINT8 scn);
|
||||
*******************************************************************************/
|
||||
//extern
|
||||
BOOLEAN BTM_FreeSCN(UINT8 scn);
|
||||
#endif ///CLASSIC_BT_INCLUDED == TRUE
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
@ -3677,6 +3691,17 @@ UINT8 *BTM_ReadOobData(UINT8 *p_data, UINT8 eir_tag, UINT8 *p_len);
|
||||
//extern
|
||||
char *BTM_SecReadDevName (BD_ADDR bd_addr);
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
** Function BTM_SecClearSecurityFlags
|
||||
**
|
||||
** Description Reset the security flags (mark as not-paired) for a given
|
||||
** remove device.
|
||||
**
|
||||
*******************************************************************************/
|
||||
extern void BTM_SecClearSecurityFlags (BD_ADDR bd_addr);
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
** POWER MANAGEMENT FUNCTIONS
|
||||
|
Reference in New Issue
Block a user