mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 19:17:47 +00:00
bd7ab8ddd5
The LEDs and button work; I haven't tested the SPI and I2C configuration.
16 lines
421 B
Go
16 lines
421 B
Go
//go:build stm32f4 && (stm32f405 || stm32f407)
|
|
// +build stm32f4
|
|
// +build 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
|