Added GNU symbol list.
Signed-off-by: Yilin Sun <imi415@imi.moe>
This commit is contained in:
parent
0e0fa208b6
commit
21b2bbc223
|
@ -310,27 +310,17 @@ void dump_data(uint8_t* data, uint16_t length);
|
|||
dump_data((uint8_t*)data, length)
|
||||
|
||||
#else
|
||||
#define ASSERT_ERR(cond) \
|
||||
// do { \
|
||||
// if (!(cond)) { \
|
||||
// assert_err(#cond, __FILE__, __LINE__); \
|
||||
// } \
|
||||
// } while(0)
|
||||
#define ASSERT_ERR(cond)
|
||||
|
||||
/// Assertions showing a critical error that could require a full system reset
|
||||
#define ASSERT_INFO(cond, param0, param1) \
|
||||
// do { \
|
||||
// if (!(cond)) { \
|
||||
// assert_param((int)param0, (int)param1, __FILE__, __LINE__); \
|
||||
// } \
|
||||
// } while(0)
|
||||
#define ASSERT_INFO(cond, param0, param1)
|
||||
|
||||
/// Assertions showing a non-critical problem that has to be fixed by the SW
|
||||
#define ASSERT_WARN(cond, param0, param1) \
|
||||
//4
|
||||
#define ASSERT_WARN(cond, param0, param1)
|
||||
|
||||
/// DUMP data array present in the SW.
|
||||
#define DUMP_DATA(data, length)
|
||||
|
||||
#endif //PLF_DEBUG
|
||||
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#include <stdbool.h> // boolean definition
|
||||
#include <stddef.h> // for NULL and size_t
|
||||
#include "rwip_config.h" // stack configuration
|
||||
#include "compiler.h" // for __INLINE
|
||||
#include "compiler.h" // for __STATIC_INLINE
|
||||
|
||||
|
||||
/*
|
||||
|
@ -262,7 +262,7 @@ uint16_t co_list_size(struct co_list *list);
|
|||
* @return true if the list is empty, false else otherwise.
|
||||
****************************************************************************************
|
||||
*/
|
||||
__INLINE bool co_list_is_empty(const struct co_list *const list)
|
||||
__STATIC_INLINE bool co_list_is_empty(const struct co_list *const list)
|
||||
{
|
||||
bool listempty;
|
||||
listempty = (list->first == NULL);
|
||||
|
@ -278,7 +278,7 @@ __INLINE bool co_list_is_empty(const struct co_list *const list)
|
|||
* @return First element address. Returns NULL pointer if the list is empty.
|
||||
****************************************************************************************
|
||||
*/
|
||||
__INLINE struct co_list_hdr *co_list_pick(const struct co_list *const list)
|
||||
__STATIC_INLINE struct co_list_hdr *co_list_pick(const struct co_list *const list)
|
||||
{
|
||||
return(list->first);
|
||||
}
|
||||
|
@ -293,7 +293,7 @@ __INLINE struct co_list_hdr *co_list_pick(const struct co_list *const list)
|
|||
* @return The pointer to the next element.
|
||||
****************************************************************************************
|
||||
*/
|
||||
__INLINE struct co_list_hdr *co_list_next(const struct co_list_hdr *const list_hdr)
|
||||
__STATIC_INLINE struct co_list_hdr *co_list_next(const struct co_list_hdr *const list_hdr)
|
||||
{
|
||||
return(list_hdr->next);
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include <stdint.h> // standard integer definitions
|
||||
#include <stdbool.h> // boolean definitions
|
||||
#include <stdlib.h> // standard library
|
||||
#include "compiler.h" // for __INLINE
|
||||
#include "compiler.h" // for __STATIC_INLINE
|
||||
#include "arch.h" // for ASSERT_ERR
|
||||
|
||||
extern void srand (unsigned int seed);
|
||||
|
@ -123,7 +123,7 @@ extern void srand (unsigned int seed);
|
|||
****************************************************************************************
|
||||
*/
|
||||
//#define CO_MOD(val, div) ((val) % (div))
|
||||
__INLINE uint32_t co_mod(uint32_t val, uint32_t div)
|
||||
__STATIC_INLINE uint32_t co_mod(uint32_t val, uint32_t div)
|
||||
{
|
||||
ASSERT_ERR(div);
|
||||
return ((val) % (div));
|
||||
|
@ -142,7 +142,7 @@ __INLINE uint32_t co_mod(uint32_t val, uint32_t div)
|
|||
* @return Number of leading zeros when value is written as 32 bits.
|
||||
****************************************************************************************
|
||||
*/
|
||||
__INLINE uint32_t co_clz(uint32_t val)
|
||||
__STATIC_INLINE uint32_t co_clz(uint32_t val)
|
||||
{
|
||||
#if defined(__ICCARM__)
|
||||
return __CLZ(val);
|
||||
|
@ -174,7 +174,7 @@ __INLINE uint32_t co_clz(uint32_t val)
|
|||
*/
|
||||
//TODO/Ambiq
|
||||
#if 0
|
||||
__INLINE uint32_t co_ctz(uint32_t val)
|
||||
__STATIC_INLINE uint32_t co_ctz(uint32_t val)
|
||||
{
|
||||
#if defined(__arm__)
|
||||
return __builtin_ctz(val);
|
||||
|
@ -201,7 +201,7 @@ __INLINE uint32_t co_ctz(uint32_t val)
|
|||
* @param[in] seed The seed number to use to generate the random sequence.
|
||||
****************************************************************************************
|
||||
*/
|
||||
__INLINE void co_random_init(uint32_t seed)
|
||||
__STATIC_INLINE void co_random_init(uint32_t seed)
|
||||
{
|
||||
srand(seed);
|
||||
}
|
||||
|
@ -212,7 +212,7 @@ __INLINE void co_random_init(uint32_t seed)
|
|||
* @return Random byte value.
|
||||
****************************************************************************************
|
||||
*/
|
||||
__INLINE uint8_t co_rand_byte(void)
|
||||
__STATIC_INLINE uint8_t co_rand_byte(void)
|
||||
{
|
||||
return (uint8_t)(rand() & 0xFF);
|
||||
}
|
||||
|
@ -223,7 +223,7 @@ __INLINE uint8_t co_rand_byte(void)
|
|||
* @return Random half word value.
|
||||
****************************************************************************************
|
||||
*/
|
||||
__INLINE uint16_t co_rand_hword(void)
|
||||
__STATIC_INLINE uint16_t co_rand_hword(void)
|
||||
{
|
||||
return (uint16_t)(rand() & 0xFFFF);
|
||||
}
|
||||
|
@ -234,7 +234,7 @@ __INLINE uint16_t co_rand_hword(void)
|
|||
* @return Random word value.
|
||||
****************************************************************************************
|
||||
*/
|
||||
__INLINE uint32_t co_rand_word(void)
|
||||
__STATIC_INLINE uint32_t co_rand_word(void)
|
||||
{
|
||||
return (uint32_t)(rand() & 0xFFFFFFFF);
|
||||
}
|
||||
|
@ -245,7 +245,7 @@ __INLINE uint32_t co_rand_word(void)
|
|||
* @return The smallest value.
|
||||
****************************************************************************************
|
||||
*/
|
||||
__INLINE uint32_t co_min(uint32_t a, uint32_t b)
|
||||
__STATIC_INLINE uint32_t co_min(uint32_t a, uint32_t b)
|
||||
{
|
||||
return a < b ? a : b;
|
||||
}
|
||||
|
@ -256,7 +256,7 @@ __INLINE uint32_t co_min(uint32_t a, uint32_t b)
|
|||
* @return The smallest value.
|
||||
****************************************************************************************
|
||||
*/
|
||||
static __INLINE int32_t co_min_s(int32_t a, int32_t b)
|
||||
__STATIC_INLINE int32_t co_min_s(int32_t a, int32_t b)
|
||||
{
|
||||
return a < b ? a : b;
|
||||
}
|
||||
|
@ -267,7 +267,7 @@ static __INLINE int32_t co_min_s(int32_t a, int32_t b)
|
|||
* @return The greatest value.
|
||||
****************************************************************************************
|
||||
*/
|
||||
__INLINE uint32_t co_max(uint32_t a, uint32_t b)
|
||||
__STATIC_INLINE uint32_t co_max(uint32_t a, uint32_t b)
|
||||
{
|
||||
return a > b ? a : b;
|
||||
}
|
||||
|
@ -278,7 +278,7 @@ __INLINE uint32_t co_max(uint32_t a, uint32_t b)
|
|||
* @return The absolute value.
|
||||
****************************************************************************************
|
||||
*/
|
||||
__INLINE int co_abs(int val)
|
||||
__STATIC_INLINE int co_abs(int val)
|
||||
{
|
||||
return val < 0 ? val*(-1) : val;
|
||||
}
|
||||
|
|
|
@ -182,7 +182,6 @@ struct h4tl_env_tag
|
|||
*/
|
||||
void h4tl_init(uint8_t tl_type, const struct rwip_eif_api* eif);
|
||||
|
||||
static void h4tl_read_start(struct h4tl_env_tag* env);
|
||||
/**
|
||||
****************************************************************************************
|
||||
* @brief H4TL write function.
|
||||
|
|
|
@ -107,7 +107,7 @@ enum ke_msg_status_tag
|
|||
* @return The pointer to the ke_msg
|
||||
****************************************************************************************
|
||||
*/
|
||||
__INLINE struct ke_msg * ke_param2msg(void const *param_ptr)
|
||||
__STATIC_INLINE struct ke_msg * ke_param2msg(void const *param_ptr)
|
||||
{
|
||||
return (struct ke_msg*) (((uint8_t*)param_ptr) - offsetof(struct ke_msg, param));
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ __INLINE struct ke_msg * ke_param2msg(void const *param_ptr)
|
|||
* @return The pointer to the param member
|
||||
****************************************************************************************
|
||||
*/
|
||||
__INLINE void * ke_msg2param(struct ke_msg const *msg)
|
||||
__STATIC_INLINE void * ke_msg2param(struct ke_msg const *msg)
|
||||
{
|
||||
return (void*) (((uint8_t*) msg) + offsetof(struct ke_msg, param));
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -38,7 +38,7 @@
|
|||
|
||||
#include "rwip.h"
|
||||
#include "global_var.h"
|
||||
#include "Typedefine.h"
|
||||
#include "TypeDefine.h"
|
||||
#include "co_bt_defines.h"
|
||||
#include "prf.h"
|
||||
#include "rwip_int.h"
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
#include <string.h>
|
||||
#include "n32wb03x.h"
|
||||
#include "global_var.h"
|
||||
#include "Typedefine.h"
|
||||
#include "TypeDefine.h"
|
||||
|
||||
#include "rwip_config.h" // SW configuration
|
||||
#include "compiler.h"
|
||||
|
|
|
@ -27,16 +27,16 @@ typedef enum
|
|||
|
||||
static const uint8_t TXPWR_MAP[][3]=
|
||||
{
|
||||
0, 0x17, 0x13, /* 0 dBm */
|
||||
0, 0x17, 0x11, /* -2 dBm */
|
||||
0, 0x17, 0x0f, /* -4 dBm */
|
||||
0, 0x17, 0x0b, /* -8 dBm */
|
||||
0, 0x17, 0x06, /* -12 dBm */
|
||||
0, 0x17, 0x00, /* -20 dBm */
|
||||
0, 0x17, 0x16, /* +2 dBm */
|
||||
0, 0x17, 0x19, /* +3 dBm */
|
||||
1, 0x17, 0x16, /* +4 dBm */
|
||||
1, 0x17, 0x19, /* +6 dBm */
|
||||
{0, 0x17, 0x13}, /* 0 dBm */
|
||||
{0, 0x17, 0x11}, /* -2 dBm */
|
||||
{0, 0x17, 0x0f}, /* -4 dBm */
|
||||
{0, 0x17, 0x0b}, /* -8 dBm */
|
||||
{0, 0x17, 0x06}, /* -12 dBm */
|
||||
{0, 0x17, 0x00}, /* -20 dBm */
|
||||
{0, 0x17, 0x16}, /* +2 dBm */
|
||||
{0, 0x17, 0x19}, /* +3 dBm */
|
||||
{1, 0x17, 0x16}, /* +4 dBm */
|
||||
{1, 0x17, 0x19}, /* +6 dBm */
|
||||
};
|
||||
|
||||
/* Public define ------------------------------------------------------------*/
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -57,7 +57,7 @@
|
|||
/* Private typedef -----------------------------------------------------------*/
|
||||
|
||||
/* Private variables ---------------------------------------------------------*/
|
||||
static __align(4) unsigned char rwip_fifo_isr_codeArray[] ={
|
||||
static __ALIGNED(4) unsigned char rwip_fifo_isr_codeArray[] ={
|
||||
0x03,0xb4,0x01,0x48,0x01,0x90,0x01,0xbd,0xed,0xc3,0x02,0x00,0x10,0xb5,0x07,0x4c,
|
||||
0xe0,0x69,0x00,0x04,0x08,0xd5,0xff,0xf7,0xf3,0xff,0x05,0x48,0x00,0x78,0x00,0x28,
|
||||
0x02,0xd1,0x01,0x20,0xc0,0x03,0x20,0x62,0x10,0xbd,0x00,0x00,0x00,0x80,0x02,0x40,
|
||||
|
@ -83,12 +83,12 @@ void ns_HardFault_Handler(void)
|
|||
{
|
||||
uint32_t *stack_top = (uint32_t *)__get_MSP();
|
||||
NS_LOG_INIT();
|
||||
NS_LOG_ERROR("**************HardFault ERROR:REG INFO**************.\r\n"); \
|
||||
NS_LOG_ERROR("msp = 0x%08x.\r\n", (uint32_t)stack_top); \
|
||||
NS_LOG_ERROR("r0 = 0x%08x, \tr1 = 0x%08x.\r\n", stack_top[0], stack_top[1]); \
|
||||
NS_LOG_ERROR("r2 = 0x%08x, \tr3 = 0x%08x.\r\n", stack_top[2], stack_top[3]); \
|
||||
NS_LOG_ERROR("r12 = 0x%08x, \tlr = 0x%08x.\r\n", stack_top[4], stack_top[5]); \
|
||||
NS_LOG_ERROR("pc = 0x%08x, \txpsr = 0x%08x.\r\n", stack_top[6], stack_top[7]);
|
||||
NS_LOG_ERROR("**************HardFault ERROR:REG INFO**************.\r\n"); \
|
||||
NS_LOG_ERROR("msp = 0x%08lx.\r\n", (uint32_t)stack_top); \
|
||||
NS_LOG_ERROR("r0 = 0x%08lx, \tr1 = 0x%08lx.\r\n", stack_top[0], stack_top[1]); \
|
||||
NS_LOG_ERROR("r2 = 0x%08lx, \tr3 = 0x%08lx.\r\n", stack_top[2], stack_top[3]); \
|
||||
NS_LOG_ERROR("r12 = 0x%08lx, \tlr = 0x%08lx.\r\n", stack_top[4], stack_top[5]); \
|
||||
NS_LOG_ERROR("pc = 0x%08lx, \txpsr = 0x%08lx.\r\n", stack_top[6], stack_top[7]);
|
||||
|
||||
|
||||
if(user_HardFault_Handler )
|
||||
|
|
|
@ -127,7 +127,7 @@ static int gattc_cmp_evt_handler(ke_msg_id_t const msgid, struct gattc_cmp_evt c
|
|||
NS_LOG_DEBUG("%s status = %x, operation = %x\r\n",__func__,gattc_cmp_evt->status,gattc_cmp_evt->operation);
|
||||
if(app_env.ble_msg_handler)
|
||||
{
|
||||
struct ble_msg_t ble_msg = {APP_BLE_NULL_MSG,NULL,NULL};
|
||||
struct ble_msg_t ble_msg = {APP_BLE_NULL_MSG, {NULL}, {NULL}};
|
||||
ble_msg.msg_id = APP_BLE_GATTC_CMP_EVT;
|
||||
ble_msg.msg.p_gattc_cmp = gattc_cmp_evt;
|
||||
app_env.ble_msg_handler((void const*)&ble_msg);
|
||||
|
@ -443,7 +443,7 @@ static int gapm_cmp_evt_handler(ke_msg_id_t const msgid,
|
|||
}
|
||||
if(app_env.ble_msg_handler)
|
||||
{
|
||||
struct ble_msg_t ble_msg = {APP_BLE_NULL_MSG,NULL,NULL};
|
||||
struct ble_msg_t ble_msg = {APP_BLE_NULL_MSG, {NULL}, {NULL}};
|
||||
ble_msg.msg_id = APP_BLE_OS_READY;
|
||||
ble_msg.msg.p_gapm_cmp = p_param;
|
||||
ble_msg.cmd.p_dev_config = p_cmd;
|
||||
|
@ -885,7 +885,7 @@ static int gapc_connection_req_ind_handler(ke_msg_id_t const msgid,
|
|||
#endif // (BLE_APP_SEC)
|
||||
if(app_env.ble_msg_handler)
|
||||
{
|
||||
struct ble_msg_t ble_msg = {APP_BLE_NULL_MSG,NULL,NULL};
|
||||
struct ble_msg_t ble_msg = {APP_BLE_NULL_MSG, {NULL}, {NULL}};
|
||||
ble_msg.msg_id = APP_BLE_GAP_CONNECTED;
|
||||
ble_msg.msg.p_connection_ind = p_param;
|
||||
ble_msg.cmd.p_connection_cfm = cfm;
|
||||
|
@ -953,7 +953,7 @@ static int gapc_param_update_req_ind_handler(ke_msg_id_t const msgid,
|
|||
if(app_env.ble_msg_handler)
|
||||
{
|
||||
//call user code
|
||||
struct ble_msg_t ble_msg = {APP_BLE_NULL_MSG,NULL,NULL};
|
||||
struct ble_msg_t ble_msg = {APP_BLE_NULL_MSG, {NULL}, {NULL}};
|
||||
ble_msg.msg_id = APP_BLE_GAP_PARAMS_REQUEST;
|
||||
ble_msg.msg.p_param_req = p_param;
|
||||
ble_msg.cmd.p_param_cfm = cfm;
|
||||
|
@ -993,7 +993,7 @@ static int gapc_cmp_evt_handler(ke_msg_id_t const msgid,
|
|||
NS_LOG_DEBUG("%s, operation =%x status = %x\r\n", __func__,p_param->operation, p_param->status);
|
||||
if(app_env.ble_msg_handler)
|
||||
{
|
||||
struct ble_msg_t ble_msg = {APP_BLE_NULL_MSG,NULL,NULL};
|
||||
struct ble_msg_t ble_msg = {APP_BLE_NULL_MSG, {NULL}, {NULL}};
|
||||
ble_msg.msg_id = APP_BLE_GAP_CMP_EVT;
|
||||
ble_msg.msg.p_gapc_cmp = p_param;
|
||||
app_env.ble_msg_handler((void const*)&ble_msg);
|
||||
|
@ -1074,7 +1074,7 @@ static int gapc_disconnect_ind_handler(ke_msg_id_t const msgid,
|
|||
}
|
||||
if(app_env.ble_msg_handler)
|
||||
{
|
||||
struct ble_msg_t ble_msg = {APP_BLE_NULL_MSG,NULL,NULL};
|
||||
struct ble_msg_t ble_msg = {APP_BLE_NULL_MSG, {NULL}, {NULL}};
|
||||
ble_msg.msg_id = APP_BLE_GAP_DISCONNECTED;
|
||||
ble_msg.msg.p_disconnect_ind = p_param;
|
||||
app_env.ble_msg_handler((void const*)&ble_msg);
|
||||
|
@ -1191,7 +1191,7 @@ __STATIC int gapc_param_updated_ind_handler(ke_msg_id_t const msgid,
|
|||
NS_LOG_DEBUG("%s,%d,%d,%d\r\n",__func__,p_param->con_interval,p_param->con_latency,p_param->sup_to);
|
||||
if(app_env.ble_msg_handler)
|
||||
{
|
||||
struct ble_msg_t ble_msg = {APP_BLE_NULL_MSG,NULL,NULL};
|
||||
struct ble_msg_t ble_msg = {APP_BLE_NULL_MSG, {NULL}, {NULL}};
|
||||
ble_msg.msg_id = APP_BLE_GAP_PARAMS_IND;
|
||||
ble_msg.msg.p_param_updated = p_param;
|
||||
app_env.ble_msg_handler((void const*)&ble_msg);
|
||||
|
@ -1222,7 +1222,7 @@ __STATIC int gattc_mtu_changed_ind_handler(ke_msg_id_t const msgid,
|
|||
|
||||
if(app_env.ble_msg_handler)
|
||||
{
|
||||
struct ble_msg_t ble_msg = {APP_BLE_NULL_MSG,NULL,NULL};
|
||||
struct ble_msg_t ble_msg = {APP_BLE_NULL_MSG, {NULL}, {NULL}};
|
||||
ble_msg.msg_id = APP_BLE_GATTC_MTU_IND;
|
||||
ble_msg.msg.p_gattc_mtu = p_param;
|
||||
app_env.ble_msg_handler((void const*)&ble_msg);
|
||||
|
@ -1347,7 +1347,7 @@ static int gapc_conn_rssi_ind_handler(ke_msg_id_t const msgid,
|
|||
NS_LOG_DEBUG("RSSI = %d\r\n", param->rssi);
|
||||
if(app_env.ble_msg_handler)
|
||||
{
|
||||
struct ble_msg_t ble_msg = {APP_BLE_NULL_MSG,NULL,NULL};
|
||||
struct ble_msg_t ble_msg = {APP_BLE_NULL_MSG, {NULL}, {NULL}};
|
||||
ble_msg.msg_id = APP_BLE_GAP_RSSI_IND;
|
||||
ble_msg.msg.p_gapc_rssi = param;
|
||||
app_env.ble_msg_handler((void const*)&ble_msg);
|
||||
|
|
|
@ -60,7 +60,7 @@ static void error_save_and_stop(uint32_t info)
|
|||
uint32_t err_code;
|
||||
uint32_t line_num;
|
||||
const uint8_t * p_file_name;
|
||||
} m_error_data = {0,0,NULL};
|
||||
} m_error_data __attribute__((used)) = {0,0,NULL};
|
||||
|
||||
// The following variable helps Keil keep the call stack visible, in addition, it can be set to
|
||||
// 0 in the debugger to continue executing code after the error check.
|
||||
|
|
|
@ -237,7 +237,7 @@ static void ns_bond_db_init(void)
|
|||
peer_num = ns_bond_db_get_size();
|
||||
if(app_sec_env.sec_init.ns_sec_msg_handler)
|
||||
{
|
||||
struct sec_msg_t sec_msg = {NS_SEC_NULL_MSG,NULL};
|
||||
struct sec_msg_t sec_msg = {NS_SEC_NULL_MSG, {NULL}};
|
||||
sec_msg.msg_id = NS_SEC_BOND_STATE;
|
||||
sec_msg.msg.peer_num = &peer_num;
|
||||
app_sec_env.sec_init.ns_sec_msg_handler(&sec_msg);
|
||||
|
@ -370,7 +370,7 @@ static int gapc_bond_req_ind_handler(ke_msg_id_t const msgid,
|
|||
|
||||
if(app_sec_env.sec_init.ns_sec_msg_handler)
|
||||
{
|
||||
struct sec_msg_t sec_msg = {NS_SEC_NULL_MSG,NULL};
|
||||
struct sec_msg_t sec_msg = {NS_SEC_NULL_MSG, {NULL}};
|
||||
sec_msg.msg_id = NS_SEC_PAIRING_RSP;
|
||||
sec_msg.msg.cfm = cfm;
|
||||
app_sec_env.sec_init.ns_sec_msg_handler(&sec_msg);
|
||||
|
@ -441,7 +441,7 @@ static int gapc_bond_req_ind_handler(ke_msg_id_t const msgid,
|
|||
}
|
||||
if(app_sec_env.sec_init.ns_sec_msg_handler)
|
||||
{
|
||||
struct sec_msg_t sec_msg = {NS_SEC_NULL_MSG,NULL};
|
||||
struct sec_msg_t sec_msg = {NS_SEC_NULL_MSG, {NULL}};
|
||||
sec_msg.msg_id = NS_SEC_PINCODE_DISPLAY;
|
||||
sec_msg.msg.pincode = &pin_code;
|
||||
app_sec_env.sec_init.ns_sec_msg_handler(&sec_msg);
|
||||
|
@ -459,7 +459,7 @@ static int gapc_bond_req_ind_handler(ke_msg_id_t const msgid,
|
|||
{
|
||||
if(app_sec_env.sec_init.ns_sec_msg_handler)
|
||||
{
|
||||
struct sec_msg_t sec_msg = {NS_SEC_NULL_MSG,NULL} ;
|
||||
struct sec_msg_t sec_msg = {NS_SEC_NULL_MSG, {NULL}} ;
|
||||
sec_msg.msg_id = NS_SEC_PINCODE_ENTER;
|
||||
app_sec_env.sec_init.ns_sec_msg_handler(&sec_msg);
|
||||
}
|
||||
|
@ -535,7 +535,7 @@ static int gapc_bond_ind_handler(ke_msg_id_t const msgid,
|
|||
}
|
||||
if(app_sec_env.sec_init.ns_sec_msg_handler)
|
||||
{
|
||||
struct sec_msg_t sec_msg = {NS_SEC_NULL_MSG,NULL};
|
||||
struct sec_msg_t sec_msg = {NS_SEC_NULL_MSG, {NULL}};
|
||||
sec_msg.msg_id = NS_SEC_PAIR_SUCCEED;
|
||||
app_sec_env.sec_init.ns_sec_msg_handler(&sec_msg);
|
||||
}
|
||||
|
@ -549,7 +549,7 @@ static int gapc_bond_ind_handler(ke_msg_id_t const msgid,
|
|||
ns_ble_disconnect();
|
||||
if(app_sec_env.sec_init.ns_sec_msg_handler)
|
||||
{
|
||||
struct sec_msg_t sec_msg = {NS_SEC_NULL_MSG,NULL};
|
||||
struct sec_msg_t sec_msg = {NS_SEC_NULL_MSG, {NULL}};
|
||||
sec_msg.msg_id = NS_SEC_PAIR_FAILED;
|
||||
app_sec_env.sec_init.ns_sec_msg_handler(&sec_msg);
|
||||
}
|
||||
|
@ -644,7 +644,7 @@ static int gapc_encrypt_req_ind_handler(ke_msg_id_t const msgid,
|
|||
NS_LOG_DEBUG("Not found\r\n");
|
||||
if(app_sec_env.sec_init.ns_sec_msg_handler)
|
||||
{
|
||||
struct sec_msg_t sec_msg = {NS_SEC_NULL_MSG,NULL};
|
||||
struct sec_msg_t sec_msg = {NS_SEC_NULL_MSG, {NULL}};
|
||||
sec_msg.msg_id = NS_SEC_LTK_MISSING;
|
||||
app_sec_env.sec_init.ns_sec_msg_handler(&sec_msg);
|
||||
}
|
||||
|
@ -664,7 +664,7 @@ static int gapc_encrypt_req_ind_handler(ke_msg_id_t const msgid,
|
|||
else{
|
||||
if(app_sec_env.sec_init.ns_sec_msg_handler)
|
||||
{
|
||||
struct sec_msg_t sec_msg = {NS_SEC_NULL_MSG,NULL};
|
||||
struct sec_msg_t sec_msg = {NS_SEC_NULL_MSG, {NULL}};
|
||||
sec_msg.msg_id = NS_SEC_LTK_FOUND;
|
||||
app_sec_env.sec_init.ns_sec_msg_handler(&sec_msg);
|
||||
}
|
||||
|
@ -684,7 +684,7 @@ static int gapc_encrypt_ind_handler(ke_msg_id_t const msgid,
|
|||
NS_LOG_DEBUG("%s,lvl:%d\r\n",__func__,param->pairing_lvl);
|
||||
if(app_sec_env.sec_init.ns_sec_msg_handler)
|
||||
{
|
||||
struct sec_msg_t sec_msg = {NS_SEC_NULL_MSG,NULL};
|
||||
struct sec_msg_t sec_msg = {NS_SEC_NULL_MSG, {NULL}};
|
||||
sec_msg.msg_id = NS_SEC_ENC_SUCCEED;
|
||||
app_sec_env.sec_init.ns_sec_msg_handler(&sec_msg);
|
||||
}
|
||||
|
|
|
@ -201,7 +201,7 @@ void ns_sleep(void)
|
|||
* @return
|
||||
* @note
|
||||
*/
|
||||
__weak void app_sleep_prepare_proc(void)
|
||||
__WEAK void app_sleep_prepare_proc(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -213,7 +213,7 @@ __weak void app_sleep_prepare_proc(void)
|
|||
* @return
|
||||
* @note
|
||||
*/
|
||||
__weak void app_sleep_resume_proc(void)
|
||||
__WEAK void app_sleep_resume_proc(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue