diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2016-05-31 21:41:40 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2016-05-31 21:41:40 +0900 |
commit | b6e3a1aba124473b0fff9c8bc0b04cb01962391d (patch) | |
tree | bafedcc7b50cb0e5bef0d5b3ca5b39d52a2d472d /mcu/sys-stm32f030.h | |
parent | c79a41870a9d473947adb1d2fbc6687b59b9c31b (diff) |
Relicense ADC driver with GPLv3+ plus EXCEPTION
Diffstat (limited to 'mcu/sys-stm32f030.h')
-rw-r--r-- | mcu/sys-stm32f030.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/mcu/sys-stm32f030.h b/mcu/sys-stm32f030.h index 4f18291..ddd83af 100644 --- a/mcu/sys-stm32f030.h +++ b/mcu/sys-stm32f030.h @@ -113,22 +113,18 @@ 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 +#ifdef REQUIRE_CLOCK_GPIO_SETTING_IN_SYS +/* Provide the function entries. */ -static INLINE void +static void __attribute__ ((used)) clock_init (void) { (*vector[13]) (); } -static INLINE void +static void __attribute__ ((used)) gpio_init (void) { (*vector[14]) (); } +#endif |