lib/application/sys_clock/system_clock.h¶
System timing primitives and delay helpers. More...
Detailed Description¶
System timing primitives and delay helpers.
Author: Charliechen114514 (chengh1922@mails.jlu.edu.cn)
Version: 0.1
Date: 2025-03-30
Note: Units are explicitly milliseconds (ms) and microseconds (us).
Copyright: Copyright © 2025
This header exposes minimal timing helpers used throughout the application code for short, platform-dependent delays. The concrete behavior (blocking, sleep, busy-wait, tick resolution) depends on the platform-specific implementation behind these APIs.
Implementations should document any real-time or concurrency restrictions (for example, whether the functions may be called from interrupt context). Consumers of these APIs should avoid long blocking delays in time-critical or interrupt contexts.
Source code¶
#ifndef SYSCLK_H
#define SYSCLK_H
#include <stdint.h>
void system_delay_ms(uint32_t delay_ms);
void system_delay_us(uint32_t us);
#endif /* SYSCLK_H */
Updated on 2026-02-03 at 13:21:55 +0000