| | |
| | | uint16_t hardware_version,hardware_pici,hardware_type; |
| | | u16 current_time; |
| | | uint8_t state5v; |
| | | u16 beepcount; |
| | | void IdleTask(void) |
| | | { |
| | | |
| | |
| | | // LED_TB_OFF; |
| | | //}else{ |
| | | // LED_TR_OFF; |
| | | current_time=GetLPTime(); |
| | | // while(1) |
| | | // { |
| | | // current_time=HAL_LPTIM_ReadCounter(&hlptim1); |
| | | // if(current_time-beepcount>3||beepcount>current_time) |
| | | // { |
| | | // beepcount = current_time; |
| | | // LED_BLINK(GPIOA, GPIO_PIN_11); |
| | | // } |
| | | //} |
| | | |
| | | |
| | | //motor_state=2; |
| | | if(g_com_map[MOTOR_ENABLE]) |
| | | { |
| | |
| | | HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); |
| | | |
| | | /*Configure GPIO pins : DW_WKUP_Pin DW_CTRL_Pin LED2_G_Pin */ |
| | | GPIO_InitStruct.Pin = DW_WKUP_Pin|DW_CTRL_Pin|LED2_G_Pin; |
| | | GPIO_InitStruct.Pin = DW_WKUP_Pin|DW_CTRL_Pin|LED2_G_Pin|GPIO_PIN_11; |
| | | GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; |
| | | GPIO_InitStruct.Pull = GPIO_NOPULL; |
| | | GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; |