aboutsummaryrefslogtreecommitdiff
path: root/example-led/sys.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2013-06-06 12:08:35 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2013-06-06 12:08:35 +0900
commitc838e3f0e92f60023c95c1138e5fd5e95d24c7ea (patch)
tree4b24005a08c638d9c642bb9c4f513dcba4203439 /example-led/sys.h
parent60e0fbd189ec02c7817e7db649cb41f70d445525 (diff)
sys.h changes
Diffstat (limited to 'example-led/sys.h')
-rw-r--r--example-led/sys.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/example-led/sys.h b/example-led/sys.h
index 1f5b602..ce0eb1d 100644
--- a/example-led/sys.h
+++ b/example-led/sys.h
@@ -93,3 +93,23 @@ nvic_system_reset (void)
{
(*vector[12]) ();
}
+
+/*
+ * Users can override INLINE by 'attribute((used))' to have an
+ * implementation defined.
+ */
+#if !defined(INLINE)
+#define INLINE __inline__
+#endif
+
+static INLINE void
+clock_init (void)
+{
+ (*vector[13]) ();
+}
+
+static INLINE void
+gpio_init (void)
+{
+ (*vector[14]) ();
+}