diff options
author | Nick Foster <nick@nerdnetworks.org> | 2011-04-21 16:11:26 -0700 |
---|---|---|
committer | Nick Foster <nick@nerdnetworks.org> | 2011-04-21 16:12:53 -0700 |
commit | f9080d0a3f7d6b0478150581a0c2e8af3f4e3c95 (patch) | |
tree | f49a4b7b13a41f71750aa977bfa43db6e4cc0240 /firmware/zpu/usrp2p | |
parent | 03a609173ac90bf518b645893bd8211f02209846 (diff) | |
download | uhd-f9080d0a3f7d6b0478150581a0c2e8af3f4e3c95.tar.gz uhd-f9080d0a3f7d6b0478150581a0c2e8af3f4e3c95.tar.bz2 uhd-f9080d0a3f7d6b0478150581a0c2e8af3f4e3c95.zip |
N210: UDP bootloader
Diffstat (limited to 'firmware/zpu/usrp2p')
-rw-r--r-- | firmware/zpu/usrp2p/bootloader/udp_bootloader.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/zpu/usrp2p/bootloader/udp_bootloader.c b/firmware/zpu/usrp2p/bootloader/udp_bootloader.c index 70dc941a5..00b54f364 100644 --- a/firmware/zpu/usrp2p/bootloader/udp_bootloader.c +++ b/firmware/zpu/usrp2p/bootloader/udp_bootloader.c @@ -167,12 +167,13 @@ main(void) //1) register the addresses into the network stack //TODO: make this a fixed IP address, don't depend on EEPROM register_addrs(ethernet_mac_addr(), get_ip_addr()); + pkt_ctrl_program_inspector(get_ip_addr(), USRP2_UDP_DSP0_PORT); //2) register callbacks for udp ports we service init_udp_listeners(); -#ifdef USRP2P register_udp_listener(USRP2_UDP_UPDATE_PORT, handle_udp_fw_update_packet); -#endif + + pkt_ctrl_set_routing_mode(PKT_CTRL_ROUTING_MODE_SLAVE); //4) setup ethernet hardware to bring the link up ethernet_register_link_changed_callback(link_changed_callback); |