1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

Merge pull request #1862 from haukepetersen/fix_cc2538_includecleanup

cpu/cc2538: centralized all cpu specific includes
This commit is contained in:
Thomas Eichinger 2014-10-24 14:23:43 +02:00
commit 2e9d4cbba4
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"