stm32: add minimal stm32wlex5 / lorae5 target

credit to ofauchon
This commit is contained in:
Kenneth Bell
2021-11-11 10:56:05 +00:00
committed by Ron Evans
parent 339301b709
commit 62d4a6a77f
17 changed files with 582 additions and 6 deletions
@@ -0,0 +1,27 @@
//go:build stm32wle5
// +build stm32wle5
package machine
import (
"device/stm32"
"runtime/volatile"
)
func getEXTIConfigRegister(pin uint8) *volatile.Register32 {
switch (pin & 0xf) / 4 {
case 0:
return &stm32.SYSCFG.EXTICR1
case 1:
return &stm32.SYSCFG.EXTICR2
case 2:
return &stm32.SYSCFG.EXTICR3
case 3:
return &stm32.SYSCFG.EXTICR4
}
return nil
}
func enableEXTIConfigRegisters() {
// No registers to enable
}