summaryrefslogtreecommitdiffstats
path: root/firmware/export
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-01-31 11:05:13 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-04-11 18:02:26 +0200
commit6984a7ce1535422891ce4de57070cc55a486d352 (patch)
tree1f585e50cac0dd3ef4b713c2156d6c501b82f7bf /firmware/export
parent02d347bc6f6e37ead72986436a6fffdeafeec484 (diff)
downloadrockbox-6984a7ce1535422891ce4de57070cc55a486d352.tar.gz
rockbox-6984a7ce1535422891ce4de57070cc55a486d352.tar.bz2
rockbox-6984a7ce1535422891ce4de57070cc55a486d352.zip
RTC: Add support RTC alarms on hosted targets
Only AGPTeck Rocker is enabled for now, and it doesn't work properly: * No generic way to determine wakeup reason under Linux * No generic way to be asynchronously notified if the alarm is triggered when we're already awake * Shutting down may clobber RTC wakeup (driver/etc dependent) And finally: * AGPTek kernel's RTC driver has some 24h clock and some timezone-related issues. So, the infrastructure is arguably useful, but the only applicable hardware I have is pathologically brain-dead. Change-Id: Iac6a26a9b6e4efec5d0b3030b87f456eb23fc01d
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config/agptekrocker.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/export/config/agptekrocker.h b/firmware/export/config/agptekrocker.h
index 372287f4b5..6b012730c0 100644
--- a/firmware/export/config/agptekrocker.h
+++ b/firmware/export/config/agptekrocker.h
@@ -66,6 +66,9 @@
/* define this if you have a real-time clock */
#define CONFIG_RTC APPLICATION
+/* Define if the device can wake from an RTC alarm */
+#define HAVE_RTC_ALARM
+
/* The number of bytes reserved for loadable codecs */
#define CODEC_SIZE 0x80000