aboutsummaryrefslogtreecommitdiff
path: root/src/lpc43xx.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/lpc43xx.c
parente1c1162a1a666387133780efa31935e5b6dcc5c7 (diff)
Probe function return bool, true if device identified.
Correctly identify LM3S3748.
Diffstat (limited to 'src/lpc43xx.c')
-rw-r--r--src/lpc43xx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lpc43xx.c b/src/lpc43xx.c
index 2652b42..ca1b351 100644
--- a/src/lpc43xx.c
+++ b/src/lpc43xx.c
@@ -24,7 +24,7 @@
#define LPC43XX_CHIPID 0x40043200
#define ARM_CPUID 0xE000ED00
-int lpc43xx_probe(struct target_s *target)
+bool lpc43xx_probe(struct target_s *target)
{
uint32_t chipid, cpuid;
@@ -45,9 +45,9 @@ int lpc43xx_probe(struct target_s *target)
default:
target->driver = "LPC43xx <Unknown>";
}
- return 0;
+ return true;
}
- return -1;
+ return false;
}