1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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.
This commit is contained in:
Benjamin Valentin 2021-09-16 15:31:22 +02:00
parent 35656d3462
commit 97de8afaf6
3 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@
#include <stdbool.h>
#include "board.h"
#include "cc2538_rfcore.h"
#include "net/ieee802154.h"
#include "kernel_defines.h"

View File

@ -27,7 +27,6 @@
#include "cc2538_gptimer.h"
#include "cc2538_soc_adc.h"
#include "cc2538_ssi.h"
#include "cc2538_rfcore.h"
#include "cc2538_sys_ctrl.h"
#ifdef __cplusplus

View File

@ -25,6 +25,7 @@
#include "vendor/hw_soc_adc.h"
#include "cpu.h"
#include "cc2538_rfcore.h"
#include "periph/hwrng.h"
#define ENABLE_DEBUG 0