+void carrier(){
+ // Set the system clock source to HS XOSC and max CPU speed,
+ // ref. [clk]=>[clk_xosc.c]
+ SLEEP &= ~SLEEP_OSC_PD;
+ while( !(SLEEP & SLEEP_XOSC_S) );
+ CLKCON = (CLKCON & ~(CLKCON_CLKSPD | CLKCON_OSC)) | CLKSPD_DIV_1;
+ while (CLKCON & CLKCON_OSC);
+ SLEEP |= SLEEP_OSC_PD;
+
+
+ /* Setup radio with settings from SmartRF® Studio. The default settings are
+ * used, except that "unmodulated" is chosen in the "Simple RX tab". This
+ * results in an umodulated carrier with a frequency of approx. 2.433 GHz.
+ */
+ //FSCTRL1 = 0x0A; // Frequency synthesizer control.
+ //FSCTRL0 = 0x00; // Frequency synthesizer control.
+