github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/machine/machine_stm32f40x.go (about) 1 //go:build stm32f4 && (stm32f405 || stm32f407) 2 3 package machine 4 5 func CPUFrequency() uint32 { 6 return 168000000 7 } 8 9 // Internal use: configured speed of the APB1 and APB2 timers, this should be kept 10 // in sync with any changes to runtime package which configures the oscillators 11 // and clock frequencies 12 const APB1_TIM_FREQ = 42000000 * 2 13 const APB2_TIM_FREQ = 84000000 * 2