setup usage of the new ReadReg function.
This commit is contained in:
parent
4ab57eb948
commit
a926cc3836
|
@ -30,8 +30,8 @@ void ADC_Init(uint8_t pin_num)
|
||||||
if(IsInvalidPin(pin_num)){return;}
|
if(IsInvalidPin(pin_num)){return;}
|
||||||
|
|
||||||
//Save the porta status.
|
//Save the porta status.
|
||||||
//porta_out = PORTA.OUT;
|
porta_out = RegEdit_ReadReg((void *) &PORTA.OUT);
|
||||||
//porta_dir = PORTA.DIR;
|
porta_dir = RegEdit_ReadReg((void *) &PORTA.DIR);
|
||||||
|
|
||||||
//set the direction to input
|
//set the direction to input
|
||||||
RegEdit_SetBit((void *) &PORTA.DIRCLR, pin_num);
|
RegEdit_SetBit((void *) &PORTA.DIRCLR, pin_num);
|
||||||
|
|
Loading…
Reference in New Issue