diff --git a/configs/nucleo-f303re/src/stm32_uid.c b/configs/nucleo-f303re/src/stm32_uid.c index ba55160cab2..5637650d336 100644 --- a/configs/nucleo-f303re/src/stm32_uid.c +++ b/configs/nucleo-f303re/src/stm32_uid.c @@ -36,23 +36,34 @@ /************************************************************************************ * Included Files ************************************************************************************/ + #include -#include + +#include #include "stm32_uid.h" +#include + +/************************************************************************************ + * Pre-processor Definitions + ************************************************************************************/ + #ifndef OK # define OK 0 #endif -#define ERR_NULL 1 /************************************************************************************ * Public Functions ************************************************************************************/ + #if defined(CONFIG_BOARDCTL_UNIQUEID) int board_uniqueid(uint8_t *uniqueid) { - if(uniqueid == 0) - return -ERR_NULL; + if (uniqueid == 0) + { + return -EINVAL; + } + stm32_get_uniqueid(uniqueid); return OK; }