bsal_srv_uart.h 655 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-09-09 WaterFishJ the first version
  9. * 2021-09-22 WaterFishJ fix the send bug
  10. */
  11. #ifndef __BSAL_SRV_UART_H__
  12. #define __BSAL_SRV_UART_H__
  13. #include <stdint.h>
  14. #include <stdbool.h>
  15. #include "bsal.h"
  16. #define GATT_SVC_NUS_READ_INDEX 2
  17. #define GATT_SVC_NUS_WRITE_INDEX 5
  18. #define GATT_SVC_NUS_CHAR_CCCD_INDEX 3
  19. int bsal_bleuart_init(void *stack_ptr, uint16_t *conn_id);
  20. void bsal_le_uart_svr_init(void *stack_ptr, void *app_callback);
  21. #endif