aboutsummaryrefslogtreecommitdiff
path: root/src/sam3x.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/sam3x.c
parente1c1162a1a666387133780efa31935e5b6dcc5c7 (diff)
Probe function return bool, true if device identified.
Correctly identify LM3S3748.
Diffstat (limited to 'src/sam3x.c')
-rw-r--r--src/sam3x.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sam3x.c b/src/sam3x.c
index 87ce020..d348701 100644
--- a/src/sam3x.c
+++ b/src/sam3x.c
@@ -109,7 +109,7 @@ static const char sam3x_xml_memory_map[] = "<?xml version=\"1.0\"?>"
#define PAGE_SIZE 256
-int sam3x_probe(struct target_s *target)
+bool sam3x_probe(struct target_s *target)
{
ADIv5_AP_t *ap = adiv5_target_ap(target);
@@ -125,9 +125,9 @@ int sam3x_probe(struct target_s *target)
target->flash_erase = sam3x_flash_erase;
target->flash_write = sam3x_flash_write;
target_add_commands(target, sam3x_cmd_list, sam3x_driver_str);
- return 0;
+ return true;
}
- return -1;
+ return false;
}
static int