mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-23 01:21:28 +00:00
add C++ protection
This commit is contained in:
parent
ad8a3deb4d
commit
a7ac6b35f0
@ -40,6 +40,14 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#if defined __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void hal_tick_init(void);
|
||||
void hal_tick_set_handler(void (*tick_handler)(void));
|
||||
int hal_tick_get_tick_period_in_ms(void);
|
||||
|
||||
#if defined __cplusplus
|
||||
}
|
||||
#endif
|
@ -42,6 +42,10 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#if defined __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void hal_uart_dma_init(void);
|
||||
void hal_uart_dma_set_block_received( void (*block_handler)(void));
|
||||
void hal_uart_dma_set_block_sent( void (*block_handler)(void));
|
||||
@ -50,3 +54,7 @@ int hal_uart_dma_set_baud(uint32_t baud);
|
||||
void hal_uart_dma_send_block(const uint8_t *buffer, uint16_t length);
|
||||
void hal_uart_dma_receive_block(uint8_t *buffer, uint16_t len);
|
||||
void hal_uart_dma_set_sleep(uint8_t sleep);
|
||||
|
||||
#if defined __cplusplus
|
||||
}
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user