Advertisement
Guest User

sn9

a guest
Feb 28th, 2009
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. Index: src/jtag/ft2232.c
  2. ===================================================================
  3. --- src/jtag/ft2232.c (revision 1383)
  4. +++ src/jtag/ft2232.c (working copy)
  5. @@ -137,6 +137,7 @@
  6.  
  7. /* blink procedures for layouts that support a blinking led */
  8. void olimex_jtag_blink(void);
  9. +void flyswatter_jtag_blink(void);
  10. void turtle_jtag_blink(void);
  11.  
  12. ft2232_layout_t ft2232_layouts[] =
  13. @@ -148,7 +149,7 @@
  14. { "signalyzer", usbjtag_init, usbjtag_reset, NULL },
  15. { "evb_lm3s811", usbjtag_init, usbjtag_reset, NULL },
  16. { "olimex-jtag", olimex_jtag_init, olimex_jtag_reset, olimex_jtag_blink },
  17. - { "flyswatter", flyswatter_init, flyswatter_reset, NULL },
  18. + { "flyswatter", flyswatter_init, flyswatter_reset, flyswatter_jtag_blink },
  19. { "turtelizer2", turtle_init, turtle_reset, turtle_jtag_blink },
  20. { "comstick", comstick_init, comstick_reset, NULL },
  21. { "stm32stick", stm32stick_init, stm32stick_reset, NULL },
  22. @@ -2113,7 +2114,7 @@
  23. high_output = 0x00;
  24. high_direction = 0x0c;
  25.  
  26. - /* turn red LED1 on, LED2 off */
  27. + /* turn red LED3 on, LED2 off */
  28. high_output |= 0x08;
  29.  
  30. /* initialize high port */
  31. @@ -2283,6 +2284,19 @@
  32. }
  33.  
  34.  
  35. +void flyswatter_jtag_blink(void)
  36. +{
  37. + /*
  38. + * Flyswatter has two LEDs connected to ACBUS2 and ACBUS3
  39. + */
  40. + high_output ^= 0x0c;
  41. +
  42. + BUFFER_ADD = 0x82;
  43. + BUFFER_ADD = high_output;
  44. + BUFFER_ADD = high_direction;
  45. +}
  46. +
  47. +
  48. void turtle_jtag_blink(void)
  49. {
  50. /*
  51.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement