diff options
author | Dan Garcia <dangarcia@apple.com> | 2019-08-26 21:45:43 +0300 |
---|---|---|
committer | Dan Garcia <dangarcia@apple.com> | 2019-08-26 21:45:43 +0300 |
commit | 8b31b643e42d8a53a3df9abc96bf45f00adf52df (patch) | |
tree | 1d0c9a848d9e3864cd9ae08a4334aa6d93fff36f | |
parent | be47737f0481ab02362987fb46ffe10660d64495 (diff) |
Should fix the build error in #873
-rw-r--r-- | platforms/arm/stm32/fastpin_arm_stm32.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platforms/arm/stm32/fastpin_arm_stm32.h b/platforms/arm/stm32/fastpin_arm_stm32.h index c80390f3..274d0f60 100644 --- a/platforms/arm/stm32/fastpin_arm_stm32.h +++ b/platforms/arm/stm32/fastpin_arm_stm32.h @@ -58,11 +58,11 @@ public: #if defined(STM32F10X_MD) #define _R(T) struct __gen_struct_ ## T #define _RD32(T) struct __gen_struct_ ## T { static __attribute__((always_inline)) inline volatile GPIO_TypeDef * r() { return T; } }; - #define _FL_IO(L,C) _RD32(GPIO ## L); __FL_DEFINE_PORT3(L, C, _R(GPIO ## L)); + #define _FL_IO(L,C) _RD32(GPIO ## L); _FL_DEFINE_PORT3(L, C, _R(GPIO ## L)); #elif defined(__STM32F1__) #define _R(T) struct __gen_struct_ ## T #define _RD32(T) struct __gen_struct_ ## T { static __attribute__((always_inline)) inline gpio_reg_map* r() { return T->regs; } }; - #define _FL_IO(L,C) _RD32(GPIO ## L); __FL_DEFINE_PORT3(L, C, _R(GPIO ## L)); + #define _FL_IO(L,C) _RD32(GPIO ## L); _FL_DEFINE_PORT3(L, C, _R(GPIO ## L)); #else #error "Platform not supported" #endif |