refactor(protocol): 移除未使用的消息队列获取函数
This commit is contained in:
@@ -233,10 +233,3 @@ void comm_protocol_send_cop(uint8_t flags, int16_t cop_x, int16_t cop_y, int16_t
|
|||||||
* @param data 8 字节响应数据。
|
* @param data 8 字节响应数据。
|
||||||
*/
|
*/
|
||||||
void comm_protocol_send_cal_resp(uint8_t status, uint8_t subcmd, const uint8_t data[8]);
|
void comm_protocol_send_cal_resp(uint8_t status, uint8_t subcmd, const uint8_t data[8]);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief 获取下行消息队列指针,业务层通过 k_msgq_get() 消费。
|
|
||||||
*
|
|
||||||
* @return 指向内部 msgq 的指针。
|
|
||||||
*/
|
|
||||||
struct k_msgq *comm_protocol_get_msgq(void);
|
|
||||||
|
|||||||
@@ -152,7 +152,3 @@ void comm_protocol_send_cal_resp(uint8_t status, uint8_t subcmd, const uint8_t d
|
|||||||
pkt.frame.crc = frame_crc(pkt.bytes, sizeof(pkt.bytes));
|
pkt.frame.crc = frame_crc(pkt.bytes, sizeof(pkt.bytes));
|
||||||
ble_transport_send(pkt.bytes, sizeof(pkt.bytes));
|
ble_transport_send(pkt.bytes, sizeof(pkt.bytes));
|
||||||
}
|
}
|
||||||
|
|
||||||
struct k_msgq *comm_protocol_get_msgq(void) {
|
|
||||||
return &rx_msgq;
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user