This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

想把BLE-Bridge整合到Keyfob裡面



想把BLE-Bridge整合到Keyfob裡面,

把相關程式從Bridge.c移到Keyfob.c中,

但是Keyfob.h中的CONSTANTS卻不知道怎麼調整

這是Key Fob 的 Task Events

// Key Fob Task Events
#define KFD_START_DEVICE_EVT 0x0001
#define KFD_BATTERY_CHECK_EVT 0x0002
#define KFD_ACCEL_READ_EVT 0x0004
#define KFD_TOGGLE_BUZZER_EVT 0x0008
#define KFD_ADV_IN_CONNECTION_EVT 0x0010
#define KFD_POWERON_LED_TIMEOUT_EVT 0x0020

這是Bridge 的 Task Events

// BLE_Bridge Task Events
#define SBP_START_DEVICE_EVT 0x0001
#define SBP_ADV_IN_CONNECTION_EVT 0x0004
#define SBP_SEND_EVT 0x0008

第一個我把兩個合再一起了,但是後面的SBP_ADV_IN_CONNECTION_EVT和SBP_SEND_EVT卻不知道怎麼設定了,

亂改成其他的數字(例如0x0005&0x0009)有時候廣播時的燈就不閃了(恆亮)。

請問這邊要如何設定?

P.S.有在 OSAL_KeyFobDemo.c 的 tasksArr 加入

SerialInterface_ProcessEvent, // task 11