#if (defined(A2D_INCLUDED) && A2D_INCLUDED == TRUE)
A2D_Deinit();
#endif
+
+#if (defined(RFCOMM_INCLUDED) && RFCOMM_INCLUDED == TRUE)
+ RFCOMM_Deinit();
+#endif
+
}
*******************************************************************************/
extern void RFCOMM_Init (void);
+/*******************************************************************************
+**
+** Function RFCOMM_Deinit
+**
+** Description This function is called to deinitialize the control block
+** for this layer.
+**
+** Returns void
+**
+*******************************************************************************/
+extern void RFCOMM_Deinit(void);
/*******************************************************************************
**
rfcomm_l2cap_if_init ();
}
+/*******************************************************************************
+**
+** Function RFCOMM_Deinit
+**
+** Description This function is called to deinitialize the control block
+** for this layer.
+**
+** Returns void
+**
+*******************************************************************************/
+void RFCOMM_Deinit(void)
+{
+#if RFC_DYNAMIC_MEMORY == TRUE
+ if (rfc_cb_ptr){
+ osi_free(rfc_cb_ptr);
+ rfc_cb_ptr = NULL;
+ }
+#endif
+}
+
/*******************************************************************************
**
** Function PORT_SetTraceLevel