setup usage of the new ReadReg function.

This commit is contained in:
jakeg00dwin 2024-07-27 09:28:17 -07:00
parent 4ab57eb948
commit a926cc3836
1 changed files with 2 additions and 2 deletions

View File

@ -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);