mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 11:54:30 +03:00
start fixing of this shit
This commit is contained in:
@@ -42,9 +42,9 @@ int main(void){
|
||||
StartHSI();
|
||||
SysTick_Config((uint32_t)48000); // 1ms
|
||||
}
|
||||
hw_setup(); // GPIO, ADC, timers, watchdog etc.
|
||||
USBPU_OFF(); // make a reconnection
|
||||
flashstorage_init();
|
||||
hw_setup(); // GPIO, ADC, timers, watchdog etc.
|
||||
init_steppers();
|
||||
USB_setup();
|
||||
CAN_setup(the_conf.CANspeed);
|
||||
@@ -60,7 +60,7 @@ int main(void){
|
||||
LED_blink();
|
||||
}
|
||||
CAN_proc();
|
||||
USB_proc();
|
||||
USB_proc(); // TODO: remove deprecated trash code!
|
||||
process_steppers();
|
||||
if(CAN_get_status() == CAN_FIFO_OVERRUN){
|
||||
USB_sendstr("CAN bus fifo overrun occured!\n");
|
||||
|
||||
Reference in New Issue
Block a user