[riot-commits] [RIOT-OS/RIOT] 97de8a: cpu/cc2538: don't pollute global namespace with cc...

benpicco noreply at github.com
Thu Sep 16 16:06:22 CEST 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 97de8afaf6d0dfa9fa43360749ba959cd606e156
      https://github.com/RIOT-OS/RIOT/commit/97de8afaf6d0dfa9fa43360749ba959cd606e156
  Author: Benjamin Valentin <benjamin.valentin at ml-pa.com>
  Date:   2021-09-16 (Thu, 16 Sep 2021)

  Changed paths:
    M cpu/cc2538/include/cc2538_rf.h
    M cpu/cc2538/include/cpu_conf.h
    M cpu/cc2538/periph/hwrng.c

  Log Message:
  -----------
  cpu/cc2538: don't pollute global namespace with cc2538_rfcore.h

`cc2538_rfcore.h` contains enums with non-prefixed single-word constants.
Those cause ugly naming conflicts down the line.
Only include the file when needed, don't include it in `cpu_conf.h` which
gets pulled in everywhere.


  Commit: ba481dda8b6ef6b1f11e8ca3c92fc98e32c5fd31
      https://github.com/RIOT-OS/RIOT/commit/ba481dda8b6ef6b1f11e8ca3c92fc98e32c5fd31
  Author: benpicco <benjamin.valentin at ml-pa.com>
  Date:   2021-09-16 (Thu, 16 Sep 2021)

  Changed paths:
    M cpu/cc2538/include/cc2538_rf.h
    M cpu/cc2538/include/cpu_conf.h
    M cpu/cc2538/periph/hwrng.c

  Log Message:
  -----------
  Merge pull request #16863 from benpicco/cc2538_rfcore

cpu/cc2538: don't pollute global namespace with cc2538_rfcore.h


Compare: https://github.com/RIOT-OS/RIOT/compare/35656d34621a...ba481dda8b6e


More information about the commits mailing list