int main() { char buf[10] = {0x61, 0xAA, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xdd}; rf233_init(); while (1) { rf233_send(buf, 10); delay_ms(10); rf233_sleep(); delay_ms(1000); rf233_on(); delay_ms(10000); } //while(1) {} }
/* * Hard, brute reset of radio core and re-init due to it being in unknown, * unexpected, or locked state from which we cannot recover in the usual places. * Does a full reset and re-init. */ static void radiocore_hard_recovery(void) { rf233_init(); }