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>
This commit is contained in:
parent
59ebdce605
commit
68dbbc8d41
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user