void main (void) { memset (hash1, 0, SMINI_HASH_SIZE); // zero fpga bitstream hash. This forces reload init_smini (); set_led_0 (0); set_led_1 (0); EA = 0; // disable all interrupts patch_usb_descriptors(); setup_autovectors (); usb_install_handlers (); //hook_timer_tick ((unsigned short) isr_tick); EIEX4 = 1; // disable INT4 FIXME EA = 1; // global interrupt enable fx2_renumerate (); // simulates disconnect / reconnect main_loop (); }
void main (void) { #if 0 g_rx_enable = 0; // FIXME (work around initialization bug) g_tx_enable = 0; g_rx_overrun = 0; g_tx_underrun = 0; #endif PORTECFG = 0x00; OEE = 0x0f; IOE = 0x0c; memset (hash1, 0, USRP_HASH_SIZE); // zero fpga bitstream hash. This forces reload patch_usb_descriptors(); init_usrp (); init_gpif (); // if (UC_START_WITH_GSTATE_OUTPUT_ENABLED) // IFCONFIG |= bmGSTATE; // no conflict, start with it on set_led_0 (0); set_led_1 (0); EA = 0; // disable all interrupts setup_autovectors (); usb_install_handlers (); hook_timer_tick ((unsigned short) isr_tick); EIEX4 = 1; // disable INT4 FIXME EA = 1; // global interrupt enable IOE = 0x04; fx2_renumerate (); // simulates disconnect / reconnect IOE = 0x08; main_loop (); }