tcc77x targets: various minor cleanups
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27913 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
032502182b
commit
a290ce4222
9 changed files with 19 additions and 6 deletions
|
@ -193,7 +193,7 @@ const char *get_cuesheetid3_token(struct wps_token *token, struct mp3entry *id3,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
const char* get_filename_token(struct wps_token *token, char* filename,
|
||||
static const char* get_filename_token(struct wps_token *token, char* filename,
|
||||
char *buf, int buf_size)
|
||||
{
|
||||
if (filename)
|
||||
|
|
|
@ -72,12 +72,14 @@ void pcf50606_init(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
#if (defined(IAUDIO_X5) || defined(IAUDIO_M5) || defined(COWON_D2)) && !defined (SIMULATOR)
|
||||
void pcf50606_reset_timeout(void)
|
||||
{
|
||||
int level = disable_irq_save();
|
||||
pcf50606_write(PCF5060X_OOCC1, pcf50606_read(PCF5060X_OOCC1) | TOTRST);
|
||||
restore_irq(level);
|
||||
}
|
||||
#endif
|
||||
|
||||
void pcf50606_read_adc(int adc, short* res1, short* res2)
|
||||
{
|
||||
|
|
|
@ -27,22 +27,24 @@ void rtc_init(void)
|
|||
{
|
||||
}
|
||||
|
||||
int rtc_read_datetime(unsigned char* buf)
|
||||
int rtc_read_datetime(struct tm *tm)
|
||||
{
|
||||
|
||||
(void)tm;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int rtc_write_datetime(unsigned char* buf)
|
||||
int rtc_write_datetime(const struct tm *tm)
|
||||
{
|
||||
(void)tm;
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef HAVE_RTC_ALARM
|
||||
/**
|
||||
* Checks to see if an alarm interrupt has triggered since last we checked.
|
||||
*/
|
||||
bool rtc_check_alarm_flag(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -74,4 +76,6 @@ void rtc_get_alarm(int *h, int *m)
|
|||
// *m = ((buf[0] >> 4) & 0x7)*10 + (buf[0] & 0x0f);
|
||||
// *h = ((buf[1] >> 4) & 0x3)*10 + (buf[1] & 0x0f);
|
||||
}
|
||||
#endif /* HAVE_RTC_ALARM */
|
||||
|
||||
|
||||
|
|
|
@ -88,6 +88,8 @@
|
|||
#define HAVE_WM8731
|
||||
/* Codec is slave on serial bus */
|
||||
#define CODEC_SLAVE
|
||||
/* WM8731 has no tone controls, so we use the software ones */
|
||||
#define HAVE_SW_TONE_CONTROLS
|
||||
|
||||
/* Define this for LCD backlight available */
|
||||
#define HAVE_BACKLIGHT
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include "cpu.h"
|
||||
#include "system.h"
|
||||
#include "string.h"
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
#include "button.h"
|
||||
#include "lcd.h"
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include "kernel.h"
|
||||
#include "system.h"
|
||||
#include "power.h"
|
||||
#include "backlight-target.h"
|
||||
|
||||
#include "pcf50606.h"
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
int audio_channels = 2;
|
||||
int audio_output_source = AUDIO_SRC_PLAYBACK;
|
||||
|
||||
#if INPUT_SRC_CAPS != 0
|
||||
void audio_set_output_source(int source)
|
||||
{
|
||||
(void)source;
|
||||
|
@ -36,3 +37,4 @@ void audio_input_mux(int source, unsigned flags)
|
|||
(void)source;
|
||||
(void)flags;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -31,6 +31,7 @@ void power_init(void)
|
|||
|
||||
void ide_power_enable(bool on)
|
||||
{
|
||||
(void)on;
|
||||
}
|
||||
|
||||
bool ide_powered(void)
|
||||
|
|
|
@ -272,7 +272,7 @@ http://infocenter.arm.com/help/topic/com.arm.doc.ddi0201d/DDI0201D_arm946es_r1p1
|
|||
"mov r0, #0xa5 \n\t"
|
||||
#elif defined(IAUDIO_7) || defined(SANSA_M200)
|
||||
"mov r0, #0xa7 \n\t"
|
||||
#elif
|
||||
#else
|
||||
#error NOT DEFINED FOR THIS TARGET!
|
||||
#endif
|
||||
"mcr p15, 0, r0, c2, c0, 0 \n\t"
|
||||
|
|
Loading…
Reference in a new issue