aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/cortexm.h3
-rw-r--r--src/include/general.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/include/cortexm.h b/src/include/cortexm.h
index 1fd77e6..8f4d45d 100644
--- a/src/include/cortexm.h
+++ b/src/include/cortexm.h
@@ -146,6 +146,9 @@
bool cortexm_attach(struct target_s *target);
void cortexm_detach(struct target_s *target);
void cortexm_halt_resume(struct target_s *target, bool step);
+int cortexm_run_stub(struct target_s *target, uint32_t loadaddr,
+ const uint16_t *stub, uint32_t stublen,
+ uint32_t r0, uint32_t r1, uint32_t r2, uint32_t r3);
#endif
diff --git a/src/include/general.h b/src/include/general.h
index 2cb4bd9..cf8c1e6 100644
--- a/src/include/general.h
+++ b/src/include/general.h
@@ -38,5 +38,7 @@
#define DEBUG printf
#endif
+#define ALIGN(x, n) (((x) + (n) - 1) & ~((n) - 1))
+
#endif