aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/cortexm3.h3
-rw-r--r--src/include/nxp_tgt.h28
-rw-r--r--src/include/target.h3
3 files changed, 34 insertions, 0 deletions
diff --git a/src/include/cortexm3.h b/src/include/cortexm3.h
index 7a3d449..9f6f24b 100644
--- a/src/include/cortexm3.h
+++ b/src/include/cortexm3.h
@@ -23,6 +23,9 @@
#include "target.h"
+/* target options recognised by the Cortex-M target */
+#define TOPT_FLAVOUR_V6M (1<<0) /* if not set, target is assumed to be v7m */
+
int cm3_probe(struct target_s *target);
#endif
diff --git a/src/include/nxp_tgt.h b/src/include/nxp_tgt.h
new file mode 100644
index 0000000..20e4d5a
--- /dev/null
+++ b/src/include/nxp_tgt.h
@@ -0,0 +1,28 @@
+/*
+ * This file is part of the Black Magic Debug project.
+ *
+ * Copyright (C) 2011 Black Sphere Technologies Ltd.
+ * Written by Gareth McMullin <gareth@blacksphere.co.nz>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __NXP_TGT_H
+#define __NXP_TGT_H
+
+#include "target.h"
+
+int lpc11xx_probe(struct target_s *target);
+
+#endif
diff --git a/src/include/target.h b/src/include/target.h
index 1ff61b5..5630b93 100644
--- a/src/include/target.h
+++ b/src/include/target.h
@@ -159,6 +159,9 @@ typedef struct target_s {
int (*check_hw_wp)(struct target_s *target, uint32_t *addr);
+ /* target-defined options */
+ unsigned target_options;
+
/* Flash memory access functions */
const char *xml_mem_map;
int (*flash_erase)(struct target_s *target, uint32_t addr, int len);