Updated to follow the mocks

This commit is contained in:
jakeg00dwin 2024-07-26 18:17:53 -07:00
parent f536024959
commit 29426ad4a5
2 changed files with 13 additions and 0 deletions

View File

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

View File

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