mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
as3525v2: RTC alarm
A specific poweroff function needs to be used for wake-up to work Disable RTC in bootloaders for consistency with other Sansas git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26243 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2e004fd404
commit
172fc967b0
6 changed files with 131 additions and 4 deletions
|
|
@ -26,6 +26,14 @@
|
|||
|
||||
void power_off(void)
|
||||
{
|
||||
#ifdef HAVE_RTC_ALARM
|
||||
/* as3543 RTC wake-up needs a specific power down */
|
||||
|
||||
extern void rtc_alarm_poweroff(void); /* in drivers/rtc/rtc_as3514.c */
|
||||
|
||||
rtc_alarm_poweroff(); /* will return if wake-up isn't enabled */
|
||||
#endif /* HAVE_RTC_ALARM */
|
||||
|
||||
/* clear bit 0 of system register */
|
||||
ascodec_write(AS3514_SYSTEM, ascodec_read(AS3514_SYSTEM) & ~1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue