#endif
-/**
- * \def CONFIG_SER_STROBE
- *
- * This is a debug facility that can be used to
- * monitor SER interrupt activity on an external pin.
- *
- * To use strobes, redefine the macros SER_STROBE_ON,
- * SER_STROBE_OFF and SER_STROBE_INIT and set
- * CONFIG_SER_STROBE to 1.
- */
-#if !defined(CONFIG_SER_STROBE) || !CONFIG_SER_STROBE
- #define SER_STROBE_ON do {/*nop*/} while(0)
- #define SER_STROBE_OFF do {/*nop*/} while(0)
- #define SER_STROBE_INIT do {/*nop*/} while(0)
-#endif
-
-
/* From the high-level serial driver */
extern struct Serial *ser_handles[SER_CNT];
#ifndef HW_SER_H
#define HW_SER_H
+#include "cfg/cfg_ser.h"
+
+#if CONFIG_SER_STROBE
+ #warning FIXME: this is an example implementation, you must implement it
+
+ #define SER_STROBE_INIT do { /* implement me */ } while (0)
+ #define SER_STROBE_ON do { /* implement me */ } while (0)
+ #define SER_STROBE_OFF do { /* implement me */ } while (0)
+#else
+ #define SER_STROBE_INIT /* nothing */
+ #define SER_STROBE_ON /* nothing */
+ #define SER_STROBE_OFF /* nothing */
+#endif
+
#endif /* HW_SER_H */