mirror of https://github.com/ARMmbed/mbed-os.git
Resolve build issues in test
mbed.h was added in test, via greentea and utest header files. 'mbed.h' is removed from header files and required header file and namespace is added to CPP/C filespull/8008/head
parent
e95d08e471
commit
9db31d299b
|
@ -38,6 +38,7 @@
|
|||
|
||||
|
||||
using namespace utest::v1;
|
||||
using namespace mbed;
|
||||
|
||||
static LoRaRadio *radio = NULL;
|
||||
rtos::Semaphore event_sem(0);
|
||||
|
|
|
@ -18,14 +18,13 @@
|
|||
|
||||
#include "platform/FileHandle.h"
|
||||
|
||||
|
||||
#define POS_IS_VALID(pos) (pos >= 0 && pos < _end)
|
||||
#define NEW_POS_IS_VALID(pos) (pos >= 0 && pos < (int32_t)FILE_SIZE)
|
||||
#define SEEK_POS_IS_VALID(pos) (pos >= 0 && pos <= _end)
|
||||
#define INVALID_POS (-1)
|
||||
|
||||
template<uint32_t FILE_SIZE>
|
||||
class TestFile : public FileHandle {
|
||||
class TestFile : public mbed::FileHandle {
|
||||
public:
|
||||
TestFile(): _pos(0), _end(0) {}
|
||||
~TestFile() {}
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "utest.h"
|
||||
#include "SPIFBlockDevice.h"
|
||||
#include "mbed_trace.h"
|
||||
#include "rtos/Thread.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
using namespace utest::v1;
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#endif
|
||||
|
||||
using namespace utest::v1;
|
||||
using namespace mbed;
|
||||
|
||||
#define MSG_VALUE_DUMMY "0"
|
||||
#define MSG_VALUE_LEN 32
|
||||
|
|
|
@ -36,6 +36,7 @@ typedef struct {
|
|||
|
||||
#include "rtos/Mutex.h"
|
||||
#include "rtos/Thread.h"
|
||||
#include "rtos/Kernel.h"
|
||||
#include "mbed_stats.h"
|
||||
#include "cmsis_os2.h"
|
||||
#include "platform/SingletonPtr.h"
|
||||
|
|
|
@ -2,12 +2,11 @@
|
|||
* Copyright (c) 2017 ARM Limited. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "Nanostack.h"
|
||||
#include "NanostackEthernetInterface.h"
|
||||
#include "NanostackEthernetPhy.h"
|
||||
#include "EMAC.h"
|
||||
#include "nsdynmemLIB.h"
|
||||
#include "arm_hal_phy.h"
|
||||
#include "EMAC.h"
|
||||
|
||||
class EMACPhy : public NanostackEthernetPhy
|
||||
{
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
#include "utest/utest.h"
|
||||
#include "BlockDevice.h"
|
||||
#include "FileSystem.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#if COMPONENT_SPIF
|
||||
#include "SPIFBlockDevice.h"
|
||||
#include "LittleFileSystem.h"
|
||||
|
@ -32,6 +34,7 @@
|
|||
#endif
|
||||
|
||||
using namespace utest::v1;
|
||||
using namespace mbed;
|
||||
|
||||
static const size_t small_buf_size = 10;
|
||||
static const size_t medium_buf_size = 250;
|
||||
|
|
Loading…
Reference in New Issue