mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
Sansa View: define a GPIO bit for USB detection in order to compile the bootloader.
Change-Id: I748a49f4b48385f328946e861d1f9a026b1efd7d
This commit is contained in:
parent
173d9c6750
commit
938aa8eefe
1 changed files with 6 additions and 0 deletions
|
|
@ -93,6 +93,12 @@
|
||||||
#define USB_GPIO_MASK 0x04
|
#define USB_GPIO_MASK 0x04
|
||||||
#define USB_GPIO_VAL 0x04
|
#define USB_GPIO_VAL 0x04
|
||||||
|
|
||||||
|
#elif defined(SANSA_VIEW)
|
||||||
|
/* GPIO A bit 7 is usb detect */
|
||||||
|
#define USB_GPIO GPIOA
|
||||||
|
#define USB_GPIO_MASK 0x80
|
||||||
|
#define USB_GPIO_VAL 0x80
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#error No USB GPIO config specified
|
#error No USB GPIO config specified
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue