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:
parent
0da83cfc08
commit
bf2ec0674e
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue