X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fser.h;h=c264811efcad05958226d482fe5c1a471b175127;hb=8391f9676abafaa16a986b77b346f33ceb75dd6d;hp=0c61df4e52a28c8b4c368087c946022caf6c94ee;hpb=556950c69e7bd7c533c4c18fd49bae8eaafa9709;p=bertos.git diff --git a/bertos/drv/ser.h b/bertos/drv/ser.h index 0c61df4e..c264811e 100644 --- a/bertos/drv/ser.h +++ b/bertos/drv/ser.h @@ -119,6 +119,22 @@ /*\}*/ +/** + * \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 + struct SerialHardware; /** Human-readable serial error descriptions */