diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-29 11:42:22 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-29 11:42:22 -0600 |
commit | bcaf0bc655df337bc02c5dd78bfc3f4487103959 (patch) | |
tree | c6c3383f5a8b8832f2365c216c33e5c929653836 /libhw/rp2040_bootclock.c | |
parent | 7ff738390e55d57a0f513c467a9da3b08c6902ab (diff) |
Implement RP2040 hw alarms
Diffstat (limited to 'libhw/rp2040_bootclock.c')
-rw-r--r-- | libhw/rp2040_bootclock.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/libhw/rp2040_bootclock.c b/libhw/rp2040_bootclock.c deleted file mode 100644 index 0484910..0000000 --- a/libhw/rp2040_bootclock.c +++ /dev/null @@ -1,13 +0,0 @@ -/* libhw/rp2040_bootclock.c - <libhw/generic/bootclock.h> implementation for pico-sdk - * - * Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com> - * SPDX-License-Identifier: AGPL-3.0-or-later - */ - -#include <hardware/timer.h> /* pico-sdk:hardware_timer */ - -#include <libhw/generic/bootclock.h> - -uint64_t bootclock_get_ns(void) { - return time_us_64()*(NS_PER_S/US_PER_S); -} |