Skip to content

Commit

Permalink
energest: removed include of energest from contiki.h to avoid circula…
Browse files Browse the repository at this point in the history
…r dependency
  • Loading branch information
nfi committed Oct 31, 2017
1 parent cffe0c5 commit e6ba266
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions arch/dev/cc1200/cc1200.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include "net/netstack.h"
#include "net/packetbuf.h"
#include "dev/watchdog.h"
#include "sys/energest.h"

#include "dev/leds.h"

Expand Down
1 change: 1 addition & 0 deletions arch/dev/cc2420/cc2420.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <string.h>

#include "contiki.h"
#include "sys/energest.h"

#include "dev/leds.h"
#include "dev/spi.h"
Expand Down
1 change: 1 addition & 0 deletions arch/platform/jn516x/dev/micromac-radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include "contiki.h"
#include "dev/leds.h"
#include "sys/rtimer.h"
#include "sys/energest.h"
#include "net/packetbuf.h"
#include "net/netstack.h"
#include "net/mac/framer/frame802154.h"
Expand Down
1 change: 1 addition & 0 deletions arch/platform/jn516x/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
#include "dev/uart-driver.h"

#include "contiki.h"
#include "sys/energest.h"
#include "net/netstack.h"

#include "dev/serial-line.h"
Expand Down
1 change: 1 addition & 0 deletions arch/platform/sky/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <stdio.h>
#include <string.h>
#include "contiki.h"
#include "sys/energest.h"
#include "cc2420.h"
#include "dev/ds2411/ds2411.h"
#include "dev/leds.h"
Expand Down
1 change: 1 addition & 0 deletions os/contiki-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include "contiki.h"
#include "contiki-net.h"
#include "sys/platform.h"
#include "sys/energest.h"
#include "dev/watchdog.h"

#if BUILD_WITH_ORCHESTRA
Expand Down
2 changes: 0 additions & 2 deletions os/contiki.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,4 @@

#include "sys/clock.h"

#include "sys/energest.h"

#endif /* CONTIKI_H_ */
2 changes: 1 addition & 1 deletion os/sys/energest.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
* Adam Dunkels <[email protected]>
*/

#include "sys/energest.h"
#include "contiki.h"
#include "sys/energest.h"

#if ENERGEST_CONF_ON

Expand Down

0 comments on commit e6ba266

Please sign in to comment.