/* libhw/rp2040_hwtimer.h - implementation for the RP2040's hardware timer * * Copyright (C) 2024-2025 Luke T. Shumaker * SPDX-License-Identifier: AGPL-3.0-or-later */ #ifndef _LIBHW_RP2040_HWTIMER_H_ #define _LIBHW_RP2040_HWTIMER_H_ #include /** * The RP2040 has one system "timer" with 4 alarm interrupts. */ enum rp2040_hwalarm_instance { RP2040_HWALARM_0 = 0, RP2040_HWALARM_1 = 1, RP2040_HWALARM_2 = 2, RP2040_HWALARM_3 = 3, _RP2040_HWALARM_NUM, }; lo_interface alarmclock rp2040_hwtimer(enum rp2040_hwalarm_instance alarm_num); #endif /* _LIBHW_RP2040_HWTIMER_H_ */