PebbleOS v4.47.0-1312-gf1984a001
Loading...
Searching...
No Matches
QEMU timer

Clock source on the 1 kHz counter of the QEMU RTC. More...

Macros

#define PBL_TIMER_QEMU_DEFINE(sym, _name, _base)
 Define the clock source of a QEMU RTC.
 

Detailed Description

Clock source on the 1 kHz counter of the QEMU RTC.

Macro Definition Documentation

◆ PBL_TIMER_QEMU_DEFINE

#define PBL_TIMER_QEMU_DEFINE (   sym,
  _name,
  _base 
)
Value:
PBL_DEVICE_INSTANCE(sym, struct pbl_timer_qemu, struct pbl_clocksource, cs) { \
.cs = PBL_CLOCKSOURCE_INIT(sym, _name, pbl_timer_qemu_init, nullptr, &pbl_timer_qemu_ops, 32), \
.base = (_base), \
}
#define PBL_DEVICE_STATE_DEFINE(sym)
Define the runtime state of device instance sym.
Definition device.h:132
Clock source: a free-running counter.
Definition timer.h:52
#define PBL_CLOCKSOURCE_INIT(sym, _name, _init, _parent, _ops, _bits)
Clock source initializer.
Definition timer.h:95

Define the clock source of a QEMU RTC.

Parameters
symSymbol.
_nameName.
_baseBase address.