app.h 723 B

12345678910111213141516171819202122232425262728
  1. #ifndef __APP_H
  2. #define __APP_H
  3. #include <stdint.h>
  4. #include <string.h>
  5. #include <stdbool.h>
  6. #include "main.h"
  7. #include "nrf_fstorage.h"
  8. #include "nrf_log.h"
  9. #include "nrf_log_ctrl.h"
  10. #include "nrf_log_default_backends.h"
  11. #include "fds.h"
  12. #include "SEGGER_RTT.h"
  13. static bool volatile m_fds_initialized;
  14. /* File ID and Key used for the configuration record. */
  15. //可使用范围 0x0001-0xBFFF 之外的0x0000 代表脏记录,0xBFFF之后的为peer manager保留使用
  16. #define CONFIG_FILE (0x8010)
  17. #define CONFIG_REC_KEY (0x7010)
  18. int ble_phone_command_callback(const unsigned char *data,int length);
  19. int uart_command_callback(const unsigned char *data,int length);
  20. void config_file_init(void);
  21. void timer_callback_Chen(void);
  22. #endif