configs/stm32fdiscovery: Add support in bringup logic to initialize the HCI UART and register the HCI UART network device.

This commit is contained in:
Gregory Nutt
2018-04-13 14:53:11 -06:00
parent 0d7917a4a1
commit 0686989645
8 changed files with 361 additions and 34 deletions
+2 -2
View File
@@ -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 */
+1 -14
View File
@@ -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