aboutsummaryrefslogtreecommitdiff
path: root/example-cdc/sys.h
diff options
context:
space:
mode:
Diffstat (limited to 'example-cdc/sys.h')
-rw-r--r--example-cdc/sys.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/example-cdc/sys.h b/example-cdc/sys.h
index 1f5b602..ce0eb1d 100644
--- a/example-cdc/sys.h
+++ b/example-cdc/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]) ();
+}