aboutsummaryrefslogtreecommitdiff
path: root/src/include
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/include
parente1c1162a1a666387133780efa31935e5b6dcc5c7 (diff)
Probe function return bool, true if device identified.
Correctly identify LM3S3748.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/target.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/include/target.h b/src/include/target.h
index 9be0e18..31501f6 100644
--- a/src/include/target.h
+++ b/src/include/target.h
@@ -25,6 +25,8 @@
#ifndef __TARGET_H
#define __TARGET_H
+#include "general.h"
+
typedef struct target_s target;
/* The destroy callback function will be called by target_list_free() just
@@ -194,14 +196,14 @@ void target_add_commands(target *t, const struct command_s *cmds, const char *na
/* Probe for various targets.
* Actual functions implemented in their respective drivers.
*/
-int cortexm_probe(struct target_s *target);
-int stm32f1_probe(struct target_s *target);
-int stm32f4_probe(struct target_s *target);
-int stm32l1_probe(struct target_s *target);
-int lmi_probe(struct target_s *target);
-int lpc11xx_probe(struct target_s *target);
-int lpc43xx_probe(struct target_s *target);
-int sam3x_probe(struct target_s *target);
+bool cortexm_probe(struct target_s *target);
+bool stm32f1_probe(struct target_s *target);
+bool stm32f4_probe(struct target_s *target);
+bool stm32l1_probe(struct target_s *target);
+bool lmi_probe(struct target_s *target);
+bool lpc11xx_probe(struct target_s *target);
+bool lpc43xx_probe(struct target_s *target);
+bool sam3x_probe(struct target_s *target);
#endif