STM32: Fix a build error detected by tools/testbuil.sh: The STM32L does not define UID address

This commit is contained in:
Gregory Nutt 2015-11-18 14:33:27 -06:00
parent 992d7d1e85
commit 25e54726a3

View File

@ -37,9 +37,14 @@
* Included Files * Included Files
************************************************************************************/ ************************************************************************************/
#include <nuttx/config.h>
#include <chip/stm32_memorymap.h> #include <chip/stm32_memorymap.h>
#include "stm32_uid.h" #include "stm32_uid.h"
#ifdef STM32_SYSMEM_UID /* Not defined for the STM32L */
/************************************************************************************ /************************************************************************************
* Public Functions * Public Functions
************************************************************************************/ ************************************************************************************/
@ -53,3 +58,6 @@ void stm32_get_uniqueid(uint8_t uniqueid[12])
uniqueid[i] = *((uint8_t*)(STM32_SYSMEM_UID)+i); uniqueid[i] = *((uint8_t*)(STM32_SYSMEM_UID)+i);
} }
} }
#endif /* STM32_SYSMEM_UID */