update hardware init

This commit is contained in:
不吃油炸鸡
2025-09-11 16:34:17 +08:00
parent af387f6d02
commit 193844857a

View File

@@ -56,11 +56,16 @@ void HardwareInitTask(void *argument)
adc_packet.header[1] = 0xAA;
adc_packet.header[2] = ADC_TIMES;
adc_packet.header[3] = ADC_CHANELS;
// 填充模式位
adc_packet.header[4] = 0x10;
// gate, for current flow route selection, high current by default
Gate_Port_Init();
flow_route_selection(HIGH_CUR);
// FUSB CC dis connect
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_10, GPIO_PIN_RESET);
// PWM Start for LCD backlight
HAL_TIM_PWM_Start(&htim1,TIM_CHANNEL_3);