aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorGareth McMullin2015-03-08 13:35:07 -0700
committerGareth McMullin2015-03-19 07:48:57 -0700
commit437aedda11a112407af7b3f7884090023944faef (patch)
tree77f04bd2c8c06b12d3272cd33931cc227a46f913 /src/include
parentc2462a6788c119edd9995fa46f1316a9c0431e0b (diff)
Rewrote stm32f1 stub in C and call with parameters in registers.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/general.h2
1 files changed, 2 insertions, 0 deletions
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