diff --git a/Robot_V2/main.cpp b/Robot_V2/main.cpp index 22735b2..3762845 100644 --- a/Robot_V2/main.cpp +++ b/Robot_V2/main.cpp @@ -5,6 +5,7 @@ #include "Timer.h" #include "adc.h" #include "core_cm4.h" +#include "core_cm4.h" #include "device/tle5012b.h" #include "gd32c10x_gpio.h" #include "initial.h" @@ -36,4 +37,4 @@ int main(void) { printf("1\r\n"); CAN0_transmiter.communication_check(); } -} \ No newline at end of file +} diff --git a/Robot_V2/sys/systick.cpp b/Robot_V2/sys/systick.cpp index baeebda..2731f85 100644 --- a/Robot_V2/sys/systick.cpp +++ b/Robot_V2/sys/systick.cpp @@ -79,6 +79,7 @@ void delay_1ms(uint32_t count) delay = count; while(0U != delay){ fwdgt_counter_reload(); + fwdgt_counter_reload(); } }