atsame5x: add support for CAN

This commit is contained in:
sago35
2021-04-18 18:18:59 +09:00
committed by Ron Evans
parent 9f5066aa6f
commit e7c6bd3730
12 changed files with 682 additions and 5 deletions
+15
View File
@@ -0,0 +1,15 @@
// +build feather_m4_can
package main
import (
"machine"
)
func init() {
// power on the CAN Transceiver
// https://learn.adafruit.com/adafruit-feather-m4-can-express/pinouts#can-bus-3078990-8
boost_en := machine.BOOST_EN
boost_en.Configure(machine.PinConfig{Mode: machine.PinOutput})
boost_en.High()
}