application: fix multiplexer pinout
This commit is contained in:
parent
155c9eb093
commit
0d901e2dd8
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue