From a926cc383639296fd10e9434c2f579d4fb02e0aa Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Sat, 27 Jul 2024 09:28:17 -0700 Subject: [PATCH] setup usage of the new ReadReg function. --- src/ADC/ADC.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ADC/ADC.c b/src/ADC/ADC.c index 2129129..44e41e4 100644 --- a/src/ADC/ADC.c +++ b/src/ADC/ADC.c @@ -30,8 +30,8 @@ void ADC_Init(uint8_t pin_num) if(IsInvalidPin(pin_num)){return;} //Save the porta status. - //porta_out = PORTA.OUT; - //porta_dir = PORTA.DIR; + porta_out = RegEdit_ReadReg((void *) &PORTA.OUT); + porta_dir = RegEdit_ReadReg((void *) &PORTA.DIR); //set the direction to input RegEdit_SetBit((void *) &PORTA.DIRCLR, pin_num);