summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2011-12-31 18:43:53 +0000
committerRafaël Carré <rafael.carre@gmail.com>2011-12-31 18:43:53 +0000
commitdf09274768f020fe403cbe9475f5ba192247826d (patch)
treeb6a5bd77368f19797979e63a199b05da65346556 /firmware/target/arm
parentbce42fdc31648d7087dcbaac0704a422b33ac147 (diff)
downloadrockbox-df09274768f020fe403cbe9475f5ba192247826d.tar.gz
rockbox-df09274768f020fe403cbe9475f5ba192247826d.zip
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
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/as3525/usb-target.h1
-rw-r--r--firmware/target/arm/imx233/usb-target.h1
-rw-r--r--firmware/target/arm/iriver/usb-target.h1
-rw-r--r--firmware/target/arm/pbell/vibe500/usb-target.h29
-rw-r--r--firmware/target/arm/system-target.h2
-rw-r--r--firmware/target/arm/tms320dm320/creative-zvm/usb-target.h1
-rw-r--r--firmware/target/arm/tms320dm320/sansa-connect/usb-target.h1
-rw-r--r--firmware/target/arm/usb-target.h1
8 files changed, 2 insertions, 35 deletions
diff --git a/firmware/target/arm/as3525/usb-target.h b/firmware/target/arm/as3525/usb-target.h
index 9cafced050..673fb176c6 100644
--- a/firmware/target/arm/as3525/usb-target.h
+++ b/firmware/target/arm/as3525/usb-target.h
@@ -21,7 +21,6 @@
21#ifndef USB_TARGET_H 21#ifndef USB_TARGET_H
22#define USB_TARGET_H 22#define USB_TARGET_H
23 23
24int usb_detect(void);
25void usb_insert_int(void); 24void usb_insert_int(void);
26void usb_remove_int(void); 25void usb_remove_int(void);
27 26
diff --git a/firmware/target/arm/imx233/usb-target.h b/firmware/target/arm/imx233/usb-target.h
index 00cef2c060..976d954038 100644
--- a/firmware/target/arm/imx233/usb-target.h
+++ b/firmware/target/arm/imx233/usb-target.h
@@ -27,7 +27,6 @@
27#define USB_DRIVER_CLOSE 27#define USB_DRIVER_CLOSE
28#endif 28#endif
29 29
30int usb_detect(void);
31void usb_insert_int(void); 30void usb_insert_int(void);
32void usb_remove_int(void); 31void usb_remove_int(void);
33bool usb_plugged(void); 32bool usb_plugged(void);
diff --git a/firmware/target/arm/iriver/usb-target.h b/firmware/target/arm/iriver/usb-target.h
index a0905ebe51..1b0dc7e194 100644
--- a/firmware/target/arm/iriver/usb-target.h
+++ b/firmware/target/arm/iriver/usb-target.h
@@ -28,7 +28,6 @@
28#define USB_DRIVER_CLOSE 28#define USB_DRIVER_CLOSE
29#endif 29#endif
30 30
31void usb_pin_init(void); /* Init the GPIO input only */
32bool usb_plugged(void); /* Returns instantaneous state - always */ 31bool usb_plugged(void); /* Returns instantaneous state - always */
33 32
34#endif 33#endif
diff --git a/firmware/target/arm/pbell/vibe500/usb-target.h b/firmware/target/arm/pbell/vibe500/usb-target.h
index 2cedf514c5..e69de29bb2 100644
--- a/firmware/target/arm/pbell/vibe500/usb-target.h
+++ b/firmware/target/arm/pbell/vibe500/usb-target.h
@@ -1,29 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id:$
9 *
10 * Copyright (C) 2006 by Barry Wardell
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22/* Based off x5 version */
23
24#ifndef USB_TARGET_H
25#define USB_TARGET_H
26
27void usb_pin_init(void); /* Init the GPIO input only */
28
29#endif
diff --git a/firmware/target/arm/system-target.h b/firmware/target/arm/system-target.h
index 730bc2dbbb..91e6beb868 100644
--- a/firmware/target/arm/system-target.h
+++ b/firmware/target/arm/system-target.h
@@ -49,6 +49,8 @@
49#define inw(a) (*(volatile unsigned short *) (a)) 49#define inw(a) (*(volatile unsigned short *) (a))
50#define outw(a,b) (*(volatile unsigned short *) (b) = (a)) 50#define outw(a,b) (*(volatile unsigned short *) (b) = (a))
51 51
52void usb_pin_init(void);
53
52static inline void udelay(unsigned usecs) 54static inline void udelay(unsigned usecs)
53{ 55{
54 unsigned stop = USEC_TIMER + usecs; 56 unsigned stop = USEC_TIMER + usecs;
diff --git a/firmware/target/arm/tms320dm320/creative-zvm/usb-target.h b/firmware/target/arm/tms320dm320/creative-zvm/usb-target.h
index 9415480d88..28862de876 100644
--- a/firmware/target/arm/tms320dm320/creative-zvm/usb-target.h
+++ b/firmware/target/arm/tms320dm320/creative-zvm/usb-target.h
@@ -74,7 +74,6 @@
74#define USE_IRAM 74#define USE_IRAM
75 75
76#include <stdbool.h> 76#include <stdbool.h>
77int usb_detect(void);
78bool usb_drv_connected(void); 77bool usb_drv_connected(void);
79 78
80#endif 79#endif
diff --git a/firmware/target/arm/tms320dm320/sansa-connect/usb-target.h b/firmware/target/arm/tms320dm320/sansa-connect/usb-target.h
index 3e8aa14a15..5874d812cc 100644
--- a/firmware/target/arm/tms320dm320/sansa-connect/usb-target.h
+++ b/firmware/target/arm/tms320dm320/sansa-connect/usb-target.h
@@ -25,7 +25,6 @@
25#include "dm320.h" 25#include "dm320.h"
26 26
27#include <stdbool.h> 27#include <stdbool.h>
28int usb_detect(void);
29bool usb_drv_connected(void); 28bool usb_drv_connected(void);
30 29
31#endif 30#endif
diff --git a/firmware/target/arm/usb-target.h b/firmware/target/arm/usb-target.h
index 68418c9208..802b8e1445 100644
--- a/firmware/target/arm/usb-target.h
+++ b/firmware/target/arm/usb-target.h
@@ -23,7 +23,6 @@
23 23
24void usb_insert_int(void); 24void usb_insert_int(void);
25void firewire_insert_int(void); 25void firewire_insert_int(void);
26void usb_pin_init(void); /* Init the GPIO input only */
27bool usb_plugged(void); /* Returns instantaneous state - always */ 26bool usb_plugged(void); /* Returns instantaneous state - always */
28 27
29#ifdef HAVE_BOOTLOADER_USB_MODE 28#ifdef HAVE_BOOTLOADER_USB_MODE