forked from adafruit/Adafruit_Blinka
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Google Coral support for the i2c, spi, and GPIO pins. uart adafruit#3 …
…not available and remaining pins are I2S or PWM
- Loading branch information
Showing
10 changed files
with
74 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"""Pin definitions for the Coral Edge TPU Dev board.""" | ||
|
||
from adafruit_blinka.microcontroller.nxp_imx8m import pin | ||
|
||
SDA = pin.I2C2_SDA | ||
SCL = pin.I2C2_SCL | ||
|
||
|
||
GPIO_P13 = pin.GPIO6 | ||
GPIO_P16 = pin.GPIO73 | ||
GPIO_P18 = pin.GPIO138 | ||
GPIO_P29 = pin.GPIO7 | ||
GPIO_P31 = pin.GPIO8 | ||
GPIO_P36 = pin.GPIO141 | ||
GPIO_P37 = pin.GPIO77 | ||
|
||
MISO = pin.ECSPI1_MISO | ||
MOSI = pin.ECSPI1_MOSI | ||
SCLK = pin.ECSPI1_SCLK | ||
SCK = pin.ECSPI1_SCLK | ||
SS0 = pin.ECSPI1_SS0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from adafruit_blinka.microcontroller.generic_linux.libgpiod_pin import Pin | ||
|
||
I2C2_SCL = Pin(144) # GPIO5_IO16 | ||
I2C2_SDA = Pin(145) # GPIO5_IO17 | ||
|
||
I2C3_SCL = Pin(146) # GPIO5_IO18 | ||
I2C3_SDA = Pin(147) # GPIO5_IO19 | ||
|
||
|
||
GPIO6 = Pin((0, 6)) # GPIO1_IO6 | ||
GPIO7 = Pin((0, 7)) # GPIO1_IO7 | ||
GPIO8 = Pin((0, 8)) # GPIO1_IO8 | ||
GPIO73 = Pin((2, 9)) # GPIO3_IO9 | ||
GPIO77 = Pin((2, 13)) # GPIO3_IO13 | ||
GPIO138 = Pin((4, 10)) # GPIO5_IO10 | ||
GPIO141 = Pin((4, 13)) # GPIO5_IO13 | ||
|
||
ECSPI1_MISO = Pin(136) # GPIO5_IO8 | ||
ECSPI1_MOSI = Pin(135) # GPIO5_IO7 | ||
ECSPI1_SCLK = Pin(134) # GPIO5_IO6 | ||
ECSPI1_SS0 = Pin(133) # GPIO5_IO9 | ||
|
||
|
||
i2cPorts = ( (1, I2C2_SCL, I2C2_SDA), (2, I2C3_SCL, I2C3_SDA),) | ||
# ordered as spiId, sckId, mosiId, misoId | ||
spiPorts = ( (32766, ECSPI1_SCLK, ECSPI1_MOSI, ECSPI1_MISO), ) | ||
|
||
# UART1_TXD/RXD on /dev/ttymxc0 | ||
# UART3_TXD/RXD not available (?) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters