From 172fc967b07f59e4928db9ca331f2f7a3a383c04 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Sat, 22 May 2010 00:28:03 +0000 Subject: 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 --- firmware/export/config/sansaclipplus.h | 5 ++++- firmware/export/config/sansaclipv2.h | 5 ++++- firmware/export/config/sansafuzev2.h | 6 +++++- 3 files changed, 13 insertions(+), 3 deletions(-) (limited to 'firmware/export/config') diff --git a/firmware/export/config/sansaclipplus.h b/firmware/export/config/sansaclipplus.h index ab4408afe5..9382b22cbd 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 262ed36167..3ae09b7003 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 a21eb34f94..8b13217dce 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 -- cgit v1.2.3