Updated to follow the mocks
This commit is contained in:
parent
f536024959
commit
29426ad4a5
|
@ -56,3 +56,10 @@ void RegEdit_SetNum(void *reg, uint8_t num)
|
|||
uint8_t *reg_ptr = (uint8_t *)reg;
|
||||
*reg_ptr = num;
|
||||
}
|
||||
|
||||
|
||||
uint8_t RegEdit_ReadReg(void *reg)
|
||||
{
|
||||
uint8_t *reg_ptr = (uint8_t *)reg;
|
||||
return *reg_ptr;
|
||||
}
|
||||
|
|
|
@ -69,4 +69,10 @@ void RegEdit_AND_Num(void *reg, uint8_t num);
|
|||
*/
|
||||
void RegEdit_SetNum(void *reg, uint8_t num);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param reg The register address.
|
||||
*/
|
||||
uint8_t RegEdit_ReadReg(void *reg);
|
||||
|
||||
#endif //REGEDIT_H
|
||||
|
|
Loading…
Reference in New Issue