set_gpio_callback(rf_rx_calback, &cc1101_gdo0, EDGE_RISING);
#ifdef DEBUG
- uprintf(UART0, "CC1101 RF link init done.\n");
+ uprintf(UART0, "## CC1101 RF link init done.\n");
#endif
}
cc1101_enter_rx_mode();
#ifdef DEBUG
- uprintf(UART0, "RF: ret:%d, st: %d.\n", ret, status);
+ uprintf(UART0, "## RF: ret:%d, st: %d.\n", ret, status);
#endif
if (ret > 0) {
#ifdef DEBUG
- uprintf(UART0, "## RF Data :\n");
+ uprintf(UART0, "## RF Data:\n");
#endif
for (i = 0; i < ret; i++) {
uprintf(UART0, "%c", data[i]);
ret = cc1101_send_packet(cc_tx_data, tx_len);
#ifdef DEBUG
- uprintf(UART0, "Tx ret: %d\n", ret);
+ uprintf(UART0, "## RF Tx ret: %d\n", ret);
#endif
}
cc1101_flush_rx_fifo();
}
#ifdef DEBUG
- uprintf(UART0, "Back to Rx\n");
+ uprintf(UART0, "## RF Back to Rx\n");
#endif
cc1101_enter_rx_mode();
loop = 0;