2015-07-04 09:37:54 +02:00
|
|
|
/*
|
2015-07-16 02:56:33 +02:00
|
|
|
* Copyright (C) 2015 Rakendra Thapa <rakendrathapa@gmail.com>
|
2015-07-04 09:37:54 +02:00
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2016-02-07 20:35:27 +01:00
|
|
|
* @addtogroup cpu_lm4f120
|
2015-07-04 09:37:54 +02:00
|
|
|
* @{
|
|
|
|
*
|
2016-02-07 20:35:27 +01:00
|
|
|
* @file
|
2015-07-16 02:56:33 +02:00
|
|
|
* @brief Low-level CPUID driver implementation
|
2015-07-04 09:37:54 +02:00
|
|
|
*
|
2015-07-16 02:56:33 +02:00
|
|
|
* @author Rakendra Thapa <rakendrathapa@gmail.com>
|
2016-02-07 20:35:27 +01:00
|
|
|
*
|
|
|
|
* @}
|
2015-07-04 09:37:54 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <string.h>
|
2016-02-07 20:35:27 +01:00
|
|
|
|
|
|
|
#include "cpu.h"
|
2015-07-04 09:37:54 +02:00
|
|
|
#include "periph/cpuid.h"
|
|
|
|
|
|
|
|
void cpuid_get(void *id)
|
|
|
|
{
|
2016-02-07 20:35:27 +01:00
|
|
|
memcpy(id, (void *)(NVIC_CPUID), CPUID_LEN);
|
2015-07-04 09:37:54 +02:00
|
|
|
}
|