mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 15:33:40 +00:00
machine: bump rp2350 CPUFrequency to 150 MHz (#4766)
Leave rp2040 speed bump to 200 MHz for a future change, because it requires bumping the core voltage as well[0]. [0] https://github.com/raspberrypi/pico-sdk/releases/tag/2.1.1
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
cpuFreq = 125 * MHz
|
||||||
_NUMBANK0_GPIOS = 30
|
_NUMBANK0_GPIOS = 30
|
||||||
_NUMBANK0_IRQS = 4
|
_NUMBANK0_IRQS = 4
|
||||||
_NUMIRQ = 32
|
_NUMIRQ = 32
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
cpuFreq = 150 * MHz
|
||||||
_NUMBANK0_GPIOS = 48
|
_NUMBANK0_GPIOS = 48
|
||||||
_NUMBANK0_IRQS = 6
|
_NUMBANK0_IRQS = 6
|
||||||
rp2350ExtraReg = 1
|
rp2350ExtraReg = 1
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func CPUFrequency() uint32 {
|
func CPUFrequency() uint32 {
|
||||||
return 125 * MHz
|
return cpuFreq
|
||||||
}
|
}
|
||||||
|
|
||||||
// clockIndex identifies a hardware clock
|
// clockIndex identifies a hardware clock
|
||||||
|
|||||||
Reference in New Issue
Block a user