Is there any way to use devmem in test code to check a register value.
I tried
uint32_t result = system("devmem 0xFFA80020");
std::cout << "result is " << result << std::endl;
assert(result == 1);
but result is always 0, even though I know the register has the value 1.
Aucun commentaire:
Enregistrer un commentaire