mirror of
https://github.com/CTCaer/hekate.git
synced 2024-12-25 15:17:19 +00:00
bdk: timer: restore rtc timer spinlock
This commit is contained in:
parent
1849ac6667
commit
14413ae6bd
@ -25,6 +25,8 @@
|
|||||||
#define EXCP_TYPE_ADDR 0x4003FFF8
|
#define EXCP_TYPE_ADDR 0x4003FFF8
|
||||||
#define EXCP_TYPE_WDT 0x544457 // "WDT".
|
#define EXCP_TYPE_WDT 0x544457 // "WDT".
|
||||||
|
|
||||||
|
#define USE_RTC_TIMER
|
||||||
|
|
||||||
u32 get_tmr_s()
|
u32 get_tmr_s()
|
||||||
{
|
{
|
||||||
(void)RTC(APBDEV_RTC_MILLI_SECONDS);
|
(void)RTC(APBDEV_RTC_MILLI_SECONDS);
|
||||||
@ -118,4 +120,4 @@ bool watchdog_fired()
|
|||||||
{
|
{
|
||||||
// Return if watchdog got fired. User handles clearing.
|
// Return if watchdog got fired. User handles clearing.
|
||||||
return (*(u32 *)EXCP_TYPE_ADDR == EXCP_TYPE_WDT);
|
return (*(u32 *)EXCP_TYPE_ADDR == EXCP_TYPE_WDT);
|
||||||
}
|
}
|
||||||
|
@ -29,8 +29,6 @@
|
|||||||
#include <storage/sd.h>
|
#include <storage/sd.h>
|
||||||
#include <utils/util.h>
|
#include <utils/util.h>
|
||||||
|
|
||||||
#define USE_RTC_TIMER
|
|
||||||
|
|
||||||
u8 bit_count(u32 val)
|
u8 bit_count(u32 val)
|
||||||
{
|
{
|
||||||
u8 cnt = 0;
|
u8 cnt = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user