Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @@Original code in rbutil/mkamsboot/dualboot/dualboot.S:
- /* TODO : M200V4 */
- #if defined(SANSA_C200V2)
- #define USB_PIN 1
- #elif defined(SANSA_CLIP) || defined(SANSA_CLIPV2)
- #define USB_PIN 6
- #elif defined(SANSA_FUZE) || defined(SANSA_E200V2)
- #define USB_PIN 3
- #endif
- #ifdef USB_PIN /* TODO : remove this check when we'll have an USB driver */
- ldr r0, =GPIOA
- mov r1, #0
- str r1, [r0, #0x400]
- ldr r1, [r0, #(4*(1<<USB_PIN))]
- cmp r1, #0
- bne boot_of
- #endif
- @@Propose changing:
- #elif defined(SANSA_CLIP) || defined(SANSA_CLIPV2)
- @@to this:
- #elif defined(SANSA_CLIPV2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement