mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-17 03:03:27 +00:00
98e70c9b19
spi working with loopback SPI working apply @deadprogram's suggestions consolidate SPI board pin naming fix up SPI configuration add feather-rp2040 SPI pins add arduino connect SPI pins add SPI handle variables
28 lines
648 B
Go
28 lines
648 B
Go
// +build feather_rp2040
|
|
|
|
package machine
|
|
|
|
const (
|
|
LED = GPIO13
|
|
|
|
// Onboard crystal oscillator frequency, in MHz.
|
|
xoscFreq = 12 // MHz
|
|
)
|
|
|
|
// SPI default pins
|
|
const (
|
|
// Default Serial Clock Bus 0 for SPI communications
|
|
SPI0_SCK_PIN = GPIO18
|
|
// Default Serial Out Bus 0 for SPI communications
|
|
SPI0_SDO_PIN = GPIO19 // Tx
|
|
// Default Serial In Bus 0 for SPI communications
|
|
SPI0_SDI_PIN = GPIO20 // Rx
|
|
|
|
// Default Serial Clock Bus 1 for SPI communications
|
|
SPI1_SCK_PIN = GPIO10
|
|
// Default Serial Out Bus 1 for SPI communications
|
|
SPI1_SDO_PIN = GPIO11 // Tx
|
|
// Default Serial In Bus 1 for SPI communications
|
|
SPI1_SDI_PIN = GPIO12 // Rx
|
|
)
|