/* * Copyright (C) 2018 Gunar Schorcht * * 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. */ /** * @ingroup cpu_esp8266 * @ingroup drivers_periph_cpuid * @{ * * @file * @brief Implementation * * @author Gunar Schorcht * * @} */ #include #include #include "periph/cpuid.h" #include "sdk/sdk.h" void cpuid_get(void *id) { uint32_t chip_id = system_get_chip_id(); memcpy(id, &(chip_id), CPUID_LEN); }