mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
- Added `sys_jiffies` with weak linking for NO_SYS configuration
This commit is contained in:
parent
f9d65a06ca
commit
04525b802e
1 changed files with 4 additions and 0 deletions
|
|
@ -71,4 +71,8 @@ void sys_arch_unprotect(__unused sys_prot_t pval) {
|
||||||
uint32_t sys_now(void) {
|
uint32_t sys_now(void) {
|
||||||
return to_ms_since_boot(get_absolute_time());
|
return to_ms_since_boot(get_absolute_time());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__weak uint32_t sys_jiffies(void) {
|
||||||
|
return time_us_32();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
Loading…
Add table
Reference in a new issue