From 0d901e2dd8e981e2a1419d80e99278d038b3c06b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Mon, 15 Mar 2021 13:59:11 +0100 Subject: [PATCH] application: fix multiplexer pinout --- application.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application.c b/application.c index 6a7ed28..9fe5ae4 100644 --- a/application.c +++ b/application.c @@ -60,10 +60,10 @@ const uint8_t adc_channels[] = {ADC_CHANNEL17, ADC_CHANNEL(TARGET_CHANNEL), ADC_ #define TARGET_EN PA5 /**< pin to provide target voltage to LV side of voltage shifter (pulling them high through 10 kO) */ #define MUX_EN_PIN PB2 /**< pin to enable analog multiplexer (active low) */ -#define MUX_S0_PIN PA6 /**< pin to set S0 bit of analog multiplexer */ -#define MUX_S1_PIN PA7 /**< pin to set S1 bit of analog multiplexer */ -#define MUX_S2_PIN PB0 /**< pin to set S2 bit of analog multiplexer */ -#define MUX_S3_PIN PB1 /**< pin to set S3 bit of analog multiplexer */ +#define MUX_S0_PIN PB1 /**< pin to set S0 bit of analog multiplexer */ +#define MUX_S1_PIN PB0 /**< pin to set S1 bit of analog multiplexer */ +#define MUX_S2_PIN PA7 /**< pin to set S2 bit of analog multiplexer */ +#define MUX_S3_PIN PA6 /**< pin to set S3 bit of analog multiplexer */ #define CHANNEL_NUMBERS 16 /**< number of target signals */ static const uint32_t channel_ports[] = {GPIO_PORT(PB12), GPIO_PORT(PB13), GPIO_PORT(PB14), GPIO_PORT(PB15), GPIO_PORT(PA8), GPIO_PORT(PA9), GPIO_PORT(PA10), GPIO_PORT(PA15), GPIO_PORT(PB3), GPIO_PORT(PB4), GPIO_PORT(PB5), GPIO_PORT(PB6), GPIO_PORT(PB7), GPIO_PORT(PB8), GPIO_PORT(PB9), GPIO_PORT(PB10)}; /**< GPIO ports for signal pin */