aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorGareth McMullin2012-06-18 20:27:06 +1200
committerGareth McMullin2012-06-18 20:27:06 +1200
commitbc7e7d21128f8aaac4d2b6191bfd904fe76f7deb (patch)
treedf1f9e706b163ad3ae9df019fd6514523890d046 /src/include
parentbc5a6f022bf926353d09c3c1b69ddf05ee353edf (diff)
Removed target header files containing a single prototype.
Target probe prototypes are all in target.h now.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/cortexm.h33
-rw-r--r--src/include/lmi.h29
-rw-r--r--src/include/nxp_tgt.h28
-rw-r--r--src/include/stm32.h30
-rw-r--r--src/include/target.h9
5 files changed, 9 insertions, 120 deletions
diff --git a/src/include/cortexm.h b/src/include/cortexm.h
deleted file mode 100644
index fe4ac83..0000000
--- a/src/include/cortexm.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * 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 __CORTEXM_H
-#define __CORTEXM_H
-
-#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 */
-#define TOPT_FLAVOUR_V7MF (1<<1) /* if set, floating-point enabled. */
-
-int cortexm_probe(struct target_s *target);
-
-#endif
-
diff --git a/src/include/lmi.h b/src/include/lmi.h
deleted file mode 100644
index ac21a33..0000000
--- a/src/include/lmi.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * 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 __LMI_H
-#define __LMI_H
-
-#include "target.h"
-
-int lmi_probe(struct target_s *target);
-
-#endif
-
diff --git a/src/include/nxp_tgt.h b/src/include/nxp_tgt.h
deleted file mode 100644
index 20e4d5a..0000000
--- a/src/include/nxp_tgt.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * 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/stm32.h b/src/include/stm32.h
deleted file mode 100644
index 9413737..0000000
--- a/src/include/stm32.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * 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 __STM32_H
-#define __STM32_H
-
-#include "target.h"
-
-int stm32f1_probe(struct target_s *target);
-int stm32f4_probe(struct target_s *target);
-
-#endif
-
diff --git a/src/include/target.h b/src/include/target.h
index 5630b93..6f97950 100644
--- a/src/include/target.h
+++ b/src/include/target.h
@@ -176,5 +176,14 @@ typedef struct target_s {
extern target *target_list, *cur_target, *last_target;
+/* 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 lmi_probe(struct target_s *target);
+int lpc11xx_probe(struct target_s *target);
+
#endif