bt: Added esp_spp_enhance_init() API to indicate whether to enable L2CAP ERTM

This commit is contained in:
xiongweichao
2022-11-21 19:15:37 +08:00
parent 766dc3eead
commit ecf2eea1d6
19 changed files with 208 additions and 50 deletions

View File

@@ -1866,4 +1866,18 @@ const char *PORT_GetResultString (const uint8_t result_code)
return result_code_strings[result_code];
}
/*******************************************************************************
**
** Function PORT_SetL2capErtm
**
** Description This function sets whether RFCOMM uses L2CAP ERTM.
**
** Returns void
**
*******************************************************************************/
void PORT_SetL2capErtm (BOOLEAN enable_l2cap_ertm)
{
rfc_cb.port.enable_l2cap_ertm = enable_l2cap_ertm;
}
#endif ///(defined RFCOMM_INCLUDED && RFCOMM_INCLUDED == TRUE)