cpu/cc2538: centralized all cpu specific includes

- added all CPU specific includes to cpu-conf.h
- removed now not needed includes from cpu .c files
This commit is contained in:
Hauke Petersen 2014-10-22 16:22:47 +02:00 committed by Hauke Petersen
parent 18ac4dfcb9
commit ccd601b429
8 changed files with 8 additions and 20 deletions

View File

@ -18,7 +18,6 @@
*/
#include "cpu.h"
#include "sys-ctrl.h"
#define BIT(n) ( 1UL << (n) )

View File

@ -20,6 +20,13 @@
#define __CPU_CONF_H
#include "cc2538.h"
#include "cc2538-gpio.h"
#include "cc2538-uart.h"
#include "gptimer.h"
#include "ioc.h"
#include "soc-adc.h"
#include "rfcore.h"
#include "sys-ctrl.h"
#ifdef __cplusplus
extern "C" {

View File

@ -19,8 +19,6 @@
#ifndef __HWTIMER_CPU_H
#define __HWTIMER_CPU_H
#include "gptimer.h"
#ifdef __cplusplus
extern "C" {
#endif
@ -29,7 +27,7 @@ extern "C" {
* @name Hardware timer configuration
* @{
*/
#define HWTIMER_MAXTIMERS NUM_CHANNELS_PER_GPTIMER /**< Number of hwtimers */
#define HWTIMER_MAXTIMERS 2 /**< Number of hwtimers */
#define HWTIMER_SPEED 1000000 /**< The hardware timer runs at 1MHz */
#define HWTIMER_MAXTICKS 0xFFFFFFFF /**< 32-bit timer */
/** @} */

View File

@ -23,7 +23,6 @@
#include <string.h>
#include "cpu.h"
#include "cpu-conf.h"
#include "periph/cpuid.h"
#define BITS_PER_BYTE 8

View File

@ -23,9 +23,6 @@
#include "cpu.h"
#include "sched.h"
#include "thread.h"
#include "cc2538-gpio.h"
#include "ioc.h"
#include "periph/gpio.h"
#include "periph_conf.h"

View File

@ -21,9 +21,6 @@
#include <stdint.h>
#include "cpu.h"
#include "rfcore.h"
#include "soc-adc.h"
#include "periph_conf.h"
#include "periph/random.h"

View File

@ -25,9 +25,6 @@
#include "cpu.h"
#include "sched.h"
#include "thread.h"
#include "gptimer.h"
#include "periph/timer.h"
#include "periph_conf.h"

View File

@ -24,12 +24,6 @@
#include "cpu.h"
#include "sched.h"
#include "thread.h"
#include "cc2538-gpio.h"
#include "cc2538-uart.h"
#include "ioc.h"
#include "sys-ctrl.h"
#include "periph/uart.h"
#include "periph_conf.h"