diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2016-05-31 11:49:01 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2016-05-31 11:49:01 +0900 |
commit | 3a4e1f2bd59a5185e638a2552c64344d78e0f54f (patch) | |
tree | a25424f8b4264ab8c8485b5c086102061e885e4d /entry.c | |
parent | 421fd8019b31386c6e689753cf0a2ff35bd2af50 (diff) |
Cleanup of sys and its macro
Diffstat (limited to 'entry.c')
-rw-r--r-- | entry.c | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -31,21 +31,20 @@ #include <stdlib.h> #include <chopstx.h> -#ifdef HAVE_SYS_H -#define INLINE __attribute__ ((used)) #include "board.h" -#ifdef MCU_KINETIS_L -#include "mcu/sys-mkl27z.h" -#else -#include "mcu/sys-stm32f103.h" -#undef STM32F10X_MD /* Prepare for high density device, too. */ -#endif +#if defined(USE_SYS3) || defined(USE_SYS_CLOCK_GPIO_SETTING) +#define REQUIRE_CLOCK_GPIO_SETTING_IN_SYS +#include "sys.h" +/* + * Avoid medium density specific code and prepare for high density + * device, too. + */ +#undef STM32F10X_MD #else -#include "board.h" #if defined (MCU_KINETIS_L) #include "mcu/clk_gpio_init-mkl27z.c" #else -#include "mcu/clk_gpio_init-stm32f103.c" +#include "mcu/clk_gpio_init-stm32.c" #endif #endif |