58,9 → 58,13 |
} |
void send_measuring() |
{ |
printf(usb_cdc_putc, "\n\r %5u %5u %5u %5u %5u", run, section[0], section[1], section[2], section[3]); |
} //*0.000010667 |
printf(usb_cdc_putc, "\n\r %5ld %5ld %5ld %5ld %5ld", run, section[0]*0.000010667, section[1]*0.000010667, section[2]*0.000010667, section[3]*0.000010667); |
} |
|
void exeption_inorder() |
{ |
} |
|
void main() |
{ |
unsigned int8 last, input; |
80,7 → 84,6 |
setup_comparator(NC_NC_NC_NC); |
setup_vref(FALSE); |
enable_interrupts(INT_TIMER0); |
enable_interrupts(GLOBAL); |
|
lcd_init(); |
usb_init(); |
116,6 → 119,7 |
printf(lcd_putc,"\f\n STOP"); |
time = 0; |
set_timer0(0); |
enable_interrupts(GLOBAL); |
position = 0; |
exception = 0; |
|
132,15 → 136,7 |
} |
last=input_b(); |
} |
if (exception == INORDER) |
{ |
printf(lcd_putc,"\fInorder! Send?"); |
lcd_gotoxy(1,2); |
printf(lcd_putc,"YES NO"); |
While(input(BUTTON1) && input(BUTTON4)); |
if(!input(BUTTON1)) send_measuring(); |
if(!input(BUTTON4)) continue; |
} |
if (exception == INORDER) exeption_inorder(); |
else send_measuring(); |
} |
} |