From: qwert Date: Fri, 25 Jul 2008 14:44:26 +0000 (+0000) Subject: Add new configuration for strobe signal X-Git-Tag: 2.0.0~419 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=832d9009410297fe723c341c9cf123ab7fc36957;p=bertos.git Add new configuration for strobe signal git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1515 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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