USB0 and USB1 LEDs are only on Jellybean and Jawbreaker.
This commit is contained in:
@ -595,8 +595,10 @@ void pin_setup(void) {
|
|||||||
scu_pinmux(SCU_PINMUX_BOOT3, SCU_GPIO_FAST);
|
scu_pinmux(SCU_PINMUX_BOOT3, SCU_GPIO_FAST);
|
||||||
|
|
||||||
/* Configure USB indicators */
|
/* Configure USB indicators */
|
||||||
|
#if (defined JELLYBEAN || defined JAWBREAKER)
|
||||||
scu_pinmux(SCU_PINMUX_USB_LED0, SCU_CONF_FUNCTION3);
|
scu_pinmux(SCU_PINMUX_USB_LED0, SCU_CONF_FUNCTION3);
|
||||||
scu_pinmux(SCU_PINMUX_USB_LED1, SCU_CONF_FUNCTION3);
|
scu_pinmux(SCU_PINMUX_USB_LED1, SCU_CONF_FUNCTION3);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Configure all GPIO as Input (safe state) */
|
/* Configure all GPIO as Input (safe state) */
|
||||||
GPIO0_DIR = 0;
|
GPIO0_DIR = 0;
|
||||||
|
@ -67,8 +67,10 @@ extern "C"
|
|||||||
#define SCU_PINMUX_BOOT3 (P2_9) /* GPIO1[10] on P2_9 */
|
#define SCU_PINMUX_BOOT3 (P2_9) /* GPIO1[10] on P2_9 */
|
||||||
|
|
||||||
/* USB peripheral */
|
/* USB peripheral */
|
||||||
|
#if (defined JELLYBEAN || defined JAWBREAKER)
|
||||||
#define SCU_PINMUX_USB_LED0 (P6_8)
|
#define SCU_PINMUX_USB_LED0 (P6_8)
|
||||||
#define SCU_PINMUX_USB_LED1 (P6_7)
|
#define SCU_PINMUX_USB_LED1 (P6_7)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* SSP1 Peripheral PinMux */
|
/* SSP1 Peripheral PinMux */
|
||||||
#define SCU_SSP1_MISO (P1_3) /* P1_3 */
|
#define SCU_SSP1_MISO (P1_3) /* P1_3 */
|
||||||
|
Reference in New Issue
Block a user