Various minor cleanups for mini2440
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27645 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f971deed6d
commit
451aa86244
7 changed files with 12 additions and 4 deletions
|
@ -221,10 +221,12 @@ void audiohw_set_treble(int value)
|
|||
}
|
||||
*/
|
||||
|
||||
#ifdef AUDIOHW_HAVE_PRESCALER
|
||||
void audiohw_set_prescaler(int val)
|
||||
{
|
||||
(void)val;
|
||||
}
|
||||
#endif /* AUDIOHW_HAVE_PRESCALER */
|
||||
|
||||
/**
|
||||
* Sets left and right master volume (1(max) to 62(muted))
|
||||
|
|
|
@ -35,7 +35,7 @@ static int dma_used = 0;
|
|||
/* Status flags */
|
||||
#define STATUS_CHANNEL_ACTIVE (1<<0)
|
||||
|
||||
struct dma_channel_state
|
||||
static struct dma_channel_state
|
||||
{
|
||||
volatile unsigned status;
|
||||
void (*callback)(void);
|
||||
|
@ -162,7 +162,7 @@ void dma_enable_channel(int channel, struct dma_request *request)
|
|||
}
|
||||
|
||||
/* ISRs */
|
||||
inline void generic_isr (unsigned channel)
|
||||
static inline void generic_isr (unsigned channel)
|
||||
{
|
||||
if (dma_state [channel].status | STATUS_CHANNEL_ACTIVE)
|
||||
{
|
||||
|
|
|
@ -54,7 +54,7 @@ void _backlight_set_brightness(int brightness)
|
|||
backlight_control = BACKLIGHT_CONTROL_SET;
|
||||
}
|
||||
|
||||
void _backlight_set_state (unsigned int level)
|
||||
static void _backlight_set_state (unsigned int level)
|
||||
{
|
||||
if (level == 0)
|
||||
GPGDAT &= ~GPIO_LCD_PWR;
|
||||
|
|
|
@ -82,8 +82,11 @@ void touchpad_set_sensitivity(int level)
|
|||
/* No touchpad */
|
||||
}
|
||||
|
||||
#ifdef HAVE_HEADPHONE_DETECTION
|
||||
bool headphones_inserted(void)
|
||||
{
|
||||
/* No detect */
|
||||
return false;
|
||||
}
|
||||
#endif /* HAVE_HEADPHONE_DETECTION */
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "config.h"
|
||||
#include "cpu.h"
|
||||
#include "kernel.h"
|
||||
#include "led-mini2440.h"
|
||||
|
||||
/* LED functions for debug */
|
||||
|
||||
|
|
|
@ -58,6 +58,7 @@ unsigned int battery_adc_voltage(void)
|
|||
return 4000 * 1024 / 1000;
|
||||
}
|
||||
|
||||
#ifdef HAVE_BATTERY_SWITCH
|
||||
unsigned int input_millivolts(void)
|
||||
{
|
||||
unsigned int batt_millivolts = battery_voltage();
|
||||
|
@ -65,5 +66,5 @@ unsigned int input_millivolts(void)
|
|||
/* No battery, return nominal value */
|
||||
return batt_millivolts;
|
||||
}
|
||||
|
||||
#endif /* HAVE_BATTERY_SWITCH */
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
#include "system-target.h"
|
||||
#include "uart-s3c2440.h"
|
||||
#include "serial.h"
|
||||
|
||||
#define MAX_PRINTF_BUF 1024
|
||||
|
||||
|
|
Loading…
Reference in a new issue