dtcm

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package dtcm allows to allocate variables and slices of arbitrary type in the DTCM memory. The allocation is permanent (there is no way to free allocated memory).

The actual size of DTCM is determined by the plugin code in the mbr.img. See tools/imxmbr for more information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeSlice

func MakeSlice[T any](align uintptr, len, cap int) (slice []T)

MakeSlice works like make([]T, len, cap) but guarantees that the returned slice has the given alignmet. Align must be a power of two.

func New

func New[T any](align uintptr) (ptr *T)

New works like new(T) but guarantees that the allocated variable has the given alignmet. Align must be a power of two.

Types

This section is empty.

Jump to

Keyboard shortcuts

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