#ifndef __APP_H #define __APP_H #include #include #include #include "main.h" #include "nrf_fstorage.h" #include "nrf_log.h" #include "nrf_log_ctrl.h" #include "nrf_log_default_backends.h" #include "fds.h" #include "SEGGER_RTT.h" static bool volatile m_fds_initialized; /* File ID and Key used for the configuration record. */ //可使用范围 0x0001-0xBFFF 之外的0x0000 代表脏记录,0xBFFF之后的为peer manager保留使用 #define CONFIG_FILE (0x8010) #define CONFIG_REC_KEY (0x7010) int ble_phone_command_callback(const unsigned char *data,int length); int uart_command_callback(const unsigned char *data,int length); void config_file_init(void); void timer_callback_Chen(void); #endif