/** Main program entry point. This routine configures the hardware required by the application, then * enters a loop to run the application tasks in sequence. */ int main(void) { uint8_t cyc; SetupHardware(); /* Webserver Initialization */ setup_spi(); DDRD |= _BV(6); PORTD &= ~_BV(6); PORTD = 0; GlobalInterruptEnable(); //sendstr( "Boot" ); et_init( 0 ); InitTCP(); InitDumbcraft(); for (;;) { // SetManyWS( 0xff, 0x00, 0x00, 20 ); RNDIS_Task(); USB_USBTask(); _delay_us(200); UpdateServer(); cyc++; if( (cyc & 0x7f) == 0 ) { struct Player * p = &Players[0]; // sendhex2( p->npitch ); // = 1; // if( p->active ) PORTD |= _BV(6); TickServer(); TickTCP(); PORTD &= ~_BV(6); } } }
/** Main program entry point. This routine configures the hardware required by the application, then * enters a loop to run the application tasks in sequence. */ int main(void) { SetupHardware(); /* Webserver Initialization */ TCP_Init(); Webserver_Init(); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); GlobalInterruptEnable(); for (;;) { Ethernet_Task(); TCP_Task(); RNDIS_Task(); USB_USBTask(); } }