From 7936efcc91c2aac07bdf474cf7a764d0f95d8e29 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Romain=20Bron=C3=A8s?= <romain.brones@synchrotron-soleil.fr>
Date: Tue, 21 Nov 2023 17:25:00 +0100
Subject: [PATCH] Update configuration

---
 .../files/config/C01_config_register          | 16 ++++++++++++
 .../files/config/C06_config_register          | 16 ++++++++++++
 .../files/config/C09_config_register          | 16 ++++++++++++
 .../files/config/C14_config_register          | 16 ++++++++++++
 .../files/config/Central_config_register      | 25 +++++++++++++++++++
 5 files changed, 89 insertions(+)

diff --git a/recipes-app/fofb-init/files/config/C01_config_register b/recipes-app/fofb-init/files/config/C01_config_register
index 9250ab3..3f3ef9f 100644
--- a/recipes-app/fofb-init/files/config/C01_config_register
+++ b/recipes-app/fofb-init/files/config/C01_config_register
@@ -4,6 +4,9 @@
 # format is
 # register.path.name value
 # Everything not parsable will be ignored and reported as warning
+
+
+# CONFIGURE DEDICATED ETHERNET MAC ADDRESSES
 APP.ccn_packeter_0.MAC_SRC_MSB 0x0000FAFF
 APP.ccn_packeter_0.MAC_SRC_LSB 0xEE000100
 
@@ -15,3 +18,16 @@ APP.ccn_unpacketer_0.MAC_DST_LSB 0xEE000100
 
 APP.ccn_unpacketer_0.MAC_SRC_MSB 0x0000FAFF
 APP.ccn_unpacketer_0.MAC_SRC_LSB 0xEE000500
+
+# SET ETH STATISTICS ON INTERNAL PPS SIGNAL
+APP.ccn_ethernet_0.ETH.MODE_REG 3
+
+# ETHERNET CONFIGURATION
+# IPG to 12
+APP.ccn_ethernet_0.ETH.CONFIGURATION_TX_REG1 0x3003
+# RX enable, delete fcs, check preamble and sfd
+APP.ccn_ethernet_0.ETH.CONFIGURATION_RX_REG1".format(N), np.uintc(0x33))
+
+# CCN configuration
+APP.ccn_packeter_0.TIMEOUT 4000
+
diff --git a/recipes-app/fofb-init/files/config/C06_config_register b/recipes-app/fofb-init/files/config/C06_config_register
index b9f64f4..3c06c86 100644
--- a/recipes-app/fofb-init/files/config/C06_config_register
+++ b/recipes-app/fofb-init/files/config/C06_config_register
@@ -4,6 +4,9 @@
 # format is
 # register.path.name value
 # Everything not parsable will be ignored and reported as warning
+
+
+# CONFIGURE DEDICATED ETHERNET MAC ADDRESSES
 APP.ccn_packeter_0.MAC_SRC_MSB 0x0000FAFF
 APP.ccn_packeter_0.MAC_SRC_LSB 0xEE000200
 
@@ -15,3 +18,16 @@ APP.ccn_unpacketer_0.MAC_DST_LSB 0xEE000200
 
 APP.ccn_unpacketer_0.MAC_SRC_MSB 0x0000FAFF
 APP.ccn_unpacketer_0.MAC_SRC_LSB 0xEE000500
+
+# SET ETH STATISTICS ON INTERNAL PPS SIGNAL
+APP.ccn_ethernet_0.ETH.MODE_REG 3
+
+# ETHERNET CONFIGURATION
+# IPG to 12
+APP.ccn_ethernet_0.ETH.CONFIGURATION_TX_REG1 0x3003
+# RX enable, delete fcs, check preamble and sfd
+APP.ccn_ethernet_0.ETH.CONFIGURATION_RX_REG1".format(N), np.uintc(0x33))
+
+# CCN configuration
+APP.ccn_packeter_0.TIMEOUT 4000
+
diff --git a/recipes-app/fofb-init/files/config/C09_config_register b/recipes-app/fofb-init/files/config/C09_config_register
index 6cafe3e..2d6e940 100644
--- a/recipes-app/fofb-init/files/config/C09_config_register
+++ b/recipes-app/fofb-init/files/config/C09_config_register
@@ -4,6 +4,9 @@
 # format is
 # register.path.name value
 # Everything not parsable will be ignored and reported as warning
+
+
+# CONFIGURE DEDICATED ETHERNET MAC ADDRESSES
 APP.ccn_packeter_0.MAC_SRC_MSB 0x0000FAFF
 APP.ccn_packeter_0.MAC_SRC_LSB 0xEE000300
 
@@ -15,3 +18,16 @@ APP.ccn_unpacketer_0.MAC_DST_LSB 0xEE000300
 
 APP.ccn_unpacketer_0.MAC_SRC_MSB 0x0000FAFF
 APP.ccn_unpacketer_0.MAC_SRC_LSB 0xEE000500
+
+# SET ETH STATISTICS ON INTERNAL PPS SIGNAL
+APP.ccn_ethernet_0.ETH.MODE_REG 3
+
+# ETHERNET CONFIGURATION
+# IPG to 12
+APP.ccn_ethernet_0.ETH.CONFIGURATION_TX_REG1 0x3003
+# RX enable, delete fcs, check preamble and sfd
+APP.ccn_ethernet_0.ETH.CONFIGURATION_RX_REG1".format(N), np.uintc(0x33))
+
+# CCN configuration
+APP.ccn_packeter_0.TIMEOUT 4000
+
diff --git a/recipes-app/fofb-init/files/config/C14_config_register b/recipes-app/fofb-init/files/config/C14_config_register
index 865aa92..51bcc5e 100644
--- a/recipes-app/fofb-init/files/config/C14_config_register
+++ b/recipes-app/fofb-init/files/config/C14_config_register
@@ -4,6 +4,9 @@
 # format is
 # register.path.name value
 # Everything not parsable will be ignored and reported as warning
+
+
+# CONFIGURE DEDICATED ETHERNET MAC ADDRESSES
 APP.ccn_packeter_0.MAC_SRC_MSB 0x0000FAFF
 APP.ccn_packeter_0.MAC_SRC_LSB 0xEE000400
 
@@ -15,3 +18,16 @@ APP.ccn_unpacketer_0.MAC_DST_LSB 0xEE000400
 
 APP.ccn_unpacketer_0.MAC_SRC_MSB 0x0000FAFF
 APP.ccn_unpacketer_0.MAC_SRC_LSB 0xEE000500
+
+# SET ETH STATISTICS ON INTERNAL PPS SIGNAL
+APP.ccn_ethernet_0.ETH.MODE_REG 3
+
+# ETHERNET CONFIGURATION
+# IPG to 12
+APP.ccn_ethernet_0.ETH.CONFIGURATION_TX_REG1 0x3003
+# RX enable, delete fcs, check preamble and sfd
+APP.ccn_ethernet_0.ETH.CONFIGURATION_RX_REG1".format(N), np.uintc(0x33))
+
+# CCN configuration
+APP.ccn_packeter_0.TIMEOUT 4000
+
diff --git a/recipes-app/fofb-init/files/config/Central_config_register b/recipes-app/fofb-init/files/config/Central_config_register
index 0b1bd0e..f419fed 100644
--- a/recipes-app/fofb-init/files/config/Central_config_register
+++ b/recipes-app/fofb-init/files/config/Central_config_register
@@ -40,3 +40,28 @@ APP.ccn_unpacketer_2.MAC_SRC_MSB 0x0000FAFF
 APP.ccn_unpacketer_2.MAC_SRC_LSB 0xEE000300
 APP.ccn_unpacketer_3.MAC_SRC_MSB 0x0000FAFF
 APP.ccn_unpacketer_3.MAC_SRC_LSB 0xEE000400
+
+# SET ETH STATISTICS ON INTERNAL PPS SIGNAL
+APP.ccn_ethernet_0.ETH.MODE_REG 3
+APP.ccn_ethernet_1.ETH.MODE_REG 3
+APP.ccn_ethernet_2.ETH.MODE_REG 3
+APP.ccn_ethernet_3.ETH.MODE_REG 3
+
+# ETHERNET CONFIGURATION
+# IPG to 12
+APP.ccn_ethernet_0.ETH.CONFIGURATION_TX_REG1 0x3003
+APP.ccn_ethernet_1.ETH.CONFIGURATION_TX_REG1 0x3003
+APP.ccn_ethernet_2.ETH.CONFIGURATION_TX_REG1 0x3003
+APP.ccn_ethernet_3.ETH.CONFIGURATION_TX_REG1 0x3003
+# RX enable, delete fcs, check preamble and sfd
+APP.ccn_ethernet_0.ETH.CONFIGURATION_RX_REG1 0x33
+APP.ccn_ethernet_1.ETH.CONFIGURATION_RX_REG1 0x33
+APP.ccn_ethernet_2.ETH.CONFIGURATION_RX_REG1 0x33
+APP.ccn_ethernet_3.ETH.CONFIGURATION_RX_REG1 0x33
+
+# CCN configuration
+APP.ccn_packeter_0.TIMEOUT 4000
+APP.ccn_packeter_1.TIMEOUT 4000
+APP.ccn_packeter_2.TIMEOUT 4000
+APP.ccn_packeter_3.TIMEOUT 4000
+
-- 
GitLab