From 790073d4db97612d0440bab54153eacb5e067e09 Mon Sep 17 00:00:00 2001 From: bsongis Date: Sun, 22 Jun 2014 07:14:54 +0200 Subject: [PATCH] Fixes #1333 --- radio/src/targets/sky9x/pulses_driver.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/radio/src/targets/sky9x/pulses_driver.cpp b/radio/src/targets/sky9x/pulses_driver.cpp index 96c2c75b9..91fb799d3 100644 --- a/radio/src/targets/sky9x/pulses_driver.cpp +++ b/radio/src/targets/sky9x/pulses_driver.cpp @@ -49,9 +49,10 @@ void module_output_active() pioptr->PIO_ABCDSR[0] &= ~PIO_PA17 ; // Peripheral C pioptr->PIO_ABCDSR[1] |= PIO_PA17 ; // Peripheral C pioptr->PIO_PDR = PIO_PA17 ; // Disable bit A17 Assign to peripheral - pioptr->PIO_MDER = PIO_PA17 ; // Open Drain O/p in A17 - // pioptr->PIO_MDDR = PIO_PA17 ; // Push Pull O/p in A17 +#if defined(REVX) + pioptr->PIO_MDER = PIO_PA17 ; // Open Drain O/p in A17 pioptr->PIO_PUER = PIO_PA17 ; // With pull up +#endif }