diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2013-06-06 12:08:35 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2013-06-06 12:08:35 +0900 |
commit | c838e3f0e92f60023c95c1138e5fd5e95d24c7ea (patch) | |
tree | 4b24005a08c638d9c642bb9c4f513dcba4203439 /example-led/sys.h | |
parent | 60e0fbd189ec02c7817e7db649cb41f70d445525 (diff) |
sys.h changes
Diffstat (limited to 'example-led/sys.h')
-rw-r--r-- | example-led/sys.h | 20 |
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]) (); +} |