mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-29 03:32:49 +00:00
btstack_uart_block: provide btstack_uart_block_posix_instance that returns btstack_uart_posix_instance
This commit is contained in:
parent
f2cb8f201d
commit
95b3bfd1d3
@ -49,10 +49,14 @@
|
||||
|
||||
typedef btstack_uart_t btstack_uart_block_t;
|
||||
|
||||
// common implementations
|
||||
const btstack_uart_t * btstack_uart_block_posix_instance(void);
|
||||
// existing block-only implementations
|
||||
const btstack_uart_t * btstack_uart_block_windows_instance(void);
|
||||
const btstack_uart_t * btstack_uart_block_embedded_instance(void);
|
||||
const btstack_uart_t * btstack_uart_block_freertos_instance(void);
|
||||
|
||||
// mapper for extended implementation
|
||||
static inline const btstack_uart_block_t * btstack_uart_block_posix_instance(void){
|
||||
return (const btstack_uart_block_t *) btstack_uart_posix_instance();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user