From adfc7e798b9cbdd022bf8df971843436912a0fe5 Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期日, 20 七月 2025 16:58:30 +0800 Subject: [PATCH] 成功移植g_com_map表逻辑,初步测试能读能写,并且TDOA效果和官方一致 --- keil/include/components/uci/inc/uci_tl_comm.h | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/keil/include/components/uci/inc/uci_tl_comm.h b/keil/include/components/uci/inc/uci_tl_comm.h index 88bfac4..5f1e8cd 100644 --- a/keil/include/components/uci/inc/uci_tl_comm.h +++ b/keil/include/components/uci/inc/uci_tl_comm.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019-2023 Beijing Hanwei Innovation Technology Ltd. Co. and + * Copyright (c) 2019-2025 Beijing Hanwei Innovation Technology Ltd. Co. and * its subsidiaries and affiliates (collectly called MKSEMI). * * All rights reserved. @@ -43,7 +43,7 @@ #include "user_config.h" #include "wsf_queue.h" -#include "wsf_timer.h" +#include "mk_timer_list.h" #include "stdbool.h" /* UCI SPI full-duplex handshake interface */ @@ -63,19 +63,22 @@ /* UCI UART interface */ #ifndef UCI_INTF_UART -#define UCI_INTF_UART (0) +#define UCI_INTF_UART (1) #endif -#define UCI_RX_BUFF_SIZE (UCI_HEADER_SIZE + UCI_MAX_PAYLOAD_SIZE) +//#define UCI_RX_BUFF_SIZE (UCI_HEADER_SIZE + UCI_MAX_PAYLOAD_SIZE) +#define UCI_RX_BUFF_SIZE (UCI_HEADER_SIZE + 1023) #define UCI_TX_BUFF_SIZE UCI_RX_BUFF_SIZE typedef struct uci_tl_dev_s { wsfQueue_t tl_down_queue; wsfQueue_t tl_up_queue; - wsfTimer_t tl_timer; + mk_timer_t tl_timer; void (*uci_tl_setup)(void); void (*uci_tl_resume)(void); + void (*uci_tl_rx_stop)(void); + void (*uci_tl_rx_restart)(void); bool (*uci_tl_up_is_active)(void); void (*uci_tl_down_notify)(void); void (*uci_tl_up_req)(void); -- Gitblit v1.9.3