mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Make more local functions static.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31395 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2800c55a6a
commit
14c2e677fd
9 changed files with 17 additions and 11 deletions
|
@ -129,7 +129,7 @@ void screen_helper_remote_setfont(int font)
|
|||
lcd_remote_setfont(font);
|
||||
}
|
||||
|
||||
int screen_helper_remote_getuifont(void)
|
||||
static int screen_helper_remote_getuifont(void)
|
||||
{
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
return global_status.font_id[SCREEN_REMOTE];
|
||||
|
@ -138,7 +138,7 @@ int screen_helper_remote_getuifont(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
void screen_helper_remote_setuifont(int font)
|
||||
static void screen_helper_remote_setuifont(int font)
|
||||
{
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
global_status.font_id[SCREEN_REMOTE] = font;
|
||||
|
|
|
@ -99,7 +99,7 @@ int tx_rdy(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int rx_rdy(void)
|
||||
static int rx_rdy(void)
|
||||
{
|
||||
if((SER0_LSR & 0x1))
|
||||
return 1;
|
||||
|
@ -112,7 +112,7 @@ void tx_writec(unsigned char c)
|
|||
SER0_THR =(int) c;
|
||||
}
|
||||
|
||||
unsigned char rx_readc(void)
|
||||
static unsigned char rx_readc(void)
|
||||
{
|
||||
return (SER0_RBR & 0xFF);
|
||||
}
|
||||
|
|
|
@ -233,7 +233,7 @@ static void remote_dev_enable(bool enable)
|
|||
}
|
||||
}
|
||||
|
||||
void remote_update_lcd(void)
|
||||
static void remote_update_lcd(void)
|
||||
{
|
||||
int x, y, draw_now;
|
||||
unsigned char data[RC_WIDTH + 7];
|
||||
|
|
|
@ -33,7 +33,7 @@ static int int_btn = BUTTON_NONE;
|
|||
* Generate a click sound from the player (not in headphones yet)
|
||||
* TODO: integrate this with the "key click" option
|
||||
*/
|
||||
void button_click(void)
|
||||
static void button_click(void)
|
||||
{
|
||||
GPO32_ENABLE |= 0x2000;
|
||||
GPO32_VAL |= 0x2000;
|
||||
|
|
|
@ -39,7 +39,7 @@ static int repeat = 0;
|
|||
* Generate a click sound from the player (not in headphones yet)
|
||||
* TODO: integrate this with the "key click" option
|
||||
*/
|
||||
void button_click(void)
|
||||
static void button_click(void)
|
||||
{
|
||||
GPO32_ENABLE |= 0x2000;
|
||||
GPO32_VAL |= 0x2000;
|
||||
|
|
|
@ -211,7 +211,7 @@ bool lcd_active(void)
|
|||
|
||||
#ifdef HAVE_LCD_SLEEP
|
||||
|
||||
void lcd_wakeup(void)
|
||||
static void lcd_wakeup(void)
|
||||
{
|
||||
unsigned short *lcd_init_sequence;
|
||||
unsigned int lcd_init_sequence_length;
|
||||
|
|
|
@ -37,7 +37,7 @@ void INT_TIMERD(void)
|
|||
}
|
||||
}
|
||||
|
||||
void piezo_start(unsigned short cycles, unsigned short periods)
|
||||
static void piezo_start(unsigned short cycles, unsigned short periods)
|
||||
{
|
||||
#ifndef SIMULATOR
|
||||
duration = periods;
|
||||
|
|
|
@ -299,6 +299,9 @@ inline bool pcf50606_i2c_getack(void)
|
|||
return ret;
|
||||
}
|
||||
|
||||
#if !defined(IRIVER_H300_SERIES)
|
||||
static
|
||||
#endif
|
||||
void pcf50606_i2c_outb(unsigned char byte)
|
||||
{
|
||||
#ifdef USE_ASM
|
||||
|
@ -370,6 +373,9 @@ void pcf50606_i2c_outb(unsigned char byte)
|
|||
#endif
|
||||
}
|
||||
|
||||
#if !defined(IRIVER_H300_SERIES)
|
||||
static
|
||||
#endif
|
||||
unsigned char pcf50606_i2c_inb(bool ack)
|
||||
{
|
||||
unsigned char byte = 0;
|
||||
|
|
|
@ -65,7 +65,7 @@ int tx_rdy(void)
|
|||
return 1;
|
||||
}
|
||||
|
||||
int rx_rdy(void)
|
||||
static int rx_rdy(void)
|
||||
{
|
||||
if(SSR1 & SCI_RDRF)
|
||||
return 1;
|
||||
|
@ -79,7 +79,7 @@ void tx_writec(unsigned char c)
|
|||
(void)c;
|
||||
}
|
||||
|
||||
unsigned char rx_readc(void)
|
||||
static unsigned char rx_readc(void)
|
||||
{
|
||||
char tmp;
|
||||
/* Read byte and clear the Rx Full bit */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue