I did some modification from radio test example. But I don't know why the function "rand8" never ending. In the function, rand8,
NRF_RNG->EVENTS_VALRDY = 0;
while (NRF_RNG->EVENTS_VALRDY == 0)
{
// Do nothing.
}
return NRF_RNG->VALUE;
NRF_RNG->EVENTS_VALRDY is still 0 forever... Can anybody tell be why?? Thank you.