From 0f94100c783a4183c7b3ff55a1cc9378a00160c6 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Fri, 5 Jan 2007 20:54:17 +0000 Subject: [PATCH] Fixed reading of counters' hardware and software save registers. --- comedi/drivers/ni_mio_common.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/comedi/drivers/ni_mio_common.c b/comedi/drivers/ni_mio_common.c index 8072c71e..5e75ac90 100644 --- a/comedi/drivers/ni_mio_common.c +++ b/comedi/drivers/ni_mio_common.c @@ -3134,6 +3134,18 @@ unsigned ni_gpct_to_stc_register(enum ni_gpct_register reg) case NITIO_G1_Command_Reg: stc_register = G_Command_Register(1); break; + case NITIO_G0_HW_Save_Reg: + stc_register = G_HW_Save_Register(0); + break; + case NITIO_G1_HW_Save_Reg: + stc_register = G_HW_Save_Register(1); + break; + case NITIO_G0_SW_Save_Reg: + stc_register = G_Save_Register(0); + break; + case NITIO_G1_SW_Save_Reg: + stc_register = G_Save_Register(1); + break; case NITIO_G0_Mode_Reg: stc_register = G_Mode_Register(0); break; @@ -3171,6 +3183,7 @@ unsigned ni_gpct_to_stc_register(enum ni_gpct_register reg) stc_register = Joint_Status_2_Register; break; default: + rt_printk("%s: unhandled register 0x%x in switch.\n", __FUNCTION__, reg); BUG(); return 0; break; -- 2.26.2