Re #2239: PPM output type added for 9XR-PRO (open drain or push-pull)

This commit is contained in:
Damjan Adamic
2015-05-04 20:35:29 +02:00
parent 1609b1236d
commit 60b2a378dd
20 changed files with 198 additions and 25 deletions
+6 -1
View File
@@ -43,7 +43,12 @@ void module_output_active()
pioptr->PIO_ABCDSR[1] |= PIO_PA17 ; // Peripheral C
pioptr->PIO_PDR = PIO_PA17 ; // Disable bit A17 Assign to peripheral
#if defined(REVX)
pioptr->PIO_MDER = PIO_PA17 ; // Open Drain O/p in A17
if (g_model.moduleData[EXTERNAL_MODULE].ppmOutputType) {
pioptr->PIO_MDDR = PIO_PA17 ; // Push Pull O/p in A17
}
else {
pioptr->PIO_MDER = PIO_PA17 ; // Open Drain O/p in A17
}
pioptr->PIO_PUER = PIO_PA17 ; // With pull up
#endif
}