github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/machine/machine_stm32f469.go (about)

     1  //go:build stm32f4 && stm32f469
     2  
     3  package machine
     4  
     5  func CPUFrequency() uint32 {
     6  	return 180000000
     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 = 45000000 * 2
    13  const APB2_TIM_FREQ = 90000000 * 2