![]() |
no-OS
|
MAX78000 RISC-V (CPU1) delay and time functions. More...
#include <errno.h>#include <stdint.h>#include "no_os_delay.h"#include "maxim_core.h"#include "maxim_time.h"#include "mxc_delay.h"#include "mxc_sys.h"#include "tmr.h"Macros | |
| #define | MAXIM_TIME_TIMER MXC_TMR_GET_TMR(MAXIM_RISCV_TIME_TIMER) |
| #define | MAXIM_TIME_FREQ (ISO_FREQ / 64U) |
| #define | MAXIM_TIME_HANDLER_(id) |
| #define | MAXIM_TIME_HANDLER(id) |
Functions | |
| int | maxim_time_init (void) |
| Start the timer used as the CPU1 time base. | |
| void MAXIM_IRQ_HANDLER MAXIM_TIME_HANDLER | MAXIM_RISCV_TIME_TIMER (void) |
| Time base timer interrupt handler. | |
| void | no_os_udelay (uint32_t usecs) |
| Busy-wait for a number of microseconds. | |
| void | no_os_mdelay (uint32_t msecs) |
| Busy-wait for a number of milliseconds. | |
| struct no_os_time | no_os_get_time (void) |
| Get the time elapsed since the time base was started. | |
MAX78000 RISC-V (CPU1) delay and time functions.
Copyright 2026(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
| #define MAXIM_TIME_FREQ (ISO_FREQ / 64U) |
| #define MAXIM_TIME_HANDLER | ( | id | ) |
| #define MAXIM_TIME_HANDLER_ | ( | id | ) |
| #define MAXIM_TIME_TIMER MXC_TMR_GET_TMR(MAXIM_RISCV_TIME_TIMER) |
| void MAXIM_IRQ_HANDLER MAXIM_TIME_HANDLER MAXIM_RISCV_TIME_TIMER | ( | void | ) |
Time base timer interrupt handler.
| int maxim_time_init | ( | void | ) |
Start the timer used as the CPU1 time base.
Reserve the configured timer for CPU1 elapsed time.
| struct no_os_time no_os_get_time | ( | void | ) |
Get the time elapsed since the time base was started.
Get current time.
| void no_os_mdelay | ( | uint32_t | msecs | ) |
Busy-wait for a number of milliseconds.
Wait until msecs milliseconds passed.
| msecs | - Delay in milliseconds. |
| void no_os_udelay | ( | uint32_t | usecs | ) |
Busy-wait for a number of microseconds.
Wait until usecs microseconds passed.
| usecs | - Delay in microseconds. |