Re #2239: PPM output type added for 9XR-PRO (open drain or push-pull)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user