fix(vd960Loop): 移除 TaskLoop.c 中重复的 usart_task/g_flag_output 定义
This commit is contained in:
@@ -24,12 +24,6 @@ uint32_t g_sys_freq = 0;
|
||||
uint8_t g_input_div = 1;
|
||||
uint32_t g_safe_max_cnt = LC_HOLD_TIME;
|
||||
|
||||
/*===========================================================================
|
||||
* 调试
|
||||
*===========================================================================*/
|
||||
uint8_t g_flag_output = 0;
|
||||
uint8_t g_flag_output2 = 0;
|
||||
|
||||
/*===========================================================================
|
||||
* 一阶 IIR 低通滤波器(对齐 DLD154V4B)
|
||||
* CAPVD_new = α·new_value + (1-α)·CAPVD_old, α = Flt_Reg/256
|
||||
@@ -665,43 +659,4 @@ void led_indicator_task_function(void *pvParameters)
|
||||
}
|
||||
}
|
||||
|
||||
/*===========================================================================
|
||||
* USART1 接收缓冲区 & 任务
|
||||
*===========================================================================*/
|
||||
char usart1_rx_buffer[USART1_RX_BUFFER_SIZE];
|
||||
volatile uint16_t usart1_rx_head = 0;
|
||||
volatile uint16_t usart1_rx_tail = 0;
|
||||
TaskHandle_t usart_task_handler = NULL;
|
||||
|
||||
void usart_task_function(void *pvParameters)
|
||||
{
|
||||
while (1) {
|
||||
if (g_pkg_uart_1.flag) {
|
||||
manage_dbn_ble_default(g_pkg_uart_1.pkg, g_pkg_uart_1.offset);
|
||||
InitPkgUart(&g_pkg_uart_1);
|
||||
}
|
||||
uart_report_packet_loop_acs(0);
|
||||
|
||||
#ifdef DEBUG
|
||||
if (g_flag_output) {
|
||||
g_flag_output = 0;
|
||||
PRINT("xnC:%d,%d,%d,%d LPCNT:%d,%d,%d,%d CAPVD:%d,%d,%d,%d Origin:%d,%d,%d,%d VD:%d,%d,%d,%d\n",
|
||||
g_loop_states.loop_unit[0].xn_counter, g_loop_states.loop_unit[1].xn_counter,
|
||||
g_loop_states.loop_unit[2].xn_counter, g_loop_states.loop_unit[3].xn_counter,
|
||||
g_loop_states.loop_unit[0].loop_LPCNT, g_loop_states.loop_unit[1].loop_LPCNT,
|
||||
g_loop_states.loop_unit[2].loop_LPCNT, g_loop_states.loop_unit[3].loop_LPCNT,
|
||||
g_loop_states.loop_unit[0].loop_CAPVD, g_loop_states.loop_unit[1].loop_CAPVD,
|
||||
g_loop_states.loop_unit[2].loop_CAPVD, g_loop_states.loop_unit[3].loop_CAPVD,
|
||||
g_loop_states.loop_unit[0].loop_Origin, g_loop_states.loop_unit[1].loop_Origin,
|
||||
g_loop_states.loop_unit[2].loop_Origin, g_loop_states.loop_unit[3].loop_Origin,
|
||||
g_loop_states.loop_unit[0].loop_VD_FLAG, g_loop_states.loop_unit[1].loop_VD_FLAG,
|
||||
g_loop_states.loop_unit[2].loop_VD_FLAG, g_loop_states.loop_unit[3].loop_VD_FLAG);
|
||||
g_loop_states.loop_unit[0].xn_counter = 0;
|
||||
g_loop_states.loop_unit[1].xn_counter = 0;
|
||||
g_loop_states.loop_unit[2].xn_counter = 0;
|
||||
g_loop_states.loop_unit[3].xn_counter = 0;
|
||||
}
|
||||
#endif
|
||||
vTaskDelay(10);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user