diff options
Diffstat (limited to 'example-cdc/sys.h')
-rw-r--r-- | example-cdc/sys.h | 20 |
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]) (); +} |