mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-10 13:42:29 -05:00
usb_init_device(): move prototype to usb.h
Get rid of some usb-target.h files git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31487 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
12a45549f6
commit
bce42fdc31
17 changed files with 8 additions and 142 deletions
|
|
@ -151,4 +151,8 @@ void usb_set_hid(bool enable);
|
||||||
void usb_set_skip_first_drive(bool skip);
|
void usb_set_skip_first_drive(bool skip);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(SIMULATOR) && !defined(USB_NONE)
|
||||||
|
void usb_init_device(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -79,3 +79,7 @@ int usb_detect(void)
|
||||||
{
|
{
|
||||||
return usb_status;
|
return usb_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void usb_init_device(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,6 @@
|
||||||
#ifndef USB_TARGET_H
|
#ifndef USB_TARGET_H
|
||||||
#define USB_TARGET_H
|
#define USB_TARGET_H
|
||||||
|
|
||||||
static inline void usb_init_device(void) { }
|
|
||||||
|
|
||||||
int usb_detect(void);
|
int usb_detect(void);
|
||||||
void usb_insert_int(void);
|
void usb_insert_int(void);
|
||||||
void usb_remove_int(void);
|
void usb_remove_int(void);
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@
|
||||||
#define USB_DRIVER_CLOSE
|
#define USB_DRIVER_CLOSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void usb_init_device(void);
|
|
||||||
int usb_detect(void);
|
int usb_detect(void);
|
||||||
void usb_insert_int(void);
|
void usb_insert_int(void);
|
||||||
void usb_remove_int(void);
|
void usb_remove_int(void);
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void usb_connect_event(void);
|
void usb_connect_event(void);
|
||||||
void usb_init_device(void);
|
|
||||||
/* Read the immediate state of the cable from the PMIC */
|
/* Read the immediate state of the cable from the PMIC */
|
||||||
bool usb_plugged(void);
|
bool usb_plugged(void);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@
|
||||||
#define USB_DRIVER_CLOSE
|
#define USB_DRIVER_CLOSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool usb_init_device(void);
|
|
||||||
void usb_pin_init(void); /* Init the GPIO input only */
|
void usb_pin_init(void); /* Init the GPIO input only */
|
||||||
bool usb_plugged(void); /* Returns instantaneous state - always */
|
bool usb_plugged(void); /* Returns instantaneous state - always */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@
|
||||||
#ifndef USB_TARGET_H
|
#ifndef USB_TARGET_H
|
||||||
#define USB_TARGET_H
|
#define USB_TARGET_H
|
||||||
|
|
||||||
bool usb_init_device(void);
|
|
||||||
void usb_pin_init(void); /* Init the GPIO input only */
|
void usb_pin_init(void); /* Init the GPIO input only */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
/***************************************************************************
|
|
||||||
* __________ __ ___.
|
|
||||||
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
||||||
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
||||||
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
||||||
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
||||||
* \/ \/ \/ \/ \/
|
|
||||||
* $Id: usb-target.h 11494 2006-11-10 07:43:36Z tomal $
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006 by Barry Wardelll
|
|
||||||
*
|
|
||||||
* 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
|
|
||||||
|
|
||||||
bool usb_init_device(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
/***************************************************************************
|
|
||||||
* __________ __ ___.
|
|
||||||
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
||||||
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
||||||
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
||||||
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
||||||
* \/ \/ \/ \/ \/
|
|
||||||
* $Id$
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006 by Linus Nielsen Feltzing
|
|
||||||
*
|
|
||||||
* 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
|
|
||||||
|
|
||||||
void usb_init_device(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
/***************************************************************************
|
|
||||||
* __________ __ ___.
|
|
||||||
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
||||||
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
||||||
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
||||||
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
||||||
* \/ \/ \/ \/ \/
|
|
||||||
* $Id$
|
|
||||||
*
|
|
||||||
* Copyright (C) 2010 by Bertrik Sikken
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
void usb_init_device(void);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -75,7 +75,6 @@
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
int usb_detect(void);
|
int usb_detect(void);
|
||||||
void usb_init_device(void);
|
|
||||||
bool usb_drv_connected(void);
|
bool usb_drv_connected(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
int usb_detect(void);
|
int usb_detect(void);
|
||||||
void usb_init_device(void);
|
|
||||||
bool usb_drv_connected(void);
|
bool usb_drv_connected(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@
|
||||||
#ifndef USB_TARGET_H
|
#ifndef USB_TARGET_H
|
||||||
#define USB_TARGET_H
|
#define USB_TARGET_H
|
||||||
|
|
||||||
void usb_init_device(void);
|
|
||||||
void usb_insert_int(void);
|
void usb_insert_int(void);
|
||||||
void firewire_insert_int(void);
|
void firewire_insert_int(void);
|
||||||
void usb_pin_init(void); /* Init the GPIO input only */
|
void usb_pin_init(void); /* Init the GPIO input only */
|
||||||
|
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
/***************************************************************************
|
|
||||||
* __________ __ ___.
|
|
||||||
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
||||||
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
||||||
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
||||||
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
||||||
* \/ \/ \/ \/ \/
|
|
||||||
* $Id$
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006 by Linus Nielsen Feltzing
|
|
||||||
*
|
|
||||||
* 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
|
|
||||||
|
|
||||||
void usb_init_device(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -40,7 +40,6 @@
|
||||||
#define USB_STATUS_BY_EVENT
|
#define USB_STATUS_BY_EVENT
|
||||||
|
|
||||||
int usb_detect(void);
|
int usb_detect(void);
|
||||||
void usb_init_device(void);
|
|
||||||
bool usb_drv_connected(void);
|
bool usb_drv_connected(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,6 @@
|
||||||
#define USB_DRV_CONNECTED() (__gpio_get_pin(GPIO_UDC_DETE) == 1)
|
#define USB_DRV_CONNECTED() (__gpio_get_pin(GPIO_UDC_DETE) == 1)
|
||||||
|
|
||||||
int usb_detect(void);
|
int usb_detect(void);
|
||||||
void usb_init_device(void);
|
|
||||||
bool usb_drv_connected(void);
|
bool usb_drv_connected(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
/***************************************************************************
|
|
||||||
* __________ __ ___.
|
|
||||||
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
||||||
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
||||||
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
||||||
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
||||||
* \/ \/ \/ \/ \/
|
|
||||||
* $Id$
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 by Jens Arnold
|
|
||||||
*
|
|
||||||
* 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
|
|
||||||
|
|
||||||
void usb_init_device(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue