From 597019b98aedec4b14e93f685418d00cfc740ca8 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 16 Apr 2019 17:01:00 +0200 Subject: [PATCH] revert --- armsrc/fpgaloader.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/armsrc/fpgaloader.c b/armsrc/fpgaloader.c index 04c49edd2..b7554f6a0 100644 --- a/armsrc/fpgaloader.c +++ b/armsrc/fpgaloader.c @@ -449,8 +449,8 @@ void FpgaWriteConfWord(uint8_t v) { // the samples from the ADC always flow through the FPGA. //----------------------------------------------------------------------------- void SetAdcMuxFor(uint32_t whichGpio) { - /* - #ifndef WITH_FPC + +#ifndef WITH_FPC // When compiled without FPC support AT91C_BASE_PIOA->PIO_OER = GPIO_MUXSEL_HIPKD | @@ -469,14 +469,13 @@ void SetAdcMuxFor(uint32_t whichGpio) { LOW(GPIO_MUXSEL_HIRAW); LOW(GPIO_MUXSEL_LORAW); - #else - */ +#else // FPC serial uses HIRAW/LOWRAW pins, so they are excluded here. AT91C_BASE_PIOA->PIO_OER = GPIO_MUXSEL_HIPKD | GPIO_MUXSEL_LOPKD; AT91C_BASE_PIOA->PIO_PER = GPIO_MUXSEL_HIPKD | GPIO_MUXSEL_LOPKD; LOW(GPIO_MUXSEL_HIPKD); LOW(GPIO_MUXSEL_LOPKD); -//#endif +#endif HIGH(whichGpio); }