Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 19th, 2010  |  syntax: Diff  |  size: 0.85 KB  |  views: 115  |  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. diff --git a/rbutil/mkamsboot/dualboot/dualboot.S b/rbutil/mkamsboot/dualboot/dualboot.S
  2. index 8bb2059..2c86a75 100644
  3. --- a/rbutil/mkamsboot/dualboot/dualboot.S
  4. +++ b/rbutil/mkamsboot/dualboot/dualboot.S
  5. @@ -101,7 +101,7 @@ uclcopy:
  6.  /* TODO : M200V4 ? */
  7.  #if defined(SANSA_CLIP) || defined(SANSA_CLIPV2)
  8.  #define USB_PIN 6
  9. -#elif defined(SANSA_FUZE) || defined(SANSA_E200V2) || defined(SANSA_FUZEV2)
  10. +#elif defined(SANSA_FUZE) || defined(SANSA_E200V2)
  11.  #define USB_PIN 3
  12.  #endif
  13.  
  14. @@ -223,6 +223,12 @@ uclcopy:
  15.  #ifdef SANSA_FUZEV2
  16.          /* the logic is reversed on the fuzev2 */
  17.          bne     boot_of
  18. +
  19. +        @ FAILSAFE @
  20. +        ldr     r1, [r0, #0x40]    /* read pin C4 */
  21. +        cmp     r1, #0             /* C4 != #0 means button pressed */
  22. +        bne     boot_of
  23. +
  24.  #else
  25.          beq     boot_of
  26.  #endif /* SANSA_FUZEV2 */
clone this paste RAW Paste Data