btstack_uart_block: provide btstack_uart_block_posix_instance that returns btstack_uart_posix_instance

This commit is contained in:
Matthias Ringwald 2021-03-02 11:39:40 +01:00
parent f2cb8f201d
commit 95b3bfd1d3

View File

@ -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