Still don't work :(

This commit is contained in:
Edward Emelianov
2023-03-01 22:03:03 +03:00
parent 8e4df528d9
commit d23d2ab89d
15 changed files with 204 additions and 34 deletions

View File

@@ -51,6 +51,10 @@ int main(void){
adc_setup();
pdnuart_setup();
USBPU_ON();
for(int i = 0; i < MOTORSNO; ++i){
motflags_t flag = the_conf.motflags[i];
if(flag.drvtype == DRVTYPE_UART) pdnuart_init(i);
}
uint32_t ctr = 0;
CAN_message *can_mesg;
while(1){