memorymodel

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: GPL-3.0, GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package memorymodel handles differences in memory addressing For example, the Harmony family is different to the PlusCart family.

Index

Constants

View Source
const (
	Harmony  = "LPC2000"
	PlusCart = "STM32F407VGT6"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map struct {
	Model string

	FlashOrigin       uint32
	Flash32kMemtop    uint32
	Flash64kMemtop    uint32
	SRAMOrigin        uint32
	PeripheralsOrigin uint32
	PeripheralsMemtop uint32

	// specific registers addresses
	TIMERcontrol     uint32
	TIMERvalue       uint32
	TIMERprescale    uint32
	TIMERprescaleMax uint32
	APBDIV           uint32
	MAMCR            uint32
	MAMTIM           uint32
}

func NewMap

func NewMap(model string) Map

NewMap is the preferred method of initialisation for the Map type.

func (Map) IsFlash

func (mmap Map) IsFlash(addr uint32) bool

IsFlash returns true if address is in flash memory range.

Jump to

Keyboard shortcuts

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