diff options
author | Timofey Titovets <nefelim4ag@gmail.com> | 2025-03-22 13:10:26 +0100 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2025-03-25 18:53:46 -0400 |
commit | 68dbbc8d411d0d4961fd0837b00244a6bba1eefd (patch) | |
tree | c393c104f177e36ef40f2203cbde42ca120d442d /src/rp2040 | |
parent | 59ebdce605e4da59da066f19c7e7a9581431e6ad (diff) | |
download | kutter-68dbbc8d411d0d4961fd0837b00244a6bba1eefd.tar.gz kutter-68dbbc8d411d0d4961fd0837b00244a6bba1eefd.tar.xz kutter-68dbbc8d411d0d4961fd0837b00244a6bba1eefd.zip |
rp2040: define spi bus on pins 12,11,10
Mellow FLY SHT36 Pro toolboard uses those pins
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
Diffstat (limited to 'src/rp2040')
-rw-r--r-- | src/rp2040/spi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rp2040/spi.c b/src/rp2040/spi.c index 4cf2eb79..d2c8df95 100644 --- a/src/rp2040/spi.c +++ b/src/rp2040/spi.c @@ -29,6 +29,8 @@ DECL_ENUMERATION("spi_bus", "spi1_gpio12_gpio15_gpio14", 6); DECL_CONSTANT_STR("BUS_PINS_spi1_gpio12_gpio15_gpio14", "gpio12,gpio15,gpio14"); DECL_ENUMERATION("spi_bus", "spi1_gpio24_gpio27_gpio26", 7); DECL_CONSTANT_STR("BUS_PINS_spi1_gpio24_gpio27_gpio26", "gpio24,gpio27,gpio26"); +DECL_ENUMERATION("spi_bus", "spi1_gpio12_gpio11_gpio10", 8); +DECL_CONSTANT_STR("BUS_PINS_spi1_gpio12_gpio11_gpio10", "gpio12,gpio11,gpio10"); //Deprecated "spi0a" style mappings DECL_ENUMERATION("spi_bus", "spi0a", 0); @@ -63,6 +65,7 @@ static const struct spi_info spi_bus[] = { {spi1_hw, 8, 11, 10, RESETS_RESET_SPI1_BITS}, {spi1_hw, 12, 15, 14, RESETS_RESET_SPI1_BITS}, {spi1_hw, 24, 27, 26, RESETS_RESET_SPI1_BITS}, + {spi1_hw, 12, 11, 10, RESETS_RESET_SPI1_BITS}, }; struct spi_config |