Example #1
0
void
srvinit()
{
	usb_init( );
	usb_enable( );
	usb_up( );
	usb_flush( );

	rxstate = Uidle;
}
Example #2
0
void configure_serial()
{

  setup_led( );
  GREEN_LED = 1;
  GREEN_LED = 0;
  usb_init( );
  usb_enable( );
  usb_up( );
  usb_flush( );
  /// GREEN_LED = 1;

}
Example #3
0
void configure_serial()
{

  setup_led( );
//  led_set_state(0,1);
//  led_set_state(0,0);
  usb_init( );
  usb_enable( );
  usb_up( );
  usb_flush( );
  /// GREEN_LED = 1;

}
void main (void)
{
    initBoard();
    initUSB();
    blink(300,300);

    init_RF();
    appMainInit();

    usb_up();

    /* Enable interrupts */
    EA = 1;

    while (1)
    {  
        usbProcessEvents();
        appMainLoop();
    }

}
void main (void)
{
    initBoard();
    initDMA();  // do this early so peripherals that use DMA can allocate channels correctly
    initAES();
    initUSB();
    blink(300,300);

    init_RF();
    appMainInit();

    usb_up();

    /* Enable interrupts */
    EA = 1;

    while (1)
    {  
        usbProcessEvents();
        appMainLoop();
    }

}