mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 18:56:10 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user