From: Frank Mori Hess Date: Fri, 5 Jan 2007 20:54:17 +0000 (+0000) Subject: Fixed reading of counters' hardware and software save registers. X-Git-Tag: r0_7_74~120 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0f94100c783a4183c7b3ff55a1cc9378a00160c6;p=comedi.git Fixed reading of counters' hardware and software save registers. --- 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;