2014-10-01 19:39:55 +02:00
|
|
|
/*
|
2017-04-04 19:56:25 +02:00
|
|
|
* Copyright (C) 2017 Eistec AB
|
2016-02-07 20:35:27 +01:00
|
|
|
* Copyright (C) 2014-2016 Freie Universität Berlin
|
2016-02-08 21:54:37 +01:00
|
|
|
* Copyright (C) 2015 James Hollister
|
2014-10-01 19:39:55 +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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2017-04-04 19:56:25 +02:00
|
|
|
* @addtogroup drivers
|
2014-10-01 19:39:55 +02:00
|
|
|
* @{
|
|
|
|
*
|
2015-05-22 07:34:41 +02:00
|
|
|
* @file
|
2017-04-04 19:56:25 +02:00
|
|
|
* @brief Generic implementation of the CPUID driver interface
|
2014-10-01 19:39:55 +02:00
|
|
|
*
|
|
|
|
* @author Thomas Eichinger <thomas.eichinger@fu-berlin.de>
|
2016-02-08 21:54:37 +01:00
|
|
|
* @author James Hollister <jhollisterjr@gmail.com>
|
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
2017-04-04 19:56:25 +02:00
|
|
|
* @author Joakim Nohlgård <joakim.nohlgard@eistec.se>
|
2016-02-07 20:35:27 +01:00
|
|
|
*
|
|
|
|
* @}
|
2014-10-01 19:39:55 +02:00
|
|
|
*/
|
|
|
|
|
2016-02-08 21:54:37 +01:00
|
|
|
#include <stdint.h>
|
2014-10-01 19:39:55 +02:00
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "periph/cpuid.h"
|
|
|
|
|
2017-04-04 19:56:25 +02:00
|
|
|
#ifdef CPUID_ADDR
|
2014-10-01 19:39:55 +02:00
|
|
|
void cpuid_get(void *id)
|
|
|
|
{
|
2017-04-04 19:56:25 +02:00
|
|
|
memcpy(id, (void *)CPUID_ADDR, CPUID_LEN);
|
2014-10-01 19:39:55 +02:00
|
|
|
}
|
2017-04-04 19:56:25 +02:00
|
|
|
#endif
|