forked from len0rd/rockbox
Sansa Connect: Implement RTC functionality
Use 32-bit monotime AVR counter for time tracking. Set the time by adding fixed offset to the counter value. Store the offset in rockbox directory to make it persistent between reboots. Do not implement alarm functionality as wakeup is only possible from sleep and not from complete power off. Change-Id: I615c7eb4df8ab0619dcbfcff107bc7051a15aace
This commit is contained in:
parent
635ec5bbbd
commit
3738510953
4 changed files with 176 additions and 25 deletions
|
|
@ -348,6 +348,7 @@ Lyre prototype 1 */
|
|||
#define RTC_STM41T62 21 /* ST M41T62 */
|
||||
#define RTC_JZ4760 22 /* Ingenic Jz4760 */
|
||||
#define RTC_X1000 23 /* Ingenic X1000 */
|
||||
#define RTC_CONNECT 24 /* Sansa Connect AVR */
|
||||
|
||||
/* USB On-the-go */
|
||||
#define USBOTG_M66591 6591 /* M:Robe 500 */
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@
|
|||
//#define HW_SAMPR_CAPS SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 | SAMPR_CAP_8
|
||||
|
||||
/* define this if you have a real-time clock */
|
||||
//#define CONFIG_RTC RTC_STM41T62
|
||||
#define CONFIG_RTC RTC_CONNECT
|
||||
|
||||
/* define this if the unit uses a scrollwheel for navigation */
|
||||
#define HAVE_SCROLLWHEEL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue