mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08:00
configs/stm32fdiscovery: Add support in bringup logic to initialize the HCI UART and register the HCI UART network device.
This commit is contained in:
@@ -1785,7 +1785,7 @@ void bt_conn_cb_register(FAR struct bt_conn_cb_s *cb)
|
||||
g_callback_list = cb;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DEBUG_WIRELESS_INFO
|
||||
#ifdef CONFIG_DEBUG_WIRELESS_ERROR
|
||||
FAR const char *bt_addr_str(FAR const bt_addr_t *addr)
|
||||
{
|
||||
static char bufs[2][18];
|
||||
@@ -1811,4 +1811,4 @@ FAR const char *bt_addr_le_str(FAR const bt_addr_le_t *addr)
|
||||
|
||||
return str;
|
||||
}
|
||||
#endif /* CONFIG_DEBUG_WIRELESS_INFO */
|
||||
#endif /* CONFIG_DEBUG_WIRELESS_ERROR */
|
||||
|
||||
@@ -58,19 +58,6 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* Enabling debug increases stack size requirement considerably */
|
||||
|
||||
#if defined(CONFIG_DEBUG_WIRELESS_INFO)
|
||||
# define BT_STACK_DEBUG_EXTRA 512
|
||||
#else
|
||||
# define BT_STACK_DEBUG_EXTRA 0
|
||||
#endif
|
||||
|
||||
#define BT_STACK(name, size) \
|
||||
char __stack name[(size) + BT_STACK_DEBUG_EXTRA]
|
||||
#define BT_STACK_NOINIT(name, size) \
|
||||
char __noinit __stack name[(size) + BT_STACK_DEBUG_EXTRA]
|
||||
|
||||
/* LMP feature helpers */
|
||||
|
||||
#define lmp_bredr_capable(dev) (!((dev).features[4] & BT_LMP_NO_BREDR))
|
||||
@@ -278,7 +265,7 @@ int bt_hci_cmd_send_sync(uint16_t opcode, FAR struct bt_buf_s *buf,
|
||||
* not multi-threading safe
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_WIRELESS_INFO
|
||||
#ifdef CONFIG_DEBUG_WIRELESS_ERROR
|
||||
FAR const char *bt_addr_str(FAR const bt_addr_t *addr);
|
||||
FAR const char *bt_addr_le_str(FAR const bt_addr_le_t *addr);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user