#include <sw_types.h>#include <sw_board.h>#include <sw_debug.h>#include <global.h>#include <cpu.h>#include <gic.h>#include <secure_timer.h>Go to the source code of this file.
Functions | |
| void | timer_init (void) |
| Init secure kernel timer. | |
| void | enable_timer (void) |
| Enable secure kernel timer. | |
| void | disable_timer (void) |
| Disable secure kernel timer. | |
| void | trigger_tick (u64 usecs) |
| This function writes the number of clockcycles to be expired before the next tick to the tick timer and enables the tick timer. | |
| u64 | clockcycles_to_timeval (u32 clockcycles) |
| This function converts the clockcycles to time in seconds and nanoseconds This function definition depends on clock used. | |
| u64 | timeval_to_clockcycles (timeval_t *time) |
| It converts the time (seconds and nanoseconds) to the number of clockcycles. | |
| void | emulate_timer_irq (void) |
| Emulate timer IRQ functionality. | |
| void | schedule (void) |
| Invoke scheduler. | |
This function converts the clockcycles to time in seconds and nanoseconds This function definition depends on clock used.
| clockcycles |
Definition at line 113 of file cpu_api.c.
| void disable_timer | ( | void | ) |
Disable secure kernel timer.
This function disables the secure kernel timer
| void emulate_timer_irq | ( | void | ) |
Emulate timer IRQ functionality.
Definition at line 209 of file cpu_api.c.
| void enable_timer | ( | void | ) |
Enable secure kernel timer.
This function enables the secure kernel timer
| void schedule | ( | void | ) |
Invoke scheduler.
This function invokes the scheduler to schedule the next ready task
| void timer_init | ( | void | ) |
It converts the time (seconds and nanoseconds) to the number of clockcycles.
| time |
Definition at line 167 of file cpu_api.c.
| void trigger_tick | ( | u64 | usecs | ) |
This function writes the number of clockcycles to be expired before the next tick to the tick timer and enables the tick timer.
| usecs |
Definition at line 89 of file cpu_api.c.
1.8.2