update hardware init

This commit is contained in:
不吃油炸鸡
2025-09-11 11:28:49 +08:00
parent 6476fd10b0
commit e51f1b53c6

View File

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