X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=app%2Ftriface%2Fhw%2Fhw_ser.h;h=e51824d5dd8ba667540fcaea7bde8d5f3b38c84c;hb=6b7a2e7b20bc7fe05a61c17d6d96eb70c67a09c9;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=5f3952176a4e9a00ca8dd5ec4a6b994958f89e0a;p=bertos.git diff --git a/app/triface/hw/hw_ser.h b/app/triface/hw/hw_ser.h index e69de29b..e51824d5 100644 --- a/app/triface/hw/hw_ser.h +++ b/app/triface/hw/hw_ser.h @@ -0,0 +1,52 @@ +/** + * \file + * + * + * \brief Macro for STROBE signal + * + * \version $Id$ + * + * \author Manuele Fanelli + */ + +#ifndef HW_SER_H +#define HW_SER_H + +#include "cfg/cfg_ser.h" + +#if CONFIG_SER_STROBE + + #define SER_STROBE_ON do {PORTC |= BV(0);} while(0) + #define SER_STROBE_OFF do {PORTC &= ~BV(0);} while(0) + #define SER_STROBE_INIT do {DDRC |= BV(0); } while(0) +#endif + +#endif //HW_SER_H