mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Make Meizu M3 compile again
Change-Id: I44436068cf6f2c3942fb63f988bf627eaa9abb97
This commit is contained in:
parent
c029c77796
commit
620982a0f3
1 changed files with 12 additions and 6 deletions
|
@ -53,6 +53,7 @@
|
||||||
#include "pcm.h"
|
#include "pcm.h"
|
||||||
#include "audiohw.h"
|
#include "audiohw.h"
|
||||||
#include "rtc.h"
|
#include "rtc.h"
|
||||||
|
#include "time.h"
|
||||||
|
|
||||||
#define LONG_DELAY 200000
|
#define LONG_DELAY 200000
|
||||||
#define SHORT_DELAY 50000
|
#define SHORT_DELAY 50000
|
||||||
|
@ -105,12 +106,17 @@ void bl_debug_int(unsigned int input,unsigned int count)
|
||||||
delay(SHORT_DELAY*6);
|
delay(SHORT_DELAY*6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void post_mortem_stub(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
void main(void)
|
void main(void)
|
||||||
{
|
{
|
||||||
char mystring[64];
|
char mystring[64];
|
||||||
int i;
|
int i;
|
||||||
unsigned short data = 0;
|
unsigned short data = 0;
|
||||||
char write_data[2], read_data[16];
|
char write_data[2], read_data[16];
|
||||||
|
struct tm tm;
|
||||||
|
|
||||||
//Set backlight pin to output and enable
|
//Set backlight pin to output and enable
|
||||||
int oldval = PCON0;
|
int oldval = PCON0;
|
||||||
|
@ -180,10 +186,10 @@ void main(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 1 /* enable this to see info about the RTC */
|
#if 1 /* enable this to see info about the RTC */
|
||||||
rtc_read_datetime(read_data);
|
rtc_read_datetime(&tm);
|
||||||
for (i = 0; i < 7; i++) {
|
snprintf(mystring, 64, "%04d-%02d-%02d %02d:%02d:%02d",
|
||||||
snprintf(mystring + 2 * i, 64, "%02X", read_data[i]);
|
tm.tm_year+1900, tm.tm_mon+1, tm.tm_mday,
|
||||||
}
|
tm.tm_hour, tm.tm_min, tm.tm_sec);
|
||||||
lcd_puts(0, 10, mystring);
|
lcd_puts(0, 10, mystring);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -199,11 +205,11 @@ void main(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 1 /* enable this to see info about IODMA channel 0 (PCM) */
|
#if 1 /* enable this to see info about IODMA channel 0 (PCM) */
|
||||||
snprintf(mystring, 64, "DMA: %08X %08X", DMACADDR0, DMACTCNT0);
|
snprintf(mystring, 64, "DMA: %08X %08X", (int)DMACADDR0, (int)DMACTCNT0);
|
||||||
lcd_puts(0, 12, mystring);
|
lcd_puts(0, 12, mystring);
|
||||||
#endif
|
#endif
|
||||||
#if 1 /* enable this to see info about IIS */
|
#if 1 /* enable this to see info about IIS */
|
||||||
snprintf(mystring, 64, "IIS: %08X", I2SSTATUS);
|
snprintf(mystring, 64, "IIS: %08X", (int)I2SSTATUS);
|
||||||
lcd_puts(0, 13, mystring);
|
lcd_puts(0, 13, mystring);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue