Skip to content
Snippets Groups Projects
Commit ed4cb561 authored by Hauke Petersen's avatar Hauke Petersen
Browse files

boards/remote: fixed includes

parent 3fa8a5e8
Branches
No related tags found
No related merge requests found
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#ifndef PERIPH_COMMON_H #ifndef PERIPH_COMMON_H
#define PERIPH_COMMON_H #define PERIPH_COMMON_H
#include "cc2538_gpio.h"
#include "periph_cpu.h" #include "periph_cpu.h"
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#define BOARD_H #define BOARD_H
#include "cpu.h" #include "cpu.h"
#include "periph/gpio.h"
#include "board_common.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
...@@ -74,6 +72,11 @@ ...@@ -74,6 +72,11 @@
#define RF_SWITCH_TOGGLE (RF_SWITCH_PORT->DATA ^= (1 << RF_SWITCH_PIN)) #define RF_SWITCH_TOGGLE (RF_SWITCH_PORT->DATA ^= (1 << RF_SWITCH_PIN))
/** @} */ /** @} */
/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/
void board_init(void);
#ifdef __cplusplus #ifdef __cplusplus
} /* end extern "C" */ } /* end extern "C" */
#endif #endif
......
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
#ifndef PERIPH_CONF_H #ifndef PERIPH_CONF_H
#define PERIPH_CONF_H #define PERIPH_CONF_H
#include "cc2538_gpio.h"
#include "periph_cpu.h"
#include "periph_common.h" #include "periph_common.h"
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -23,9 +23,6 @@ ...@@ -23,9 +23,6 @@
#define BOARD_H #define BOARD_H
#include "cpu.h" #include "cpu.h"
#include "periph/gpio.h"
#include "periph/spi.h"
#include "board_common.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
...@@ -111,6 +108,11 @@ ...@@ -111,6 +108,11 @@
#define CC1200_GPD2_GPIO GPIO_PB0 #define CC1200_GPD2_GPIO GPIO_PB0
/** @} */ /** @} */
/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/
void board_init(void);
#ifdef __cplusplus #ifdef __cplusplus
} /* end extern "C" */ } /* end extern "C" */
#endif #endif
......
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
#ifndef PERIPH_CONF_H #ifndef PERIPH_CONF_H
#define PERIPH_CONF_H #define PERIPH_CONF_H
#include "cc2538_gpio.h"
#include "periph_cpu.h"
#include "periph_common.h" #include "periph_common.h"
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -23,9 +23,6 @@ ...@@ -23,9 +23,6 @@
#define BOARD_H #define BOARD_H
#include "cpu.h" #include "cpu.h"
#include "periph/gpio.h"
#include "periph/spi.h"
#include "board_common.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
...@@ -123,6 +120,11 @@ ...@@ -123,6 +120,11 @@
#define SDCARD_SPI_PARAM_POWER_AH false #define SDCARD_SPI_PARAM_POWER_AH false
/** @} */ /** @} */
/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/
void board_init(void);
#ifdef __cplusplus #ifdef __cplusplus
} /* end extern "C" */ } /* end extern "C" */
#endif #endif
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "cc2538_gptimer.h" #include "cc2538_gptimer.h"
#include "cc2538_ioc.h" #include "cc2538_ioc.h"
#include "cc2538_soc_adc.h" #include "cc2538_soc_adc.h"
#include "cc2538_ssi.h"
#include "cc2538_rfcore.h" #include "cc2538_rfcore.h"
#include "cc2538_sys_ctrl.h" #include "cc2538_sys_ctrl.h"
......
...@@ -21,9 +21,7 @@ ...@@ -21,9 +21,7 @@
#include <stdint.h> #include <stdint.h>
#include "cc2538_gptimer.h" #include "cpu.h"
#include "cc2538_ssi.h"
#include "cc2538_gpio.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
...@@ -50,6 +48,8 @@ typedef uint32_t gpio_t; ...@@ -50,6 +48,8 @@ typedef uint32_t gpio_t;
*/ */
#define GPIO_PIN(port, pin) (gpio_t)(((uint32_t)GPIO_A + (port << 12)) | pin) #define GPIO_PIN(port, pin) (gpio_t)(((uint32_t)GPIO_A + (port << 12)) | pin)
#define GPIO_UNDEF 99
/** /**
* @brief I2C configuration options * @brief I2C configuration options
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment