targets,runtime,machine: add support for the stm32f469-disco board

The LEDs and button work; I haven't tested the SPI and I2C
configuration.
This commit is contained in:
Elias Naur
2021-12-24 12:59:41 +01:00
committed by kenbell
parent 302e72e84f
commit bd7ab8ddd5
9 changed files with 162 additions and 11 deletions
-10
View File
@@ -616,16 +616,6 @@ func initRNG() {
stm32.RNG.CR.SetBits(stm32.RNG_CR_RNGEN)
}
func CPUFrequency() uint32 {
return 168000000
}
// Internal use: configured speed of the APB1 and APB2 timers, this should be kept
// in sync with any changes to runtime package which configures the oscillators
// and clock frequencies
const APB1_TIM_FREQ = 42000000 * 2
const APB2_TIM_FREQ = 84000000 * 2
// Alternative peripheral pin functions
const (
AF0_SYSTEM = 0