Change in osmo-e1-hardware[master]: icE1usb: Use register bit #define instead of magic number

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Mon Dec 14 16:04:42 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1-hardware/+/21707 )


Change subject: icE1usb: Use register bit #define instead of magic number
......................................................................

icE1usb: Use register bit #define instead of magic number

Change-Id: Ic824ce5a6605c96989fefbf92f365bff618dccb2
---
M firmware/ice40-riscv/icE1usb/e1.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-e1-hardware refs/changes/07/21707/1

diff --git a/firmware/ice40-riscv/icE1usb/e1.c b/firmware/ice40-riscv/icE1usb/e1.c
index 776edba..5d4d3ee 100644
--- a/firmware/ice40-riscv/icE1usb/e1.c
+++ b/firmware/ice40-riscv/icE1usb/e1.c
@@ -406,7 +406,7 @@
 		return;
 
 	/* HACK: LED link status */
-	if (e1_regs->rx.csr & 2)
+	if (e1_regs->rx.csr & E1_RX_SR_ALIGNED)
 		led_color(0, 48, 0);
 	else
 		led_color(48, 0, 0);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-e1-hardware/+/21707
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-e1-hardware
Gerrit-Branch: master
Gerrit-Change-Id: Ic824ce5a6605c96989fefbf92f365bff618dccb2
Gerrit-Change-Number: 21707
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201214/6845b075/attachment.htm>


More information about the gerrit-log mailing list