aboutsummaryrefslogtreecommitdiff
path: root/src/cortexm.c
diff options
context:
space:
mode:
authorGareth McMullin2015-03-01 22:16:04 -0800
committerGareth McMullin2015-03-01 22:16:04 -0800
commit4d4813de87721528fc9a06174dd1da5c245ae2f3 (patch)
tree298266ed212f574b51d21d5b3fa18d37a4388907 /src/cortexm.c
parent9d80641261cee52fdf1976caa41d4fd24c392c9a (diff)
Clean up includes everywhere.
All source files include general.h first and before anything else. This inlcludes platform.h and platform_support.h No header file needs to include to include any of these, but should include any others needed for it's own declarations.
Diffstat (limited to 'src/cortexm.c')
-rw-r--r--src/cortexm.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/cortexm.c b/src/cortexm.c
index 12914d3..a016342 100644
--- a/src/cortexm.c
+++ b/src/cortexm.c
@@ -28,11 +28,6 @@
* Issues:
* There are way too many magic numbers used here.
*/
-#include <unistd.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-
#include "general.h"
#include "jtagtap.h"
#include "jtag_scan.h"
@@ -42,6 +37,8 @@
#include "gdb_packet.h"
#include "cortexm.h"
+#include <unistd.h>
+
static char cortexm_driver_str[] = "ARM Cortex-M";
static bool cortexm_vector_catch(target *t, int argc, char *argv[]);