btstack_uart_block: add set_flowcontrol

This commit is contained in:
Matthias Ringwald 2017-07-25 17:53:01 +02:00
parent 9ba7722dcc
commit 4b929998c3
6 changed files with 10 additions and 0 deletions

View File

@ -192,6 +192,7 @@ static const btstack_uart_block_t btstack_uart_embedded = {
/* void (*set_block_sent)(void (*handler)(void)); */ &btstack_uart_embedded_set_block_sent,
/* int (*set_baudrate)(uint32_t baudrate); */ &hal_uart_dma_set_baud,
/* int (*set_parity)(int parity); */ &btstack_uart_embedded_set_parity,
/* int (*set_flowcontrol)(int flowcontrol); */ NULL,
/* void (*receive_block)(uint8_t *buffer, uint16_t len); */ &btstack_uart_embedded_receive_block,
/* void (*send_block)(const uint8_t *buffer, uint16_t length); */ &btstack_uart_embedded_send_block,
/* int (*get_supported_sleep_modes); */ &btstack_uart_embedded_get_supported_sleep_modes,

View File

@ -154,6 +154,7 @@ static const btstack_uart_block_t btstack_uart_block_freertos = {
/* void (*set_block_sent)(void (*handler)(void)); */ &btstack_uart_block_freertos_set_block_sent,
/* int (*set_baudrate)(uint32_t baudrate); */ &hal_uart_dma_set_baud,
/* int (*set_parity)(int parity); */ &btstack_uart_block_freertos_set_parity,
/* int (*set_flowcontrol)(int flowcontrol); */ NULL,
/* void (*receive_block)(uint8_t *buffer, uint16_t len); */ &hal_uart_dma_receive_block,
/* void (*send_block)(const uint8_t *buffer, uint16_t length); */ &hal_uart_dma_send_block,
/* int (*get_supported_sleep_modes); */ NULL,

View File

@ -377,6 +377,7 @@ static const btstack_uart_block_t btstack_uart_posix = {
/* void (*set_block_sent)(void (*handler)(void)); */ &btstack_uart_posix_set_block_sent,
/* int (*set_baudrate)(uint32_t baudrate); */ &btstack_uart_posix_set_baudrate,
/* int (*set_parity)(int parity); */ &btstack_uart_posix_set_parity,
/* int (*set_flowcontrol)(int flowcontrol); */ NULL,
/* void (*receive_block)(uint8_t *buffer, uint16_t len); */ &btstack_uart_posix_receive_block,
/* void (*send_block)(const uint8_t *buffer, uint16_t length); */ &btstack_uart_posix_send_block,
/* int (*get_supported_sleep_modes); */ NULL,

View File

@ -372,6 +372,7 @@ static const btstack_uart_block_t btstack_uart_block_wiced = {
/* void (*set_block_sent)(void (*handler)(void)); */ &btstack_uart_block_wiced_set_block_sent,
/* int (*set_baudrate)(uint32_t baudrate); */ &btstack_uart_block_wiced_set_baudrate,
/* int (*set_parity)(int parity); */ &btstack_uart_block_wiced_set_parity,
/* int (*set_flowcontrol)(int flowcontrol); */ NULL,
/* void (*receive_block)(uint8_t *buffer, uint16_t len); */ &btstack_uart_block_wiced_receive_block,
/* void (*send_block)(const uint8_t *buffer, uint16_t length); */ &btstack_uart_block_wiced_send_block,
/* int (*get_supported_sleep_modes); */ NULL,

View File

@ -408,6 +408,7 @@ static const btstack_uart_block_t btstack_uart_windows = {
/* void (*set_block_sent)(void (*handler)(void)); */ &btstack_uart_windows_set_block_sent,
/* int (*set_baudrate)(uint32_t baudrate); */ &btstack_uart_windows_set_baudrate,
/* int (*set_parity)(int parity); */ &btstack_uart_windows_set_parity,
/* int (*set_flowcontrol)(int flowcontrol); */ NULL,
/* void (*receive_block)(uint8_t *buffer, uint16_t len); */ &btstack_uart_windows_receive_block,
/* void (*send_block)(const uint8_t *buffer, uint16_t length); */ &btstack_uart_windows_send_block,
/* int (*get_supported_sleep_modes); */ NULL,

View File

@ -105,6 +105,11 @@ typedef struct {
*/
int (*set_parity)(int parity);
/**
* set flowcontrol
*/
int (*set_flowcontrol)(int flowcontrol);
/**
* receive block
*/