From 25e54726a333d66520ad1129a6faae8abaa57365 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 18 Nov 2015 14:33:27 -0600 Subject: [PATCH] STM32: Fix a build error detected by tools/testbuil.sh: The STM32L does not define UID address --- arch/arm/src/stm32/stm32_uid.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/src/stm32/stm32_uid.c b/arch/arm/src/stm32/stm32_uid.c index d38447726f..5456b2027d 100644 --- a/arch/arm/src/stm32/stm32_uid.c +++ b/arch/arm/src/stm32/stm32_uid.c @@ -37,9 +37,14 @@ * Included Files ************************************************************************************/ +#include + #include + #include "stm32_uid.h" +#ifdef STM32_SYSMEM_UID /* Not defined for the STM32L */ + /************************************************************************************ * Public Functions ************************************************************************************/ @@ -53,3 +58,6 @@ void stm32_get_uniqueid(uint8_t uniqueid[12]) uniqueid[i] = *((uint8_t*)(STM32_SYSMEM_UID)+i); } } + +#endif /* STM32_SYSMEM_UID */ +