nrf: I2C interface

Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
Ron Evans
2018-10-03 20:34:22 +02:00
committed by Ayke van Laethem
parent 8f7b7e6ee3
commit e4fa1a8288
5 changed files with 110 additions and 13 deletions
+9
View File
@@ -0,0 +1,9 @@
// +build avr nrf
package machine
// TWI_FREQ is the I2C bus speed. Normally either 100 kHz, or 400 kHz for high-speed bus.
const (
TWI_FREQ_100KHZ = 100000
TWI_FREQ_400KHZ = 400000
)