Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

jsiddall

By: a guest on Jan 29th, 2010  |  syntax: C  |  size: 0.66 KB  |  views: 143  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Original code in rbutil/mkamsboot/dualboot/dualboot.S:
  2.  
  3. /* TODO : M200V4 */
  4. #if defined(SANSA_C200V2)
  5. #define USB_PIN 1
  6. #elif defined(SANSA_CLIP) || defined(SANSA_CLIPV2)
  7. #define USB_PIN 6
  8. #elif defined(SANSA_FUZE) || defined(SANSA_E200V2)
  9. #define USB_PIN 3
  10. #endif
  11.  
  12. #ifdef USB_PIN  /* TODO : remove this check when we'll have an USB driver */
  13.         ldr     r0, =GPIOA
  14.         mov     r1, #0
  15.         str     r1, [r0, #0x400]
  16.         ldr     r1, [r0, #(4*(1<<USB_PIN))]
  17.         cmp     r1, #0
  18.         bne     boot_of
  19. #endif
  20.  
  21. Propose changing:
  22.  
  23. #elif defined(SANSA_CLIP) || defined(SANSA_CLIPV2)
  24.  
  25. to this:
  26.  
  27. #elif defined(SANSA_CLIPV2)
clone this paste RAW Paste Data