Change in osmo-e1-hardware[master]: icE1usb fw: Internal API for configuring E1 rx/tx config register

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
Thu Dec 17 17:02:56 UTC 2020


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


Change subject: icE1usb fw: Internal API for configuring E1 rx/tx config register
......................................................................

icE1usb fw: Internal API for configuring E1 rx/tx config register

Related: OS#4675
Change-Id: Ib23f9b99f169ab18d730bcf67b97a7b6bf863e98
---
M firmware/ice40-riscv/icE1usb/e1.c
M firmware/ice40-riscv/icE1usb/e1.h
2 files changed, 16 insertions(+), 0 deletions(-)



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

diff --git a/firmware/ice40-riscv/icE1usb/e1.c b/firmware/ice40-riscv/icE1usb/e1.c
index 532dcdf..4ce75bf 100644
--- a/firmware/ice40-riscv/icE1usb/e1.c
+++ b/firmware/ice40-riscv/icE1usb/e1.c
@@ -268,6 +268,19 @@
 	g_e1.tx.state = BOOT;
 }
 
+void
+e1_tx_config(uint16_t cr)
+{
+	g_e1.tx.cr = cr;
+	e1_regs->tx.csr = g_e1.tx.cr;
+}
+
+void
+e1_rx_config(uint16_t cr)
+{
+	g_e1.rx.cr = cr;
+	e1_regs->rx.csr = g_e1.rx.cr;
+}
 
 #include "dma.h"
 
diff --git a/firmware/ice40-riscv/icE1usb/e1.h b/firmware/ice40-riscv/icE1usb/e1.h
index c438cb9..05ce19a 100644
--- a/firmware/ice40-riscv/icE1usb/e1.h
+++ b/firmware/ice40-riscv/icE1usb/e1.h
@@ -11,6 +11,9 @@
 void e1_poll(void);
 void e1_debug_print(bool data);
 
+void e1_tx_config(uint16_t cr);
+void e1_rx_config(uint16_t cr);
+
 volatile uint8_t *e1_data_ptr(int mf, int frame, int ts);
 unsigned int e1_data_ofs(int mf, int frame, int ts);
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-e1-hardware/+/21774
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: Ib23f9b99f169ab18d730bcf67b97a7b6bf863e98
Gerrit-Change-Number: 21774
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/20201217/2f248f6c/attachment.htm>


More information about the gerrit-log mailing list