1
0
Fork 0
forked from len0rd/rockbox

Cleanup some .h files in the imx31 target branch - #include guard style, headers, obsolete prototypes, etc.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17536 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2008-05-16 18:40:28 +00:00
parent 3c102ffd4d
commit 95d76f2da2
11 changed files with 33 additions and 20 deletions

View file

@ -16,9 +16,11 @@
* KIND, either express or implied. * KIND, either express or implied.
* *
****************************************************************************/ ****************************************************************************/
#ifndef DEBUG_TARGET_H
#define DEBUG_TARGET_H
#define DEBUG_CANCEL BUTTON_BACK #define DEBUG_CANCEL BUTTON_BACK
bool __dbg_hw_info(void); bool __dbg_hw_info(void);
bool __dbg_ports(void); bool __dbg_ports(void);
#endif /* DEBUG_TARGET_H */

View file

@ -205,4 +205,5 @@ void avic_set_int_priority(enum IMX31_INT_LIST ints,
unsigned long ni_priority); unsigned long ni_priority);
void avic_disable_int(enum IMX31_INT_LIST ints); void avic_disable_int(enum IMX31_INT_LIST ints);
void avic_set_int_type(enum IMX31_INT_LIST ints, enum INT_TYPE intstype); void avic_set_int_type(enum IMX31_INT_LIST ints, enum INT_TYPE intstype);
#endif
#endif /* AVIC_IMX31_H */

View file

@ -30,4 +30,4 @@ void _backlight_on(void);
void _backlight_off(void); void _backlight_off(void);
void _backlight_set_brightness(int brightness); void _backlight_set_brightness(int brightness);
#endif #endif /* BACKLIGHT_TARGET_H */

View file

@ -16,8 +16,8 @@
* KIND, either express or implied. * KIND, either express or implied.
* *
****************************************************************************/ ****************************************************************************/
#ifndef _GPIO_IMX31_H_ #ifndef GPIO_IMX31_H
#define _GPIO_IMX31_H_ #define GPIO_IMX31_H
#include "gpio-target.h" #include "gpio-target.h"
@ -85,4 +85,4 @@ void gpio_init(void);
bool gpio_enable_event(enum gpio_module_number gpio, unsigned id); bool gpio_enable_event(enum gpio_module_number gpio, unsigned id);
void gpio_disable_event(enum gpio_module_number gpio, unsigned id); void gpio_disable_event(enum gpio_module_number gpio, unsigned id);
#endif /* _GPIO_IMX31_H_ */ #endif /* GPIO_IMX31_H */

View file

@ -16,8 +16,8 @@
* KIND, either express or implied. * KIND, either express or implied.
* *
****************************************************************************/ ****************************************************************************/
#ifndef _I2C_IMX31_H_ #ifndef I2C_IMX31_H
#define _I2C_IMX31_H_ #define I2C_IMX31_H
#include <stdbool.h> #include <stdbool.h>
@ -73,4 +73,4 @@ int i2c_write(struct i2c_node *node, const unsigned char *data, int count);
void i2c_lock_node(struct i2c_node *node); void i2c_lock_node(struct i2c_node *node);
void i2c_unlock_node(struct i2c_node *node); void i2c_unlock_node(struct i2c_node *node);
#endif /* _I2C_IMX31_H_ */ #endif /* I2C_IMX31_H */

View file

@ -5,7 +5,7 @@
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/ * \/ \/ \/ \/ \/
* $Id $ * $Id$
* *
* Copyright (C) 2007 by Greg White * Copyright (C) 2007 by Greg White
* *
@ -16,6 +16,11 @@
* KIND, either express or implied. * KIND, either express or implied.
* *
****************************************************************************/ ****************************************************************************/
#ifndef LCD_TARGET_H
#define LCD_TARGET_H
//extern void lcd_enable(bool state); #if 0
void printscreen(unsigned int colour); void lcd_enable(bool state);
#endif
#endif /* LCD_TARGET_H */

View file

@ -16,6 +16,10 @@
* KIND, either express or implied. * KIND, either express or implied.
* *
****************************************************************************/ ****************************************************************************/
#ifndef MMU_IMX31_H
#define MMU_IMX31_H
void memory_init(void); void memory_init(void);
void set_page_tables(void); void set_page_tables(void);
#endif /* MMU_IMX31_H */

View file

@ -5,7 +5,7 @@
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/ * \/ \/ \/ \/ \/
* $Id:$ * $Id$
* *
* Copyright (C) 2008 by Nils Wallménius * Copyright (C) 2008 by Nils Wallménius
* *
@ -16,6 +16,9 @@
* KIND, either express or implied. * KIND, either express or implied.
* *
****************************************************************************/ ****************************************************************************/
#ifndef POWER_IMX31_H
#define POWER_IMX31_H
void set_charger_inserted(bool inserted); void set_charger_inserted(bool inserted);
#endif /* POWER_IMX31_H */

View file

@ -16,7 +16,6 @@
* KIND, either express or implied. * KIND, either express or implied.
* *
****************************************************************************/ ****************************************************************************/
#ifndef SERIAL_IMX31_H #ifndef SERIAL_IMX31_H
#define SERIAL_IMX31_H #define SERIAL_IMX31_H
@ -27,5 +26,4 @@ int tx_rdy(void);
void tx_writec(const char c); void tx_writec(const char c);
void dprintf(const char * str, ... ); void dprintf(const char * str, ... );
#endif #endif /* SERIAL_IMX31_H */

View file

@ -16,8 +16,8 @@
* KIND, either express or implied. * KIND, either express or implied.
* *
****************************************************************************/ ****************************************************************************/
#ifndef _SPI_IMX31_H_ #ifndef SPI_IMX31_H
#define _SPI_IMX31_H_ #define SPI_IMX31_H
#define USE_CSPI1_MODULE (1 << 0) #define USE_CSPI1_MODULE (1 << 0)
#define USE_CSPI2_MODULE (1 << 1) #define USE_CSPI2_MODULE (1 << 1)
@ -84,4 +84,4 @@ void spi_unlock(struct spi_node *node);
/* Send and/or receive data on the specified node */ /* Send and/or receive data on the specified node */
int spi_transfer(struct spi_node *node, struct spi_transfer *trans); int spi_transfer(struct spi_node *node, struct spi_transfer *trans);
#endif /* _SPI_IMX31_H_ */ #endif /* SPI_IMX31_H */

View file

@ -30,4 +30,4 @@ int usb_detect(void);
bool usb_plugged(void); bool usb_plugged(void);
void usb_enable(bool on); void usb_enable(bool on);
#endif #endif /* USB_TARGET */