diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2017-01-26 21:08:55 -0500 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2017-11-21 07:52:02 -0500 |
commit | f4c42213062170ddfcc706b3c5ed19f47517c253 (patch) | |
tree | 65f8058970e97d939660cf1e39f844a06df66f84 /firmware/export/config.h | |
parent | 12bc24adbf919dc945928b2dcda74d51d33708f7 (diff) | |
download | rockbox-f4c42213062170ddfcc706b3c5ed19f47517c253.tar.gz rockbox-f4c42213062170ddfcc706b3c5ed19f47517c253.zip |
Convert i.MX31 and AMS target to use RTC interrupt
Instead of checking ticks, set a sticky dirty flag that indicates
that the RTC needs to be read. This gives a timely update and more
accurate readout without actually reading the RTC until it changes.
The implementation should atomically read the flag and clear it.
Setting the flag would typically happen in an RTC tick ISR.
Change-Id: I6fd325f22845029a485c502c884812d3676026ea
Diffstat (limited to 'firmware/export/config.h')
-rw-r--r-- | firmware/export/config.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index 475bd573d4..a4f0ea94fd 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -742,6 +742,16 @@ Lyre prototype 1 */ | |||
742 | #endif /* CONFIG_RDS */ | 742 | #endif /* CONFIG_RDS */ |
743 | #endif /* HAVE_RDS_CAP */ | 743 | #endif /* HAVE_RDS_CAP */ |
744 | 744 | ||
745 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) | ||
746 | #if CONFIG_RTC == RTC_AS3514 | ||
747 | #if CONFIG_CPU == AS3525 || CONFIG_CPU == AS3525v2 | ||
748 | #define HAVE_RTC_IRQ | ||
749 | #endif | ||
750 | #elif CONFIG_RTC == RTC_MC13783 | ||
751 | #define HAVE_RTC_IRQ | ||
752 | #endif | ||
753 | #endif /* (CONFIG_PLATFORM & PLATFORM_NATIVE) */ | ||
754 | |||
745 | #ifndef CONFIG_ORIENTATION | 755 | #ifndef CONFIG_ORIENTATION |
746 | #if LCD_HEIGHT > LCD_WIDTH | 756 | #if LCD_HEIGHT > LCD_WIDTH |
747 | #define CONFIG_ORIENTATION SCREEN_PORTRAIT | 757 | #define CONFIG_ORIENTATION SCREEN_PORTRAIT |