Skip to content
Snippets Groups Projects
Commit 3f341c9e authored by wierenga's avatar wierenga
Browse files

BugID: 970

Remove unnecessary WRITE_CDO_ONCE configuration option.
parent 2d55b9b6
No related branches found
No related tags found
No related merge requests found
...@@ -149,11 +149,6 @@ uint16 CDOWrite::compute_ip_checksum(void* addr, int count) ...@@ -149,11 +149,6 @@ uint16 CDOWrite::compute_ip_checksum(void* addr, int count)
void CDOWrite::sendrequest() void CDOWrite::sendrequest()
{ {
// write register (with same setting) every second if WRITE_CDO_ONCE == 0
if (0 == GET_CONFIG("RSPDriver.WRITE_CDO_ONCE", i)) {
Cache::getInstance().getState().cdo().write(getBoardId() * getNumIndices() + getCurrentIndex());
}
// skip update if the CDO settings have not been modified // skip update if the CDO settings have not been modified
if (RTC::RegisterState::WRITE != Cache::getInstance().getState().cdo().get(getBoardId() * getNumIndices() + getCurrentIndex())) if (RTC::RegisterState::WRITE != Cache::getInstance().getState().cdo().get(getBoardId() * getNumIndices() + getCurrentIndex()))
{ {
......
...@@ -40,8 +40,8 @@ RSPDriver.PPS_TRIGGER=1 ...@@ -40,8 +40,8 @@ RSPDriver.PPS_TRIGGER=1
# #
# Specify MAC addresses of the RSP boards explicitly # Specify MAC addresses of the RSP boards explicitly
# #
RSPDriver.MAC_ADDR_0=10:FA:00:00:00:00 RSPDriver.MAC_ADDR_0=10:FA:00:00:11:00
RSPDriver.MAC_ADDR_1=10:FA:00:00:01:00 RSPDriver.MAC_ADDR_1=10:FA:00:00:12:00
RSPDriver.MAC_ADDR_2=10:FA:00:00:02:00 RSPDriver.MAC_ADDR_2=10:FA:00:00:02:00
RSPDriver.MAC_ADDR_3=10:FA:00:00:03:00 RSPDriver.MAC_ADDR_3=10:FA:00:00:03:00
RSPDriver.MAC_ADDR_4=10:FA:00:00:04:00 RSPDriver.MAC_ADDR_4=10:FA:00:00:04:00
...@@ -210,9 +210,6 @@ RSPDriver.LOOPBACK_MODE=0 ...@@ -210,9 +210,6 @@ RSPDriver.LOOPBACK_MODE=0
RSPDriver.WRITE_RSU=1 RSPDriver.WRITE_RSU=1
RSPDriver.WRITE_BS=1 RSPDriver.WRITE_BS=1
RSPDriver.WRITE_CDO=1 RSPDriver.WRITE_CDO=1
# WRITE_CDO_ONCE, if set to 1 only write CDO register once at startup
# otherwise rewrite same data every update (= second)
RSPDriver.WRITE_CDO_ONCE=1#0
# READ_CDO, if set to 1 reads back contents of pid=CDO, regid=0x01 # READ_CDO, if set to 1 reads back contents of pid=CDO, regid=0x01
# This can be used to verify that the UDP/IP header is correctly # This can be used to verify that the UDP/IP header is correctly
# written to the register. # written to the register.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment