Cleaned 802.15.4_RF to not have mbed.h includes

pull/9210/head
Antti Kauppila 2018-12-28 15:19:03 +02:00
parent 02b0f79e15
commit 2ff6cd3df3
5 changed files with 27 additions and 4 deletions

View File

@ -26,6 +26,12 @@
#include "nanostack/platform/arm_hal_phy.h"
#include "mbed_trace.h"
#include "mbed_toolchain.h"
#include "DigitalIn.h"
#include "DigitalOut.h"
#include "InterruptIn.h"
#include "SPI.h"
#include "inttypes.h"
#include "Timeout.h"
#define TRACE_GROUP "AtRF"
@ -219,8 +225,9 @@ static inline rf_trx_states_t rf_if_trx_status_from_full(uint8_t full_trx_status
}
#ifdef MBED_CONF_RTOS_PRESENT
#include "mbed.h"
#include "rtos.h"
using namespace mbed;
using namespace rtos;

View File

@ -18,8 +18,13 @@
#define NANOSTACK_PHY_MCR20A_H_
#if defined(MBED_CONF_NANOSTACK_CONFIGURATION) && DEVICE_SPI && defined(MBED_CONF_RTOS_PRESENT)
#include "mbed.h"
#include "inttypes.h"
#include "NanostackRfPhy.h"
#include "DigitalIn.h"
#include "DigitalOut.h"
#include "InterruptIn.h"
#include "SPI.h"
#include "rtos.h"
// Arduino pin defaults for convenience
#if !defined(MCR20A_SPI_MOSI)

View File

@ -22,6 +22,7 @@
#include "nanostack/platform/arm_hal_phy.h"
#include <string.h>
#include "rtos.h"
#include "mbed_interface.h"
using namespace mbed;
using namespace rtos;

View File

@ -26,6 +26,12 @@
#include "mbed_toolchain.h"
#include "common_functions.h"
#include <Timer.h>
#include "Timeout.h"
#include "Thread.h"
#include "mbed_wait_api.h"
using namespace mbed;
using namespace rtos;
#define TRACE_GROUP "s2lp"
@ -216,7 +222,7 @@ static const phy_device_channel_page_s phy_channel_pages[] = {
};
#ifdef MBED_CONF_RTOS_PRESENT
#include "mbed.h"
#include "rtos.h"
static void rf_irq_task_process_irq();

View File

@ -18,8 +18,12 @@
#define NANOSTACK_PHY_S2LP_H_
#if defined(MBED_CONF_NANOSTACK_CONFIGURATION) && DEVICE_SPI && defined(MBED_CONF_RTOS_PRESENT)
#include "mbed.h"
#include "inttypes.h"
#include "NanostackRfPhy.h"
#include "DigitalIn.h"
#include "DigitalOut.h"
#include "InterruptIn.h"
#include "SPI.h"
// Uncomment to use testing gpios attached to TX/RX processes
//#define TEST_GPIOS_ENABLED