include/nuttx/wireless: Add a setbaud() method to the HCI UART lower half interface that can be used to change the default BAUD selection. arch/arm/src/stm32: Implement the setbaud() method for the STM32 HCI UART.

This commit is contained in:
Gregory Nutt
2018-04-25 13:09:08 -06:00
parent cfc5f86862
commit 10d99cc6e6
4 changed files with 92 additions and 19 deletions
+14
View File
@@ -97,6 +97,20 @@ struct btuart_lowerhalf_s
CODE void (*rxenable)(FAR const struct btuart_lowerhalf_s *lower,
bool enable);
/* Change the HCI UART BAUD
*
* The HCI UART comes up with some initial BAUD rate. Some support
* auto-BAUD detection, some support writing a configuration file to
* select the initial BAUD. The simplest strategy, however, is simply
* to use the HCI UART's default initial BAUD to perform the basic
* bring up, then send a vendor-specific command to increase the HCI
* UARTs BAUD. This method then may be used to adjust the lower half
* driver to the new HCI UART BAUD.
*/
CODE int (*setbaud)(FAR const struct btuart_lowerhalf_s *lower,
uint32_t baud);
/* Read/write UART frames
*
* read() after receipt of a callback notifying the upper half of the