diff options
Diffstat (limited to 'firmware/target/arm/as3525/usb-as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/usb-as3525.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/firmware/target/arm/as3525/usb-as3525.c b/firmware/target/arm/as3525/usb-as3525.c index 74bfc17364..be62752033 100644 --- a/firmware/target/arm/as3525/usb-as3525.c +++ b/firmware/target/arm/as3525/usb-as3525.c | |||
@@ -29,13 +29,7 @@ | |||
29 | #include "power.h" | 29 | #include "power.h" |
30 | #include "as3525.h" | 30 | #include "as3525.h" |
31 | 31 | ||
32 | #if CONFIG_CPU == AS3525 | ||
33 | static int usb_status = USB_EXTRACTED; | 32 | static int usb_status = USB_EXTRACTED; |
34 | #else | ||
35 | #if defined(SANSA_CLIPV2) | ||
36 | #define USB_DETECT_PIN 6 | ||
37 | #endif | ||
38 | #endif | ||
39 | 33 | ||
40 | void usb_enable(bool on) | 34 | void usb_enable(bool on) |
41 | { | 35 | { |
@@ -51,12 +45,8 @@ void usb_enable(bool on) | |||
51 | 45 | ||
52 | void usb_init_device(void) | 46 | void usb_init_device(void) |
53 | { | 47 | { |
54 | #ifdef USB_DETECT_PIN | ||
55 | GPIOA_DIR &= ~(1 << USB_DETECT_PIN); /* set as input */ | ||
56 | #endif | ||
57 | } | 48 | } |
58 | 49 | ||
59 | #if CONFIG_CPU == AS3525 | ||
60 | void usb_insert_int(void) | 50 | void usb_insert_int(void) |
61 | { | 51 | { |
62 | usb_status = USB_INSERTED; | 52 | usb_status = USB_INSERTED; |
@@ -71,14 +61,3 @@ int usb_detect(void) | |||
71 | { | 61 | { |
72 | return usb_status; | 62 | return usb_status; |
73 | } | 63 | } |
74 | #else | ||
75 | int usb_detect(void) | ||
76 | { | ||
77 | #ifdef USB_DETECT_PIN | ||
78 | if (GPIOA_PIN( USB_DETECT_PIN )) | ||
79 | return USB_INSERTED; | ||
80 | else | ||
81 | #endif | ||
82 | return USB_EXTRACTED; | ||
83 | } | ||
84 | #endif | ||