1
0
Fork 0
forked from len0rd/rockbox

rtc_as3514.c: make alarm struct static and reorder fields to save some binsize

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27448 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2010-07-16 10:41:41 +00:00
parent 0da83cfc08
commit bf2ec0674e

View file

@ -52,12 +52,12 @@ static inline bool is_leapyear(int year)
}
#ifdef HAVE_RTC_ALARM /* as3543 */
struct {
static struct {
unsigned int seconds; /* total seconds to wakeup */
bool enabled; /* alarm enabled or not */
unsigned char flag; /* flag used by the OF */
int hour; /* wake-up hour */
int min; /* wake-up minute */
bool enabled; /* alarm enabled or not */
unsigned char flag; /* flag used by the OF */
} alarm;
void rtc_set_alarm(int h, int m)