Add more wrapper functions to hide more of the raw register accesses

This commit is contained in:
Karl Palsson
2011-03-13 19:49:07 +00:00
parent cb92166dcd
commit effe217111
5 changed files with 35 additions and 12 deletions

View File

@@ -36,7 +36,7 @@ void interrupt_routine() {
byte last_interrupt = mrf.read_short(MRF_INTSTAT);
// we don't care about the rx acks, but we need them to be flushed so it can keep receiving
if (last_interrupt & MRF_I_RXIF) {
mrf.write_short(MRF_RXFLUSH, 0x01);
mrf.rx_flush();
}
}