move usb_pin_init() declaration to PP's system-target.h

remove duplicate usb_detect() declaration
Remove all content from empty usb-target.h files

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31488 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2011-12-31 18:43:53 +00:00
parent bce42fdc31
commit df09274768
13 changed files with 2 additions and 112 deletions

View file

@ -21,7 +21,6 @@
#ifndef USB_TARGET_H
#define USB_TARGET_H
int usb_detect(void);
void usb_insert_int(void);
void usb_remove_int(void);

View file

@ -27,7 +27,6 @@
#define USB_DRIVER_CLOSE
#endif
int usb_detect(void);
void usb_insert_int(void);
void usb_remove_int(void);
bool usb_plugged(void);

View file

@ -28,7 +28,6 @@
#define USB_DRIVER_CLOSE
#endif
void usb_pin_init(void); /* Init the GPIO input only */
bool usb_plugged(void); /* Returns instantaneous state - always */
#endif

View file

@ -1,29 +0,0 @@
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
* $Id:$
*
* Copyright (C) 2006 by Barry Wardell
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
****************************************************************************/
/* Based off x5 version */
#ifndef USB_TARGET_H
#define USB_TARGET_H
void usb_pin_init(void); /* Init the GPIO input only */
#endif

View file

@ -49,6 +49,8 @@
#define inw(a) (*(volatile unsigned short *) (a))
#define outw(a,b) (*(volatile unsigned short *) (b) = (a))
void usb_pin_init(void);
static inline void udelay(unsigned usecs)
{
unsigned stop = USEC_TIMER + usecs;

View file

@ -74,7 +74,6 @@
#define USE_IRAM
#include <stdbool.h>
int usb_detect(void);
bool usb_drv_connected(void);
#endif

View file

@ -25,7 +25,6 @@
#include "dm320.h"
#include <stdbool.h>
int usb_detect(void);
bool usb_drv_connected(void);
#endif

View file

@ -23,7 +23,6 @@
void usb_insert_int(void);
void firewire_insert_int(void);
void usb_pin_init(void); /* Init the GPIO input only */
bool usb_plugged(void); /* Returns instantaneous state - always */
#ifdef HAVE_BOOTLOADER_USB_MODE

View file

@ -1,25 +0,0 @@
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
* $Id$
*
* Copyright (C) 2010 by Thomas Martitz
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
****************************************************************************/
#ifndef __USB_TARGET_H__
#define __USB_TARGET_H__
#endif /* __USB_TARGET_H__ */

View file

@ -1,25 +0,0 @@
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
* $Id$
*
* Copyright (C) 2010 by Thomas Martitz
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
****************************************************************************/
#ifndef __USB_TARGET_H__
#define __USB_TARGET_H__
#endif /* __USB_TARGET_H__ */

View file

@ -1,25 +0,0 @@
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
* $Id: usb-target.h 29516 2011-03-05 15:31:52Z thomasjfox $
*
* Copyright (C) 2010 by Thomas Martitz
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
****************************************************************************/
#ifndef __USB_TARGET_H__
#define __USB_TARGET_H__
#endif /* __USB_TARGET_H__ */

View file

@ -39,7 +39,6 @@
/* Connect by events, not by tick polling */
#define USB_STATUS_BY_EVENT
int usb_detect(void);
bool usb_drv_connected(void);
#endif

View file

@ -37,7 +37,6 @@
#define USB_DRV_CONNECTED() (__gpio_get_pin(GPIO_UDC_DETE) == 1)
int usb_detect(void);
bool usb_drv_connected(void);
#endif