platform_interface.h 803 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _PLATFORM_INTERFACE_H_
  2. #define _PLATFORM_INTERFACE_H_
  3. #include "common/bt_storage_kv.h"
  4. #include "logging/bt_log_impl.h"
  5. #include "drivers/hci_driver.h"
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. const bt_log_impl_t *bt_log_impl_local_instance(void);
  10. const struct bt_hci_chipset_driver *bt_hci_chipset_impl_local_instance(void);
  11. const struct bt_storage_kv_impl *bt_storage_kv_impl_local_instance(void);
  12. void bt_timer_impl_local_init(void);
  13. typedef void (*bt_hci_driver_reset_callback_t)(void);
  14. int bt_hci_init_usb_device(uint16_t vid, uint16_t pid);
  15. void bt_hci_reset_usb_device(bt_hci_driver_reset_callback_t callback);
  16. int bt_hci_init_serial_device(int idx, int rate, int databits, int stopbits, int parity, bool flowcontrol);
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #endif //_PLATFORM_INTERFACE_H_