Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: DISCO_IOT-wifi_client
Fork of stm-spirit1-rf-driver by
Diff: SimpleSpirit1.h
- Revision:
- 31:a4d8072139f2
- Parent:
- 30:9c6dcfc47619
--- a/SimpleSpirit1.h Fri Nov 18 13:35:27 2016 +0100
+++ b/SimpleSpirit1.h Mon Nov 21 09:41:37 2016 +0100
@@ -16,6 +16,10 @@
#include "spirit1-const.h"
+// betzw: enable beyond macro if you want debug messages also from IRQ handler
+#define DEBUG_IRQ
+
+
/*** Macros from Cube Implementation ***/
#define CLEAR_TXBUF() (spirit_tx_len = 0)
#define IS_RXBUF_EMPTY() (spirit_rx_len == 0)
@@ -75,7 +79,7 @@
void rx_timeout_handler(void) {
set_ready_state();
cmd_strobe(SPIRIT1_STROBE_RX);
-#ifndef NDEBUG
+#ifdef DEBUG_IRQ
debug("\n\r%s (%d)\n\r", __func__, __LINE__);
#endif
}
