[riot-notifications] [RIOT-OS/RIOT] drivers/periph/cpuid: Fix typo in doc (#14080)

Alexandre Abadie notifications at github.com
Thu May 14 16:57:31 CEST 2020


@aabadie approved this pull request.

ACK

obvious typo:

<details>

```
git grep CPU_ID_LEN
drivers/include/periph/cpuid.h: * @param[out] id   The serial number of the CPU of length CPU_ID_LEN (must be
```

</details>

<details>

```
git grep CPUID_LEN
cpu/atmega_common/include/periph_cpu_common.h:#define CPUID_LEN           (4U)
cpu/cc2538/include/periph_cpu.h:#define CPUID_LEN           (8U)
cpu/cc26xx_cc13xx/include/periph_cpu_common.h:#define CPUID_LEN           (16U)
cpu/efm32/include/periph_cpu.h:#define CPUID_LEN           (8U)
cpu/esp32/include/periph_cpu.h:#define CPUID_LEN           (7U)
cpu/esp32/startup.c:    uint8_t cpu_id[CPUID_LEN];
cpu/esp32/startup.c:    for (unsigned i = 0; i < CPUID_LEN; i++) {
cpu/esp8266/include/periph_cpu.h:#define CPUID_LEN           (4U)
cpu/esp8266/periph/cpuid.c:    memcpy(id, &(chip_id), CPUID_LEN);
cpu/ezr32wg/include/periph_cpu.h:#define CPUID_LEN           (8U)
cpu/fe310/include/periph_cpu.h:#define CPUID_LEN           (12U)
cpu/fe310/periph/cpuid.c:    memcpy(id, &result[0], CPUID_LEN);
cpu/kinetis/include/periph_cpu.h:#define CPUID_LEN           (16U)
cpu/kinetis/include/periph_cpu.h:#define CPUID_LEN           (12U)
cpu/lpc1768/include/cpu_conf.h:#define CPUID_LEN                       (16U)
cpu/lpc1768/periph/cpuid.c:        memcpy(id, &result[1], CPUID_LEN);
cpu/lpc1768/periph/cpuid.c:        memset(id, 0xFF, CPUID_LEN);
cpu/mips_pic32_common/include/periph_cpu_common.h:#define CPUID_LEN           (4U)
cpu/mips_pic32_common/periph/cpuid.c:    memcpy(id, (uint32_t*)&DEVID, CPUID_LEN);
cpu/native/include/periph_cpu.h:#ifndef CPUID_LEN
cpu/native/include/periph_cpu.h:#define CPUID_LEN           (4U)
cpu/native/periph/cpuid.c:    /* Just in case _native_id is shorter than CPUID_LEN: */
cpu/native/periph/cpuid.c:    size_t len = CPUID_LEN;
cpu/native/periph/cpuid.c:    if (sizeof(_native_id) < CPUID_LEN) {
cpu/native/periph/cpuid.c:                CPUID_LEN - sizeof(_native_id));
cpu/nrf5x_common/include/periph_cpu_common.h:#define CPUID_LEN           (8U)
cpu/nrf5x_common/radio/nrfmin/nrfmin.c:    uint8_t cpuid[CPUID_LEN];
cpu/nrf5x_common/radio/nrfmin/nrfmin.c:    for (unsigned i = 0; i < CPUID_LEN; i++) {
cpu/sam0_common/include/periph_cpu_common.h:#define CPUID_LEN           (16U)
cpu/sam0_common/periph/cpuid.c:    memcpy(id, &addr[0], CPUID_LEN);
cpu/sam3/include/periph_cpu.h:#define CPUID_LEN           (16U)
cpu/sam3/periph/cpuid.c:    memcpy(id, (void*)cpuid, CPUID_LEN);
cpu/stm32_common/include/periph_cpu_common.h:#define CPUID_LEN           (12U)
doc/doxygen/riot.doxyfile:                         CPUID_LEN \
drivers/include/periph/cpuid.h: * @def CPUID_LEN
drivers/include/periph/cpuid.h:#if CPUID_LEN
drivers/include/periph/cpuid.h:#endif /* CPUID_LEN */
drivers/periph_common/cpuid.c:    memcpy(id, (void *)CPUID_ADDR, CPUID_LEN);
pkg/openthread/contrib/platform_random.c:#ifdef CPUID_LEN
pkg/openthread/contrib/platform_random.c:    char cpu_id[CPUID_LEN];
pkg/openthread/contrib/platform_random.c:    for (unsigned i = 0; i < CPUID_LEN; i++) {
sys/luid/luid.c:#if CPUID_LEN
sys/luid/luid.c:    uint8_t cid[CPUID_LEN];
sys/luid/luid.c:    for (size_t i = 0; i < MAX(len, CPUID_LEN); i++) {
sys/luid/luid.c:        out[i % len] ^= cid[i % CPUID_LEN];
tests/periph_cpuid/main.c:    uint8_t id[CPUID_LEN];
tests/periph_cpuid/main.c:    printf("CPUID_LEN: %u\n", CPUID_LEN);
tests/periph_cpuid/main.c:    for (unsigned int i = 0; i < CPUID_LEN; i++) {
tests/periph_cpuid/tests/01-run.py:    child.expect(r'CPUID_LEN: (\d+)\r\n')
```

</details>



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14080#pullrequestreview-411891221
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200514/1a0a74d9/attachment-0001.htm>


More information about the notifications mailing list