init

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package init when imported configures the whole system for typical usage assuming it's RPI Pico 2 compatible, that is, it's clocked from 12 MHz crystal, the XIP QSPI Flash supports 133 MHz clock, the IOVDD >= 2.5 V. Both the CPU and Flash are configured to run at conservative 125 MHz. The RISCV platform timer is used as the system timer.

The CPU and Flash clock can be customized by using build tags. The 133MHz build tag configures both the CPU and Flash to run at 133 MHz. The 150MHz tag sets the CPU clock to 150 MHz and the Flash clock to 75 MHz.

All peripheral drivers from the hal directory import this package to ensure proper system initialization. You can avoid any effects of importing this package by setting the nosysinit build flag.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL