Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8609

General • Re: Raspberry Pico - Tinygo - using SVD files to program

$
0
0
Likely, you could slightly rewrite "PEEK"s and "POKE"s such as

Code:

vregCtrlStatus := rp.VREG_AND_CHIP_RESET.VREG.Get()
by using the Get and Set functions/methods from tinygo/src/device/rp/rp2040.go that are auto-generated from SVD

Code:

vregCtrlStatus := rp.VREG_AND_CHIP_RESET.GetVREG_VSEL()
.

While writing similar code to overclock RPi Pico 2W boards, I just noticed that some types/objects in tinygo/src/device/rp/rp2350.go were renamed or are new, e.g. the code above ported to RP2350 is

Code:

vregCtrlStatus := rp.POWMAN.GetVREG_VSEL()
.

Statistics: Posted by hb9cwp — Thu Jul 17, 2025 11:54 am



Viewing all articles
Browse latest Browse all 8609

Trending Articles