#include <byteorder.h>
#include <endian.h>
#include <io.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <types.h>
◆ __usdelay()
◆ get_arch_counter()
| static uint64_t get_arch_counter |
( |
void |
| ) |
|
|
inlinestatic |
◆ mdelay()
Delay execution for a specified number of milliseconds.
This function converts milliseconds to microseconds and calls the udelay function to implement the delay.
- Parameters
-
| ms | Number of milliseconds to delay. |
◆ raise()
◆ time_ms()
Get the current time in milliseconds.
This function calculates the current time based on the architecture counter and returns it in milliseconds.
- Returns
- Current time in milliseconds.
This function calculates the current time by dividing the architecture counter value by the current HOSC frequency (in MHz) scaled to milliseconds.
- Returns
- Current time in milliseconds.
◆ time_us()
Get the current time in microseconds.
This function calculates the current time based on the architecture counter and returns it in microseconds.
- Returns
- Current time in microseconds.
This function calculates the current time by dividing the architecture counter value by the current HOSC frequency (in MHz).
- Returns
- Current time in microseconds.
◆ udelay()