From 0366d6110761c6bb34c49a0f1dbadabafc92a997 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Fri, 22 Apr 2011 11:45:40 -0700 Subject: N210: Minor rearranging of bootloader impl in txrx --- firmware/zpu/apps/txrx_uhd.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'firmware') diff --git a/firmware/zpu/apps/txrx_uhd.c b/firmware/zpu/apps/txrx_uhd.c index 7a99303bf..fcccf6959 100644 --- a/firmware/zpu/apps/txrx_uhd.c +++ b/firmware/zpu/apps/txrx_uhd.c @@ -288,23 +288,24 @@ main(void) { u2_init(); #ifdef BOOTLOADER - spif_init(); - set_default_mac_addr(); - set_default_ip_addr(); putstr("\nUSRP N210 UDP bootloader\n"); #else putstr("\nTxRx-UHD-ZPU\n"); #endif - print_mac_addr(ethernet_mac_addr()); newline(); - print_ip_addr(get_ip_addr()); newline(); printf("FPGA compatibility number: %d\n", USRP2_FPGA_COMPAT_NUM); printf("Firmware compatibility number: %d\n", USRP2_FW_COMPAT_NUM); #ifdef BOOTLOADER //load the production FPGA image or firmware if appropriate + spif_init(); do_the_bootload_thing(); + set_default_mac_addr(); + set_default_ip_addr(); #endif + print_mac_addr(ethernet_mac_addr()); newline(); + print_ip_addr(get_ip_addr()); newline(); + //1) register the addresses into the network stack register_addrs(ethernet_mac_addr(), get_ip_addr()); pkt_ctrl_program_inspector(get_ip_addr(), USRP2_UDP_DSP0_PORT); -- cgit v1.2.3