CMSIS-DAP debug adapter
Dependencies: BaseDAP SWD USBDAP USBDevice mbed
Fork of Simple-CMSIS-DAP by
SWD | TG-LPC11U35-501 |
---|---|
SWDIO | p6(P0_8) |
SWCLK | p8(P0_7) |
nRESET | p30(P0_1) |
Diff: main.cpp
- Revision:
- 2:f9c48f0a3efe
- Parent:
- 1:2957e24bb52f
--- a/main.cpp Sat Jul 05 08:26:21 2014 +0000 +++ b/main.cpp Sun Jul 05 00:18:37 2015 +0000 @@ -2,9 +2,15 @@ #include "USBDAP.h" #include "BaseDAP.h" +#if defined(TARGET_MCU_LPC11U35_501) +SWD swd(p6, p8, p30); // SWDIO,SWCLK,nRESET +DigitalOut connected(LED1); +DigitalOut running(LED2); +#else SWD swd(D12, D10, D6); // SWDIO,SWCLK,nRESET DigitalOut connected(LED_GREEN); DigitalOut running(LED_RED); +#endif class myDAP : public BaseDAP { public: