aboutsummaryrefslogtreecommitdiff
path: root/mcu/sys-stm32f103.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2016-05-31 11:49:01 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2016-05-31 11:49:01 +0900
commit3a4e1f2bd59a5185e638a2552c64344d78e0f54f (patch)
treea25424f8b4264ab8c8485b5c086102061e885e4d /mcu/sys-stm32f103.h
parent421fd8019b31386c6e689753cf0a2ff35bd2af50 (diff)
Cleanup of sys and its macro
Diffstat (limited to 'mcu/sys-stm32f103.h')
-rw-r--r--mcu/sys-stm32f103.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/mcu/sys-stm32f103.h b/mcu/sys-stm32f103.h
index aa7825d..7685f27 100644
--- a/mcu/sys-stm32f103.h
+++ b/mcu/sys-stm32f103.h
@@ -12,8 +12,10 @@
#define BOARD_ID_NITROKEY_START 0xad1e7ebd
extern const uint8_t sys_version[8];
+#if defined(USE_SYS3) || defined(USE_SYS_BOARD_ID)
extern const uint32_t sys_board_id;
extern const uint8_t sys_board_name[];
+#endif
typedef void (*handler)(void);
extern handler vector[16];
@@ -109,22 +111,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