Skip to content

Commit 65a8b47

Browse files
authored
Merge pull request #20744 from leandrolanzieri/pr/makefile_include/include-app-headers
Makefile.include: fix override headers from application
2 parents 4463ca3 + 6247c10 commit 65a8b47

File tree

22 files changed

+79
-63
lines changed

22 files changed

+79
-63
lines changed

Makefile.include

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ ifneq (,$(IOTLAB_NODE))
397397
endif
398398

399399
# Add standard include directories
400+
INCLUDES += -I$(APPDIR)
400401
INCLUDES += -I$(RIOTBASE)/core/lib/include
401402
INCLUDES += -I$(RIOTBASE)/core/include
402403
INCLUDES += -I$(RIOTBASE)/drivers/include

tests/core/irq_cpp/irq.h

Lines changed: 0 additions & 30 deletions
This file was deleted.

tests/core/irq_cpp/main.cpp

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,27 @@
1616
* @author Jens Wetterich <[email protected]>
1717
*/
1818

19+
#include <stdbool.h>
20+
21+
/* prevent the inclusion of irq.h on irq.hpp */
22+
#define IRQ_H
23+
unsigned irq_disable(void);
24+
unsigned irq_enable(void);
25+
bool irq_is_enabled(void);
26+
bool irq_is_in(void);
27+
void irq_restore(unsigned state);
28+
1929
#define FFF_ARG_HISTORY_LEN 1u
2030
#define FFF_CALL_HISTORY_LEN 1u
2131
#include "cppunit.hpp"
2232
#include "fff.h"
23-
#include "irq.h"
2433
#include "irq.hpp"
2534
DEFINE_FFF_GLOBALS
2635

2736
FAKE_VALUE_FUNC(unsigned, irq_disable)
2837
FAKE_VALUE_FUNC(unsigned, irq_enable)
29-
FAKE_VALUE_FUNC(int, irq_is_enabled)
30-
FAKE_VALUE_FUNC(int, irq_is_in)
38+
FAKE_VALUE_FUNC(bool, irq_is_enabled)
39+
FAKE_VALUE_FUNC(bool, irq_is_in)
3140
FAKE_VOID_FUNC(irq_restore, unsigned)
3241

3342
class irq_suite : public riot::testing::test_suite {

tests/drivers/kw2xrf/common.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/drivers/kw2xrf/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#include <stdio.h>
2222

23-
#include "common.h"
23+
#include "test_common.h"
2424
#include "fmt.h"
2525
#include "init_dev.h"
2626
#include "kw2xrf.h"

tests/drivers/kw2xrf/test_common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../net/ieee802154_hal/test_common.h

tests/drivers/mrf24j40/common.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/drivers/mrf24j40/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "shell.h"
2727
#include "test_utils/netdev_ieee802154_minimal.h"
2828
#include "net/netdev/ieee802154_submac.h"
29-
#include "common.h"
29+
#include "test_common.h"
3030

3131
static netdev_ieee802154_submac_t mrf24j40_netdev[MRF24J40_NUM];
3232

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../net/ieee802154_hal/test_common.h

tests/net/ieee802154_hal/init_devs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "assert.h"
2323
#include "kernel_defines.h"
2424
#include "net/ieee802154/radio.h"
25-
#include "common.h"
25+
#include "test_common.h"
2626
#include "bhp/event.h"
2727

2828
#ifdef MODULE_CC2538_RF

0 commit comments

Comments
 (0)