This is the Clock Subsystem.
- Todo:
- Implement Clock Subsystem for better support for Power Mangement
◆ clock_deinit()
int32_t clock_deinit |
( |
struct clock * |
clk | ) |
|
Deinit Clock
- Parameters
-
- Returns
- -1 on error 0 on ok
◆ clock_getCPUSpeed()
int64_t clock_getCPUSpeed |
( |
struct clock * |
clk | ) |
|
Get CPU Clock Speed
- Parameters
-
- Returns
- -1 on error >= 0 CPU Speed in Hz
◆ clock_getPeripherySpeed()
int64_t clock_getPeripherySpeed |
( |
struct clock * |
clk, |
|
|
uint32_t |
id |
|
) |
| |
Get Periphery Clock Speed
- Parameters
-
clk | CLock Instance |
id | Periphery Clock ID |
- Returns
- -1 on error >= 0 Periphery Speed in Hz
◆ clock_init()
struct clock* clock_init |
( |
| ) |
|
Clock Init
- Returns
- Clock Instance or Null on error