hollyhock
Loading...
Searching...
No Matches
misc.h File Reference

Uncategorized functions. More...

Go to the source code of this file.

Variables

int(* Battery_GetVoltage )()
void(* ETMU_Sleep )(unsigned ms)

Detailed Description

Uncategorized functions.

If they dont fit anywhere else but are too few to make a new header

Variable Documentation

◆ Battery_GetVoltage

int(* Battery_GetVoltage) () ( )
extern

Queries the ADC for the current battery voltage.

Interpret the return value as x.xx V.

Returns
The voltage in cV.

◆ ETMU_Sleep

void(* ETMU_Sleep) (unsigned ms) ( unsigned ms)
extern

Spinwaits using external timer unit 5 (ETMU5). Useful for communication via USB.

Parameters
msSleep duration in milliseconds