mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 02:33:28 +00:00
targets: add pins/setup for Arduino UNO Q board QWIIC connector
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -70,9 +70,12 @@ const (
|
|||||||
UART2_TX_PIN = PG7
|
UART2_TX_PIN = PG7
|
||||||
UART2_RX_PIN = PG8
|
UART2_RX_PIN = PG8
|
||||||
|
|
||||||
// I2C pins
|
// I2C pins, also connected to I2C2
|
||||||
I2C0_SCL_PIN = D20
|
I2C0_SCL_PIN = D20
|
||||||
I2C0_SDA_PIN = D21
|
I2C0_SDA_PIN = D21
|
||||||
|
// QWIIC connector pins, also connected to I2C4
|
||||||
|
I2C1_SCL_PIN = PD12
|
||||||
|
I2C1_SDA_PIN = PD13
|
||||||
|
|
||||||
// SPI pins
|
// SPI pins
|
||||||
SPI1_SCK_PIN = PA5
|
SPI1_SCK_PIN = PA5
|
||||||
@@ -110,6 +113,13 @@ var (
|
|||||||
}
|
}
|
||||||
I2C0 = I2C2
|
I2C0 = I2C2
|
||||||
|
|
||||||
|
// I2C4 is is connected to the QWIIC connector, alias to I2C1 as well
|
||||||
|
I2C4 = &I2C{
|
||||||
|
Bus: stm32.I2C4,
|
||||||
|
AltFuncSelector: AF4_I2C1_2_3_4,
|
||||||
|
}
|
||||||
|
I2C1 = I2C4
|
||||||
|
|
||||||
// SPI1 is documented, alias to SPI0 as well
|
// SPI1 is documented, alias to SPI0 as well
|
||||||
SPI1 = &SPI{
|
SPI1 = &SPI{
|
||||||
Bus: stm32.SPI1,
|
Bus: stm32.SPI1,
|
||||||
|
|||||||
Reference in New Issue
Block a user