You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
919 B

1 year ago
1 year ago
1 year ago
  1. #pragma once
  2. #include <stdint.h>
  3. #include <string.h>
  4. #include "app_timer.h"
  5. #include "app_uart.h"
  6. #include "app_util_platform.h"
  7. #include "ble_advdata.h"
  8. #include "ble_advertising.h"
  9. #include "ble_conn_params.h"
  10. #include "ble_hci.h"
  11. #include "ble_nus.h"
  12. #include "bsp_btn_ble.h"
  13. #include "nordic_common.h"
  14. #include "nrf.h"
  15. #include "nrf_ble_gatt.h"
  16. #include "nrf_ble_qwr.h"
  17. #include "nrf_log.h"
  18. #include "nrf_log_ctrl.h"
  19. #include "nrf_log_default_backends.h"
  20. #include "nrf_pwr_mgmt.h"
  21. #include "nrf_sdh.h"
  22. #include "nrf_sdh_ble.h"
  23. #include "nrf_sdh_soc.h"
  24. //
  25. #include "version.h"
  26. void zsys_init();
  27. void zsys_loop();
  28. #define ZLOGI(...) NRF_LOG_INFO(__VA_ARGS__)
  29. #define ZLOGE(...) NRF_LOG_ERROR(__VA_ARGS__)
  30. #define ZLOGW(...) NRF_LOG_WARNING(__VA_ARGS__)
  31. #define ZLOGD(...) NRF_LOG_DEBUG(__VA_ARGS__)
  32. #define ZARRAY_SIZE(array) (sizeof(array) / sizeof(array[0]))
  33. #define ZPIN(port, num) NRF_GPIO_PIN_MAP(port, num)