cmst

package
v0.0.0-...-168ccc2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package cmst implements ticking OS timer using Cortex-M SysTick timer. It can be used only in uniprocessor system and is not recomended for low power applications.

Index

Constants

This section is empty.

Variables

View Source
var SysTickVector = sysTickHandler

c:__attribute__((section(".SysTick")))

Functions

func Nanosec

func Nanosec() int64

Nanosec: see syscall.SetSysClock.

func SetWakeup

func SetWakeup(ns int64)

SetWakeup: see syscall.SetSysTimer.

func Setup

func Setup(periodns, hz uint, external bool)

Setup setups SysTick to work as sytem timer.

periodns - number of nanoseconds between interrupts,
hz       - frequency of SysTick clock source,
external - false: SysTick uses CPU clock; true: SysTick uses external clock.

Setup must be run in privileged mode.

Types

This section is empty.

Jump to

Keyboard shortcuts

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