/******************** (C) COPYRIGHT 2023 GeekRebot ***************************** * File Name : bsp_sys.c * Current Version : V1.0 & ST 3.5.0 * Author : zhanli 719901725@qq.com * Date of Issued : 2023.04.06 zhanli: Create * Comments : ��ʼ���������� ********************************************************************************/ #include "bsp_sys.h" /**---------------------------------------------------------------------- * Function : System_Init * Description : GeekRebot * Author : zhanli&719901725@qq.com * Date : 2023/04/22 zhanli *---------------------------------------------------------------------**/ void System_Init(void) { Delay_Init(72); NVIC_Config(); LED_GPIO_Config(); USART1_Init(115200); //IIC_Init(); Motor_Init(); MOTO_PWM_Init(3599,0); Encoder_Init_TIM2(); TIM2 -> CNT=30000; Encoder_Init_TIM4(); TIM4 -> CNT=30000; Motor_PWMOut(100, 100); int Moto_Left=500; int Moto_Right=500; TIM3->CCR3 = Moto_Left; TIM3->CCR4 = Moto_Right; }