Restore LED behaviour.
This commit is contained in:
parent
45e322b9a3
commit
40f960db4d
|
@ -182,6 +182,7 @@ static bool cmd_jtag_scan(target *t, int argc, char **argv)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
cmd_targets();
|
cmd_targets();
|
||||||
|
morse(NULL, false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -213,6 +214,7 @@ bool cmd_swdp_scan(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd_targets();
|
cmd_targets();
|
||||||
|
morse(NULL, false);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
#include "target.h"
|
#include "target.h"
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
#include "crc32.h"
|
#include "crc32.h"
|
||||||
|
#include "morse.h"
|
||||||
|
|
||||||
enum gdb_signal {
|
enum gdb_signal {
|
||||||
GDB_SIGINT = 2,
|
GDB_SIGINT = 2,
|
||||||
|
@ -183,6 +184,7 @@ int gdb_main_loop(struct target_controller *tc, bool in_syscall)
|
||||||
switch (reason) {
|
switch (reason) {
|
||||||
case TARGET_HALT_ERROR:
|
case TARGET_HALT_ERROR:
|
||||||
gdb_putpacket_f("X%02X", GDB_SIGLOST);
|
gdb_putpacket_f("X%02X", GDB_SIGLOST);
|
||||||
|
morse("TARGET LOST.", true);
|
||||||
break;
|
break;
|
||||||
case TARGET_HALT_REQUEST:
|
case TARGET_HALT_REQUEST:
|
||||||
gdb_putpacket_f("T%02X", GDB_SIGINT);
|
gdb_putpacket_f("T%02X", GDB_SIGINT);
|
||||||
|
|
|
@ -99,9 +99,9 @@
|
||||||
#define LED_0 GPIO2
|
#define LED_0 GPIO2
|
||||||
#define LED_1 GPIO10
|
#define LED_1 GPIO10
|
||||||
#define LED_2 GPIO11
|
#define LED_2 GPIO11
|
||||||
#define LED_UART (platform_hwversion() < 2 ? LED_2 : LED_0)
|
#define LED_UART LED_0
|
||||||
#define LED_IDLE_RUN LED_1
|
#define LED_IDLE_RUN LED_1
|
||||||
#define LED_ERROR (platform_hwversion() < 2 ? LED_0 : LED_2)
|
#define LED_ERROR LED_2
|
||||||
|
|
||||||
#define TMS_SET_MODE() \
|
#define TMS_SET_MODE() \
|
||||||
gpio_set_mode(TMS_PORT, GPIO_MODE_OUTPUT_50_MHZ, \
|
gpio_set_mode(TMS_PORT, GPIO_MODE_OUTPUT_50_MHZ, \
|
||||||
|
|
Loading…
Reference in New Issue