Skip to content
Snippets Groups Projects
Commit ce7d530e authored by Michael DM Dryden's avatar Michael DM Dryden
Browse files

main: added delay before USB init to try and increase connection reliability

parent e706ed1e
Branches
Tags
No related merge requests found
......@@ -132,22 +132,20 @@ int main(void){
pmic_set_scheduling(PMIC_SCH_ROUND_ROBIN);
delay_ms(500);
stdio_usb_init();
stdio_usb_enable();
ads1255_init_pins();
ads1255_init_module();
ads1255_setup(ADS_BUFF_ON,ADS_DR_60,ADS_PGA_2);
PORTD.INT0MASK = PIN5_bm;
PORTD.INT1MASK = PIN5_bm;
PORTD.INTCTRL = PORT_INT0LVL_OFF_gc | PORT_INT1LVL_OFF_gc;
dma_enable();
max5443_init_pins();
max5443_init_module();
delay_ms(300);
ads1255_wakeup();
ads1255_rdatac();
......
No preview for this file type
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment