samd21: AO_SPI_0_PA04_PA05_PA06 is FUNC_D
authorKeith Packard <keithp@keithp.com>
Sun, 13 Nov 2022 03:38:09 +0000 (19:38 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 13 Nov 2022 03:38:09 +0000 (19:38 -0800)
Not FUNC_C

Signed-off-by: Keith Packard <keithp@keithp.com>
src/samd21/ao_spi_samd21.c

index b5ba65487d32ccdb64e67bd1bc13bea2c34306b7..aee8cb1aef33ade3a4d643faa67f78b18f611d36 100644 (file)
@@ -314,9 +314,9 @@ ao_spi_enable_pin_config(uint16_t spi_pin_config)
                ao_enable_output(&samd21_port_a, 5, 1);
                ao_enable_input(&samd21_port_a, 6, AO_MODE_PULL_NONE);
 
-               samd21_port_pmux_set(&samd21_port_a, 4, SAMD21_PORT_PMUX_FUNC_C);       /* MOSI */
-               samd21_port_pmux_set(&samd21_port_a, 5, SAMD21_PORT_PMUX_FUNC_C);       /* SCLK */
-               samd21_port_pmux_set(&samd21_port_a, 6, SAMD21_PORT_PMUX_FUNC_C);       /* MISO */
+               samd21_port_pmux_set(&samd21_port_a, 4, SAMD21_PORT_PMUX_FUNC_D);       /* MOSI */
+               samd21_port_pmux_set(&samd21_port_a, 5, SAMD21_PORT_PMUX_FUNC_D);       /* SCLK */
+               samd21_port_pmux_set(&samd21_port_a, 6, SAMD21_PORT_PMUX_FUNC_D);       /* MISO */
                break;
 #endif
 #if HAS_SPI_3