rtcst

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package rtcst implements a tickless system timer using the real time counter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ISR

func ISR()

func Setup

func Setup(st *rtc.Periph, ccn int)

Setup setups st as system timer using ccn compare channel number. Usually rtc.RTC1 and channel number 0 is used. Setup accepts st at its reset state or configured before for other purposes. For its needs it uses only rtc.OVRFLW and rtc.COMPARE(ccn) events and can work with any prescaler set before (avoid prescaler values that cause tick period > 1 ms). Setup starts st by triggering rtc.START task but accepts RTC started before. It setups st.IRQ() priority in NVIC and enables IRQ handling.

Types

This section is empty.

Jump to

Keyboard shortcuts

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