diff options
author | Josh Blum <josh@joshknows.com> | 2010-03-16 13:49:39 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-03-16 13:49:39 -0700 |
commit | 8be3b883f5b1a889f4f07611e8954449cc07c2b3 (patch) | |
tree | 0622e8702105a6e43569b902b16700a0072d4cbd /firmware/microblaze/lib | |
parent | fc40ff2f1327d01c72c4d7dbc07a14e473251981 (diff) | |
download | uhd-8be3b883f5b1a889f4f07611e8954449cc07c2b3.tar.gz uhd-8be3b883f5b1a889f4f07611e8954449cc07c2b3.tar.bz2 uhd-8be3b883f5b1a889f4f07611e8954449cc07c2b3.zip |
Added ability to set the subdevices in use for rx and tx dboards.
This is used to calculate and set the ddc and duc muxes.
Also, minor fix for burning addrs (wrong pointer....)
Diffstat (limited to 'firmware/microblaze/lib')
-rw-r--r-- | firmware/microblaze/lib/ethernet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/microblaze/lib/ethernet.c b/firmware/microblaze/lib/ethernet.c index 757a36ce4..0e731c68c 100644 --- a/firmware/microblaze/lib/ethernet.c +++ b/firmware/microblaze/lib/ethernet.c @@ -316,7 +316,7 @@ ethernet_mac_addr(void) bool ethernet_set_mac_addr(const eth_mac_addr_t *t) { - bool ok = eeprom_write(I2C_ADDR_MBOARD, MBOARD_MAC_ADDR, &t, sizeof(eth_mac_addr_t)); + bool ok = eeprom_write(I2C_ADDR_MBOARD, MBOARD_MAC_ADDR, t, sizeof(eth_mac_addr_t)); if (ok){ src_mac_addr = *t; src_mac_addr_initialized = true; @@ -356,7 +356,7 @@ const struct ip_addr *get_ip_addr(void) } bool set_ip_addr(const struct ip_addr *t){ - bool ok = eeprom_write(I2C_ADDR_MBOARD, MBOARD_IP_ADDR, &t, sizeof(struct ip_addr)); + bool ok = eeprom_write(I2C_ADDR_MBOARD, MBOARD_IP_ADDR, t, sizeof(struct ip_addr)); if (ok){ src_ip_addr = *t; src_ip_addr_initialized = true; |