aboutsummaryrefslogtreecommitdiff
path: root/src/nxp_tgt.c
diff options
context:
space:
mode:
authorGareth McMullin2012-11-03 23:51:53 +1300
committerGareth McMullin2012-11-03 23:53:25 +1300
commit2637f072a1e973826ea4b374125621ef1a0dc901 (patch)
tree5dc228f1e9256ab4e26ae3e0c2ac15cc4d33098b /src/nxp_tgt.c
parente1c1162a1a666387133780efa31935e5b6dcc5c7 (diff)
Probe function return bool, true if device identified.
Correctly identify LM3S3748.
Diffstat (limited to 'src/nxp_tgt.c')
-rw-r--r--src/nxp_tgt.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/nxp_tgt.c b/src/nxp_tgt.c
index 4636e39..ca6a81f 100644
--- a/src/nxp_tgt.c
+++ b/src/nxp_tgt.c
@@ -67,7 +67,7 @@ static const char lpc11xx_xml_memory_map[] = "<?xml version=\"1.0\"?>"
"</memory-map>";
-int
+bool
lpc11xx_probe(struct target_s *target)
{
uint32_t idcode;
@@ -101,13 +101,10 @@ lpc11xx_probe(struct target_s *target)
target->flash_erase = lpc11xx_flash_erase;
target->flash_write = lpc11xx_flash_write;
- return 0;
-
- default:
- break;
+ return true;
}
- return -1;
+ return false;
}
static void