pi1

package
v0.0.0-...-d73fcdd Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: BSD-3-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package pi1 provides hardware initialization, automatically on import, for the Raspberry Pi 1 single board computer.

This package is only meant to be used with `GOOS=tamago GOARCH=arm` as supported by the TamaGo framework for bare metal Go on ARM SoCs, see https://github.com/f-secure-foundry/tamago.

Index

Constants

View Source
const (
	// Activity LED
	// change the value to 0x10 for older Pi A and Pi B boards, keep the value for newer A+ and B+ boards
	ACTIVITY = 0x2f
	// Power LED - not controllable by the CPU on older Pi A and Pi B boards, only on newer A+ and B+ boards
	POWER = 0x23
)

LED GPIO lines

Variables

View Source
var Board pi.Board = &board{}

Board provides access to the capabilities of the Pi 1.

Functions

func Init

func Init()

Init takes care of the lower level SoC initialization triggered early in runtime setup.

Types

This section is empty.

Jump to

Keyboard shortcuts

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