#include "driver.h" #include #include namespace driver { namespace { Mrf24j *mrf; } void init(Mrf24j *mrf) { driver::mrf = mrf; SPI_PORT |= (1<interrupt_handler(); // mrf24 object interrupt routine mrf->check_flags(); } }