Esp32s3 i2c interface (#5210)

* esp32s3-i2c implement interface

* esp32s3-i2c: disable m5stamp_c3

* added simple tests without Listen

* replace smoke tests

* esp32s3-i2c: fix allocation in tx
This commit is contained in:
Dima
2026-02-21 21:23:03 +02:00
committed by deadprogram
parent 8ef4af45d7
commit 180220a2e3
8 changed files with 411 additions and 344 deletions
+15
View File
@@ -105,6 +105,21 @@ func (p Pin) Configure(config PinConfig) {
}
}
// configure is the same as Configure, but allows setting a specific GPIO matrix signal.
func (p Pin) configure(config PinConfig, signal uint32) {
p.Configure(config)
if signal == 256 {
return
}
if config.Mode == PinOutput {
p.outFunc().Set(signal)
} else {
inFunc(signal).Set(esp.GPIO_FUNC_IN_SEL_CFG_SEL | uint32(p))
}
}
func initI2CExt1Clock() {}
// outFunc returns the FUNCx_OUT_SEL_CFG register used for configuring the
// output function selection.
func (p Pin) outFunc() *volatile.Register32 {