From 01bd9e4095d42903b6d2895cc9f7247d388836a7 Mon Sep 17 00:00:00 2001 From: din Date: Tue, 9 Sep 2025 19:01:23 -0500 Subject: [PATCH] ddriotest add hdxs, typo --- src/main/ddrio-p4io/config.c | 4 ++-- src/main/ddrio-p4io/ddrio.c | 2 +- src/main/ddriotest/main.c | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/main/ddrio-p4io/config.c b/src/main/ddrio-p4io/config.c index a5b7743..e979f86 100644 --- a/src/main/ddrio-p4io/config.c +++ b/src/main/ddrio-p4io/config.c @@ -16,13 +16,13 @@ void ddrio_config_p4io_mdxf_init(struct cconfig *config) config, DDRIO_CONFIG_P4IO_MDXF_PORT_KEY, DDRIO_CONFIG_P4IO_MDXF_DEFAULT_PORT_VALUE, - "P4IO_MDXF serial port"); + "MDXF serial port"); cconfig_util_set_int( config, DDRIO_CONFIG_P4IO_MDXF_BAUD_KEY, DDRIO_CONFIG_P4IO_MDXF_DEFAULT_BAUD_VALUE, - "P4IO_MDXF bus baudrate (115200 is high speed, but will respond at 57600)"); + "MDXF bus baudrate (115200 is high speed, but will respond at 57600)"); } void ddrio_config_p4io_mdxf_get( diff --git a/src/main/ddrio-p4io/ddrio.c b/src/main/ddrio-p4io/ddrio.c index bd06c10..0eb1dfc 100644 --- a/src/main/ddrio-p4io/ddrio.c +++ b/src/main/ddrio-p4io/ddrio.c @@ -139,7 +139,7 @@ bool ddr_io_init( for (int i = 0; i < nodes; i++) { if (!aciodrv_mdxf_init(mdxf_device, i)) { log_warning("Opening mdxf device %d failed", i); - return false; + // return false; } } diff --git a/src/main/ddriotest/main.c b/src/main/ddriotest/main.c index 766c18e..72a52d2 100644 --- a/src/main/ddriotest/main.c +++ b/src/main/ddriotest/main.c @@ -316,6 +316,13 @@ int main(int argc, char **argv) p3io_lights |= (1 << LIGHT_P2_UPPER_LAMP); p3io_lights |= (1 << LIGHT_P2_LOWER_LAMP); + hdxs_lights |= (1 << LIGHT_HD_P1_START); + hdxs_lights |= (1 << LIGHT_HD_P1_UP_DOWN); + hdxs_lights |= (1 << LIGHT_HD_P1_LEFT_RIGHT); + hdxs_lights |= (1 << LIGHT_HD_P2_START); + hdxs_lights |= (1 << LIGHT_HD_P2_UP_DOWN); + hdxs_lights |= (1 << LIGHT_HD_P2_LEFT_RIGHT); + break; } @@ -329,6 +336,13 @@ int main(int argc, char **argv) p3io_lights &= ~(1 << LIGHT_P2_UPPER_LAMP); p3io_lights &= ~(1 << LIGHT_P2_LOWER_LAMP); + hdxs_lights &= ~(1 << LIGHT_HD_P1_START); + hdxs_lights &= ~(1 << LIGHT_HD_P1_UP_DOWN); + hdxs_lights &= ~(1 << LIGHT_HD_P1_LEFT_RIGHT); + hdxs_lights &= ~(1 << LIGHT_HD_P2_START); + hdxs_lights &= ~(1 << LIGHT_HD_P2_UP_DOWN); + hdxs_lights &= ~(1 << LIGHT_HD_P2_LEFT_RIGHT); + break; }