aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/machine/machine_stm32f40x.go
blob: 953c7fab4a56c45d65f51d19dbb6faf6529fcb4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//go:build stm32f4 && (stm32f405 || stm32f407)

package machine

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