aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/testapp1/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testapp1/main.c b/src/testapp1/main.c
index e84549d..ef14019 100644
--- a/src/testapp1/main.c
+++ b/src/testapp1/main.c
@@ -76,7 +76,11 @@ int main ( void )
{
/* Enable PTT output on PB0 */
PORTB = PORTB_PTT;
+#if PTT_LOGIC_LOW
DDRB = PORTB_PTT;
+#else
+ DDRB = 0;
+#endif
/* initialise timer interrupt */
inittimer();