Changes to last merge from review for compliance to coding standards

This commit is contained in:
Gregory Nutt 2015-11-17 21:10:17 -06:00
parent ace39d4b18
commit a6d6c430d9
2 changed files with 30 additions and 13 deletions

View File

@ -33,14 +33,23 @@
*
************************************************************************************/
#include <chip/stm32_memorymap.h>
#include <stm32/stm32_uid.h>
/************************************************************************************
* Included Files
************************************************************************************/
void stm32GetUniqueID(uint8_t uniqueID[12])
#include <chip/stm32_memorymap.h>
#include "stm32_uid.h"
/************************************************************************************
* Public Functions
************************************************************************************/
void stm32_get_uniqueid(uint8_t uniqueid[12])
{
int i;
for(i=0; i<12; i++)
{
uniqueID[i] = *((uint8_t*)(STM32_SYSMEM_UID)+i);
}
int i;
for (i = 0; i < 12; i++)
{
uniqueid[i] = *((uint8_t*)(STM32_SYSMEM_UID)+i);
}
}

View File

@ -1,5 +1,5 @@
/************************************************************************************
* arch/arm/include/stm32/stm32_uid.h
* arch/arm/src/stm32/stm32_uid.h
*
* Copyright (C) 2015 Marawan Ragab. All rights reserved.
* Author: Marawan Ragab <marawan31@gmail.com>
@ -33,11 +33,19 @@
*
************************************************************************************/
#ifndef __ARCH_ARM_INCLUDE_STM32_UID_H
#define __ARCH_ARM_INCLUDE_STM32_UID_H
#ifndef __ARCH_ARM_SRC_STM32_UID_H
#define __ARCH_ARM_SRC_STM32_UID_H
/************************************************************************************
* Included Files
************************************************************************************/
#include <stdint.h>
void stm32GetUniqueID(uint8_t uniqueID[12]);
/************************************************************************************
* Public Function Prototypes
************************************************************************************/
#endif /* __ARCH_ARM_INCLUDE_STM32_UID_H */
void stm32_get_uniqueid(uint8_t uniqueid[12]);
#endif /* __ARCH_ARM_SRC_STM32_UID_H */