1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-10-29 23:11:44 +00:00

bdk: timer: restore rtc timer spinlock

This commit is contained in:
CTCaer 2024-10-10 18:22:03 +03:00
parent 1849ac6667
commit 14413ae6bd
2 changed files with 3 additions and 3 deletions

View file

@ -25,6 +25,8 @@
#define EXCP_TYPE_ADDR 0x4003FFF8
#define EXCP_TYPE_WDT 0x544457 // "WDT".
#define USE_RTC_TIMER
u32 get_tmr_s()
{
(void)RTC(APBDEV_RTC_MILLI_SECONDS);
@ -118,4 +120,4 @@ bool watchdog_fired()
{
// Return if watchdog got fired. User handles clearing.
return (*(u32 *)EXCP_TYPE_ADDR == EXCP_TYPE_WDT);
}
}

View file

@ -29,8 +29,6 @@
#include <storage/sd.h>
#include <utils/util.h>
#define USE_RTC_TIMER
u8 bit_count(u32 val)
{
u8 cnt = 0;