MOS Source Code
Loading...
Searching...
No Matches
clocksource.h File Reference
#include <mos/lib/structures/list.h>
#include <mos/types.h>
+ Include dependency graph for clocksource.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  clocksource_t
 

Macros

#define active_clocksource_ticks()
 

Functions

void clocksource_register (clocksource_t *clocksource)
 
void clocksource_tick (clocksource_t *clocksource)
 

Variables

list_head clocksources
 
clocksource_tactive_clocksource
 

Macro Definition Documentation

◆ active_clocksource_ticks

#define active_clocksource_ticks ( )
Value:
clocksource_t * active_clocksource
Definition clocksource.c:8
#define READ_ONCE(x)
Definition mos_global.h:85

Definition at line 18 of file clocksource.h.

Referenced by timer_msleep(), and timer_tick().

Function Documentation

◆ clocksource_register()

void clocksource_register ( clocksource_t * clocksource)

Definition at line 10 of file clocksource.c.

Referenced by rtc_init().

+ Here is the call graph for this function:

◆ clocksource_tick()

void clocksource_tick ( clocksource_t * clocksource)

Definition at line 17 of file clocksource.c.

Referenced by rtc_irq_handler().

+ Here is the call graph for this function:

Variable Documentation

◆ clocksources

list_head clocksources
extern

Definition at line 7 of file clocksource.c.

Referenced by clocksource_register().

◆ active_clocksource

clocksource_t* active_clocksource
extern

Definition at line 8 of file clocksource.c.

Referenced by clocksource_register(), and timer_msleep().