diff options
| author | Rafaël Carré <rafael.carre@gmail.com> | 2010-05-22 00:28:03 +0000 |
|---|---|---|
| committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-05-22 00:28:03 +0000 |
| commit | 172fc967b07f59e4928db9ca331f2f7a3a383c04 (patch) | |
| tree | c87f3d76efae7b84f0061336ed555d1e5a1f38c8 /firmware/export | |
| parent | 2e004fd4047a03e0e57bdb02a67a85a729a3caaa (diff) | |
| download | rockbox-172fc967b07f59e4928db9ca331f2f7a3a383c04.zip rockbox-172fc967b07f59e4928db9ca331f2f7a3a383c04.tar.gz rockbox-172fc967b07f59e4928db9ca331f2f7a3a383c04.tar.bz2 rockbox-172fc967b07f59e4928db9ca331f2f7a3a383c04.tar.xz | |
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
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/as3514.h | 4 | ||||
| -rw-r--r-- | firmware/export/config/sansaclipplus.h | 5 | ||||
| -rw-r--r-- | firmware/export/config/sansaclipv2.h | 5 | ||||
| -rw-r--r-- | firmware/export/config/sansafuzev2.h | 6 |
4 files changed, 17 insertions, 3 deletions
diff --git a/firmware/export/as3514.h b/firmware/export/as3514.h index e9eda62..3125372 100644 --- a/firmware/export/as3514.h +++ b/firmware/export/as3514.h @@ -96,6 +96,10 @@ extern void audiohw_set_lineout_vol(int vol_l, int vol_r); #define AS3514_SUPERVISOR 0x24 #endif +#ifdef HAVE_AS3543 +#define AS3543_WAKEUP 0x22 +#endif + /* AS3543 has 2 IRQ_ENRD registers at 0x23 and 0x24, but we don't use them * We call the real IRQ_ENRD2 register, IRQ_ENRD0, to stay compatible with * as3514, because the bits we use are the same diff --git a/firmware/export/config/sansaclipplus.h b/firmware/export/config/sansaclipplus.h index ab4408a..9382b22 100644 --- a/firmware/export/config/sansaclipplus.h +++ b/firmware/export/config/sansaclipplus.h @@ -101,9 +101,12 @@ #define HAVE_AS3514 #define HAVE_AS3543 -/* define this if you have a real-time clock */ #ifndef BOOTLOADER +/* define this if you have a real-time clock */ #define CONFIG_RTC RTC_AS3514 + +/* Define if the device can wake from an RTC alarm */ +#define HAVE_RTC_ALARM #endif /* Define this if you have a software controlled poweroff */ diff --git a/firmware/export/config/sansaclipv2.h b/firmware/export/config/sansaclipv2.h index 262ed36..3ae09b7 100644 --- a/firmware/export/config/sansaclipv2.h +++ b/firmware/export/config/sansaclipv2.h @@ -97,9 +97,12 @@ #define HAVE_AS3514 #define HAVE_AS3543 -/* define this if you have a real-time clock */ #ifndef BOOTLOADER +/* define this if you have a real-time clock */ #define CONFIG_RTC RTC_AS3514 + +/* Define if the device can wake from an RTC alarm */ +#define HAVE_RTC_ALARM #endif /* Define this if you have a software controlled poweroff */ diff --git a/firmware/export/config/sansafuzev2.h b/firmware/export/config/sansafuzev2.h index a21eb34..8b13217 100644 --- a/firmware/export/config/sansafuzev2.h +++ b/firmware/export/config/sansafuzev2.h @@ -61,10 +61,14 @@ /* define this if you can invert the colours on your LCD */ //#define HAVE_LCD_INVERT - +#ifndef BOOTLOADER /* define this if you have a real-time clock */ #define CONFIG_RTC RTC_AS3514 +/* Define if the device can wake from an RTC alarm */ +#define HAVE_RTC_ALARM +#endif + /* There is no hardware tone control */ #define HAVE_SW_TONE_CONTROLS |