aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/usrp3/n230/n230_main.c
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2015-12-29 15:03:08 -0800
committerAshish Chaudhari <ashish@ettus.com>2016-01-05 17:35:14 -0800
commitaea284abb908575c388484c0b1a46c5100b09718 (patch)
tree972d117e77eef11eef50bea2a871d904508baf43 /firmware/usrp3/n230/n230_main.c
parente5880e648ca28067df5c38b8b905350848c63c27 (diff)
downloaduhd-aea284abb908575c388484c0b1a46c5100b09718.tar.gz
uhd-aea284abb908575c388484c0b1a46c5100b09718.tar.bz2
uhd-aea284abb908575c388484c0b1a46c5100b09718.zip
n230: Added dual-eth and link LED support to ZPU FW
Diffstat (limited to 'firmware/usrp3/n230/n230_main.c')
-rw-r--r--firmware/usrp3/n230/n230_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/usrp3/n230/n230_main.c b/firmware/usrp3/n230/n230_main.c
index 0dc44095e..f9d93bf4a 100644
--- a/firmware/usrp3/n230/n230_main.c
+++ b/firmware/usrp3/n230/n230_main.c
@@ -33,7 +33,6 @@
//TODO: This is just for initial debugging.
static soft_reg_t g_led_register;
-static const soft_reg_field_t LED_REG_BLINKY_FIELD = {.num_bits=4, .shift=0};
//Shared memory
static n230_host_shared_mem_t g_host_shared_mem;
@@ -67,7 +66,6 @@ int main(void)
//is somewhat stable we should delete this cron job
if (cron_job_run_due(PER_SECOND_CRON_JOBID)) {
//Everything in this block runs approx once per second
- soft_reg_write(&g_led_register, LED_REG_BLINKY_FIELD, heart_beat);
if (heart_beat % 10 == 0) {
UHD_FW_TRACE_FSTR(INFO, "0.1Hz Heartbeat (%u)", heart_beat);
}
@@ -77,6 +75,7 @@ int main(void)
if (cron_job_run_due(PER_MILLISEC_CRON_JOBID)) {
//Everything in this block runs approx once per millisecond
n230_handle_claim();
+ n230_handle_sfp_updates(&g_led_register);
}
//run the network stack - poll and handle