Browse Source

making include directives consistent

dev/timer
Oleg Hahm 9 years ago
parent
commit
903ec54a43
  1. 2
      boards/avsextrem/drivers/avsextrem-cc1100.c
  2. 10
      boards/avsextrem/drivers/avsextrem-smb380.c
  3. 2
      boards/avsextrem/include/board.h
  4. 2
      boards/avsextrem/include/smb380-board.h
  5. 6
      boards/chronos/board_init.c
  6. 2
      boards/chronos/drivers/battery.c
  7. 4
      boards/chronos/drivers/buzzer.c
  8. 12
      boards/chronos/drivers/cc430-cc110x.c
  9. 2
      boards/chronos/drivers/display.c
  10. 2
      boards/chronos/drivers/display1.c
  11. 2
      boards/chronos/drivers/display_putchar.c
  12. 6
      boards/msb-430-common/board_config.c
  13. 2
      boards/msb-430-common/drivers/include/sht11-board.h
  14. 8
      boards/msb-430-common/uart1.c
  15. 10
      boards/msb-430h/driver_cc110x.c
  16. 12
      boards/msba2-common/board_common_init.c
  17. 4
      boards/msba2-common/board_config.c
  18. 4
      boards/msba2-common/drivers/include/sht11-board.h
  19. 14
      boards/msba2-common/drivers/msba2-cc110x.c
  20. 4
      boards/msba2-common/drivers/msba2-uart0.c
  21. 5
      boards/msba2/board_init.c
  22. 2
      boards/native/board_config.c
  23. 6
      boards/pttu/board_init.c
  24. 4
      boards/pttu/include/board.h
  25. 10
      boards/telosb/driver_cc2420.c
  26. 6
      boards/wsn430-common/board_config.c
  27. 6
      boards/wsn430-common/uart0.c
  28. 10
      boards/wsn430-v1_3b/driver_cc110x.c
  29. 10
      boards/wsn430-v1_4/driver_cc2420.c
  30. 2
      core/cib.c
  31. 2
      core/include/hwtimer.h
  32. 2
      core/include/sched.h
  33. 8
      core/include/tcb.h
  34. 4
      core/include/thread.h
  35. 16
      core/kernel_init.c
  36. 2
      core/lifo.c
  37. 8
      core/msg.c
  38. 2
      core/oneway_malloc.c
  39. 12
      core/sched.c
  40. 4
      cpu/arm_common/bootloader.c
  41. 10
      cpu/cc430/cc110x_cc430.c
  42. 6
      cpu/cc430/cc430-adc.c
  43. 10
      cpu/cc430/cc430-gpioint.c
  44. 6
      cpu/cc430/cc430-rtc.c
  45. 10
      cpu/cc430/hwtimer_cc430.c
  46. 4
      cpu/cc430/include/cc430-rtc.h
  47. 2
      cpu/lpc2387/gpioint/lpc2387-gpioint.c
  48. 2
      cpu/lpc2387/include/lpc2387-rtc.h
  49. 4
      cpu/lpc2387/include/lpc2387.h
  50. 2
      cpu/lpc2387/lpc2387-lpm.c
  51. 4
      cpu/lpc2387/lpc23xx-iap.c
  52. 2
      cpu/lpc2387/rtc/lpc2387-rtc.c
  53. 10
      cpu/lpc_common/iap.c
  54. 2
      cpu/mc1322x/include/gpio.h
  55. 4
      cpu/msp430-common/atomic.c
  56. 8
      cpu/msp430-common/hwtimer_cpu.c
  57. 2
      cpu/msp430-common/include/cpu.h
  58. 2
      cpu/msp430-common/startup.c
  59. 6
      cpu/native/atomic_cpu.c
  60. 6
      drivers/at86rf231/at86rf231.c
  61. 12
      drivers/at86rf231/at86rf231_rx.c
  62. 6
      drivers/at86rf231/at86rf231_spi.c
  63. 4
      drivers/at86rf231/at86rf231_tx.c
  64. 2
      drivers/at86rf231/include/at86rf231.h
  65. 8
      drivers/cc110x/cc1100-csmaca-mac.c
  66. 2
      drivers/cc110x/cc1100_phy.c
  67. 24
      drivers/cc110x_ng/cc110x-rx.c
  68. 18
      drivers/cc110x_ng/cc110x-tx.c
  69. 22
      drivers/cc110x_ng/cc110x.c
  70. 2
      drivers/cc110x_ng/include/cc110x-config.h
  71. 6
      drivers/cc110x_ng/include/cc110x_ng.h
  72. 12
      drivers/cc2420/cc2420.c
  73. 16
      drivers/cc2420/cc2420_rx.c
  74. 8
      drivers/cc2420/cc2420_spi.c
  75. 12
      drivers/cc2420/cc2420_tx.c
  76. 4
      drivers/cc2420/include/cc2420.h
  77. 2
      drivers/include/ltc4150.h
  78. 8
      drivers/lm75a/lm75a-temp-sensor.c
  79. 8
      drivers/srf02/srf02-ultrasonic-sensor.c
  80. 10
      sys/include/auto_init.h
  81. 2
      sys/include/chardev_thread.h
  82. 2
      sys/include/shell_commands.h
  83. 2
      sys/include/transceiver.h
  84. 3
      sys/net/destiny/destiny.c
  85. 1
      sys/net/destiny/msg_help.c
  86. 2
      sys/net/net_help/net_help.c
  87. 2
      sys/net/rpl/etx_beaconing.h
  88. 6
      sys/net/rpl/rpl.c
  89. 4
      sys/net/rpl/trickle.h
  90. 6
      sys/ping/ping.c
  91. 6
      sys/posix/posix_io.c
  92. 6
      sys/shell/commands/sc_cc1100.c
  93. 6
      sys/shell/commands/sc_cc110x_ng.c
  94. 6
      sys/shell/commands/sc_cc2420.c
  95. 2
      sys/shell/commands/sc_id.c
  96. 2
      sys/shell/commands/sc_ltc4150.c
  97. 2
      sys/shell/commands/sc_rtc.c
  98. 2
      sys/shell/commands/sc_sht11.c
  99. 2
      sys/shell/commands/shell_commands.c
  100. 4
      sys/shell/shell.c
  101. Some files were not shown because too many files have changed in this diff Show More

2
boards/avsextrem/drivers/avsextrem-cc1100.c

@ -48,8 +48,6 @@
//#define DEBUG
#ifdef DEBUG
#include "stdio.h"
static unsigned long time_value;
static void set_time(void)

10
boards/avsextrem/drivers/avsextrem-smb380.c

@ -23,25 +23,23 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include "lpc23xx.h" /* LPC23XX/24xx Peripheral Registers */
#include "cpu.h"
#include "lpm.h"
//#include "PatrecInit.h"
#include "VIC.h"
#include "kernel.h"
#include "ssp0-board.h"
#include "smb380-board.h"
#include "hwtimer.h"
#include <stdio.h>
#include <malloc.h>
// for fk_thread:
#include "sched.h"
#include "msg.h"
#include "irq.h"
//#include "hal-board.h"
#include "gpioint.h"
#include "stdlib.h"
#include "math.h"
#include "lpc2387.h"

2
boards/avsextrem/include/board.h

@ -24,7 +24,7 @@
#ifndef BOARDCONF_H_
#define BOARDCONF_H_
#include <bitarithm.h>
#include "bitarithm.h"
#include "msba2_common.h"
#define FEUERWARE_CONF_BOARD_NAME "FU Berlin AVSEXTREM BOARD"

2
boards/avsextrem/include/smb380-board.h

@ -24,7 +24,7 @@
#ifndef SMB380_H_
#define SMB380_H_
#include <stdint.h>
#include <bitarithm.h>
#include "bitarithm.h"
#define SMB380_DEBUG_MESSAGE "SMB380 Driver Error: "

6
boards/chronos/board_init.c

@ -1,7 +1,7 @@
#include <stdint.h>
#include <board.h>
#include <cpu.h>
#include <irq.h>
#include "board.h"
#include "cpu.h"
#include "irq.h"
void cc430_cpu_init(void)
{

2
boards/chronos/drivers/battery.c

@ -1,6 +1,6 @@
#include <stdint.h>
#include <cc430f6137.h>
#include <cc430-adc.h>
#include "cc430-adc.h"
uint32_t battery_get_voltage(void)
{

4
boards/chronos/drivers/buzzer.c

@ -1,7 +1,7 @@
#include <stdint.h>
#include <buzzer.h>
#include <hwtimer.h>
#include <cc430f6137.h>
#include "buzzer.h"
#include "hwtimer.h"
void buzzer_beep(uint8_t pitch, uint16_t duration)
{

12
boards/chronos/drivers/cc430-cc110x.c

@ -1,13 +1,11 @@
#include <stdint.h>
#include <cc430f6137.h>
#include <cpu.h>
#include <irq.h>
#include <cc110x_ng.h>
#include <cc110x-arch.h>
#include "cpu.h"
#include "irq.h"
#include "cc110x_ng.h"
#include "cc110x-arch.h"
//#include <cc430_.h>
#include <cc430f6137.h>
//#include <msp430/rf1a.h>
#define CC1100_GDO0 (RF1AIN & BIT0)
#define CC1100_GDO1 (RF1AIN & BIT1)

2
boards/chronos/drivers/display.c

@ -44,7 +44,7 @@
/* driver */
#include <cc430f6137.h>
#include <display.h>
#include "display.h"
/**************************************************************************************************

2
boards/chronos/drivers/display1.c

@ -40,7 +40,7 @@
/* Include section */
#include <stdint.h>
#include <cc430f6137.h>
#include <display.h>
#include "display.h"
/* ************************************************************************************************* */
/* Global Variable section */

2
boards/chronos/drivers/display_putchar.c

@ -1,6 +1,6 @@
#include <stdio.h>
#include <display.h>
#include <string.h>
#include "display.h"
extern int toupper(int c);
extern void (*_putchar)(int c);

6
boards/msb-430-common/board_config.c

@ -1,8 +1,8 @@
#include <stdint.h>
#include <string.h>
#include <board-conf.h>
#include <config.h>
#include <flashrom.h>
#include "board-conf.h"
#include "config.h"
#include "flashrom.h"
void config_load(void)
{

2
boards/msb-430-common/drivers/include/sht11-board.h

@ -39,7 +39,7 @@ and the mailinglist (subscription via web site)
* @author Freie Universität Berlin, Computer Systems & Telematics, RIOT
*
*/
#include "msp430x16x.h"
#include <msp430x16x.h>
#include "bitarithm.h"
/* SCK = P3B5

8
boards/msb-430-common/uart1.c

@ -1,12 +1,12 @@
#include <stdio.h>
#include "board.h"
#include "kernel.h"
#include "board_uart0.h"
#define UART1_TX TXBUF1
#define UART1_WAIT_TXDONE() while( (UTCTL1 & TXEPT) == 0 ) { _NOP(); }
#include <stdio.h>
#include <kernel.h>
#include <board_uart0.h>
int putchar(int c)
{

10
boards/msb-430h/driver_cc110x.c

@ -19,12 +19,12 @@ Boston, MA 02111-1307, USA. */
#include <stdio.h>
#include <board.h>
#include <cpu.h>
#include <irq.h>
#include "board.h"
#include "cpu.h"
#include "irq.h"
#include <cc110x_ng.h>
#include <cc110x-arch.h>
#include "cc110x_ng.h"
#include "cc110x-arch.h"
#define CC1100_GDO0 (P2IN & 0x02) // read serial I/O (GDO0)
#define CC1100_GDO1 (P3IN & 0x04) // read serial I/O (GDO1)

12
boards/msba2-common/board_common_init.c

@ -40,13 +40,13 @@ and the mailinglist (subscription via web site)
* @author Zakaria Kasmi <zkasmi@inf.fu-berlin.de>
* @note $Id$
*/
#include <board.h>
#include <lpc23xx.h>
#include <VIC.h>
#include <cpu.h>
#include <config.h>
#include <string.h>
#include <flashrom.h>
#include "board.h"
#include "lpc23xx.h"
#include "VIC.h"
#include "cpu.h"
#include "config.h"
#include "flashrom.h"
#define PCRTC BIT9
#define CL_CPU_DIV 4

4
boards/msba2-common/board_config.c

@ -1,7 +1,7 @@
#include <stdint.h>
#include <string.h>
#include <config.h>
#include <flashrom.h>
#include "config.h"
#include "flashrom.h"
void config_load(void) {
extern char configmem[];

4
boards/msba2-common/drivers/include/sht11-board.h

@ -42,8 +42,8 @@ and the mailinglist (subscription via web site)
* @note $Id$
*/
#include <lpc23xx.h>
#include <board.h>
#include "lpc23xx.h"
#include "board.h"
#define SHT11_SCK_LOW FIO1CLR = BIT25; // serial clock line low
#define SHT11_SCK_HIGH FIO1SET = BIT25; // serial clock line high

14
boards/msba2-common/drivers/msba2-cc110x.c

@ -40,13 +40,13 @@ and the mailinglist (subscription via web site)
#include <stdio.h>
#include <stddef.h>
// core
#include <cpu.h>
#include <irq.h>
#include "cpu.h"
#include "irq.h"
// sys
#include <cc110x_ng.h>
#include <cc110x-arch.h>
#include <cc110x_spi.h>
#include <gpioint.h>
#include "cc110x_ng.h"
#include "cc110x-arch.h"
#include "cc110x_spi.h"
#include "gpioint.h"
#define CC1100_GDO0 (FIO0PIN & BIT27) // read serial I/O (GDO0)
#define CC1100_GDO1 (FIO1PIN & BIT23) // read serial I/O (GDO1)
@ -63,8 +63,6 @@ and the mailinglist (subscription via web site)
//#define DEBUG
#ifdef DEBUG
#include "stdio.h"
static unsigned long time_value;
static void set_time(void)

4
boards/msba2-common/drivers/msba2-uart0.c

@ -35,9 +35,9 @@ and the mailinglist (subscription via web site)
#include <stdio.h>
#include "lpc23xx.h"
#include "VIC.h"
#include <kernel.h>
#include "kernel.h"
#include <board_uart0.h>
#include "board_uart0.h"
/**
* @file

5
boards/msba2/board_init.c

@ -24,9 +24,8 @@
* @note $Id$
*/
#include <board.h>
#include <cpu.h>
#include "board.h"
#include "cpu.h"
void loop_delay(void)
{

2
boards/native/board_config.c

@ -18,7 +18,7 @@
#include <stdio.h>
#include <stdint.h>
#include <config.h>
#include "config.h"
/**
* XXX: loading not implemented

6
boards/pttu/board_init.c

@ -38,9 +38,9 @@ and the mailinglist (subscription via web site)
* @author Kaspar Schleiser
*
*/
#include <board.h>
#include <VIC.h>
#include <cpu.h>
#include "board.h"
#include "VIC.h"
#include "cpu.h"
#define PCRTC BIT9
#define CL_CPU_DIV 4

4
boards/pttu/include/board.h

@ -40,8 +40,8 @@ and the mailinglist (subscription via web site)
#ifndef __BOARD_H
#define __BOARD_H
#include <lpc2387.h>
#include <cpu-conf.h>
#include "lpc2387.h"
#include "cpu-conf.h"
#define VICIntEnClear VICIntEnClr

10
boards/telosb/driver_cc2420.c

@ -9,12 +9,12 @@
#include <stdio.h>
#include <board.h>
#include <cpu.h>
#include <irq.h>
#include <hwtimer.h>
#include "board.h"
#include "cpu.h"
#include "irq.h"
#include "hwtimer.h"
#include <cc2420.h>
#include "cc2420.h"
#define ENABLE_DEBUG (1)
#include "debug.h"

6
boards/wsn430-common/board_config.c

@ -7,9 +7,9 @@
#include <stdint.h>
#include <string.h>
#include <board-conf.h>
#include <config.h>
#include <flashrom.h>
#include "board-conf.h"
#include "config.h"
#include "flashrom.h"
void config_load(void) {
if (*((uint16_t*) INFOMEM) == CONFIG_KEY) {

6
boards/wsn430-common/uart0.c

@ -6,15 +6,15 @@
* Version 3. See the file LICENSE for more details.
*/
#include <stdio.h>
#include "board.h"
#define UART0_TX U0TXBUF
#define UART0_WAIT_TXDONE() while( (U0TCTL & TXEPT) == 0 ) { _NOP(); }
#include <stdio.h>
#include <kernel.h>
#include "kernel.h"
#include <board_uart0.h>
#include "board_uart0.h"
int putchar(int c)
{

10
boards/wsn430-v1_3b/driver_cc110x.c

@ -9,12 +9,12 @@
#include <stdio.h>
#include <board.h>
#include <cpu.h>
#include <irq.h>
#include "board.h"
#include "cpu.h"
#include "irq.h"
#include <cc110x_ng.h>
#include <cc110x-arch.h>
#include "cc110x_ng.h"
#include "cc110x-arch.h"
#define CC1100_GDO0 (P1IN & 0x08) // read serial I/O (GDO0)
#define CC1100_GDO1 (P5IN & 0x04) // read serial I/O (GDO1)

10
boards/wsn430-v1_4/driver_cc2420.c

@ -9,12 +9,12 @@
#include <stdio.h>
#include <board.h>
#include <cpu.h>
#include <irq.h>
#include <hwtimer.h>
#include "board.h"
#include "cpu.h"
#include "irq.h"
#include "hwtimer.h"
#include <cc2420.h>
#include "cc2420.h"
#define CC2420_RESETn_PIN 0x80
#define CC2420_VREGEN_PIN 0x01

2
core/cib.c

@ -16,7 +16,7 @@
* @}
*/
#include <cib.h>
#include "cib.h"
void cib_init(cib_t *cib, unsigned int size)
{

2
core/include/hwtimer.h

@ -35,7 +35,7 @@
#define __HWTIMER_H
#include <stdint.h>
#include <hwtimer_cpu.h>
#include "hwtimer_cpu.h"
/**
* @def HWTIMER_SPEED

2
core/include/sched.h

@ -23,7 +23,7 @@
#define _SCHEDULER_H
#include <stddef.h>
#include <bitarithm.h>
#include "bitarithm.h"
#include "tcb.h"
#define MAXTHREADS 32

8
core/include/tcb.h

@ -22,10 +22,10 @@
#define TCB_H_
#include <stdint.h>
#include <queue.h>
#include <clist.h>
#include <cib.h>
#include <msg.h>
#include "queue.h"
#include "clist.h"
#include "cib.h"
#include "msg.h"
/* uneven means has to be on runqueue */
#define STATUS_NOT_FOUND (0x0000)

4
core/include/thread.h

@ -23,8 +23,8 @@
#define __THREAD_H
#include <kernel.h>
#include <tcb.h>
#include "kernel.h"
#include "tcb.h"
/** Minimum stack size */
#ifndef MINIMUM_STACK_SIZE

16
core/kernel_init.c

@ -22,14 +22,14 @@
#include <stdint.h>
#include <stdbool.h>
#include <errno.h>
#include <tcb.h>
#include <kernel.h>
#include <kernel_internal.h>
#include <sched.h>
#include <flags.h>
#include <cpu.h>
#include <lpm.h>
#include <thread.h>
#include "tcb.h"
#include "kernel.h"
#include "kernel_internal.h"
#include "sched.h"
#include "flags.h"
#include "cpu.h"
#include "lpm.h"
#include "thread.h"
#ifdef MODULE_AUTO_INIT
#include <auto_init.h>

2
core/lifo.c

@ -19,7 +19,7 @@
* @}
*/
#include <lifo.h>
#include "lifo.h"
int lifo_empty(int *array)
{

8
core/msg.c

@ -20,15 +20,15 @@
* @}
*/
#include <stddef.h>
#include <inttypes.h>
#include "kernel.h"
#include "sched.h"
#include "msg.h"
#include "queue.h"
#include "tcb.h"
#include <stddef.h>
#include <irq.h>
#include <cib.h>
#include <inttypes.h>
#include "irq.h"
#include "cib.h"
#include "flags.h"

2
core/oneway_malloc.c

@ -29,7 +29,7 @@
#include <stdlib.h>
#define ENABLE_DEBUG (0)
#include <debug.h>
#include "debug.h"
extern void *sbrk(int incr);

12
core/sched.c

@ -22,11 +22,11 @@
*/
#include <stdint.h>
#include <sched.h>
#include <kernel.h>
#include <kernel_internal.h>
#include <clist.h>
#include <bitarithm.h>
#include "sched.h"
#include "kernel.h"
#include "kernel_internal.h"
#include "clist.h"
#include "bitarithm.h"
#include "thread.h"
#if SCHEDSTATISTICS
@ -34,7 +34,7 @@
#endif
#define ENABLE_DEBUG (0)
#include <debug.h>
#include "debug.h"
volatile int num_tasks = 0;

4
cpu/arm_common/bootloader.c

@ -32,8 +32,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <kernel.h>
#include <thread.h>
#include "kernel.h"
#include "thread.h"
void FIQ_Routine(void) __attribute__((interrupt("FIQ")));
//void SWI_Routine (void) __attribute__((interrupt("SWI")));

10
cpu/cc430/cc110x_cc430.c

@ -1,9 +1,9 @@
#include <irq.h>
#include <cc110x-defaultSettings.h>
#include <cc110x-reg.h>
#include <stdint.h>
#include <board.h>
#include <hwtimer.h>
#include "irq.h"
#include "cc110x-defaultSettings.h"
#include "cc110x-reg.h"
#include "board.h"
#include "hwtimer.h"
/**************************************************************************************************
* @fn Strobe

6
cpu/cc430/cc430-adc.c

@ -37,9 +37,9 @@
#include <legacymsp430.h>
#include <cpu.h>
#include <cc430-adc.h>
#include <hwtimer.h>
#include "cpu.h"
#include "cc430-adc.h"
#include "hwtimer.h"
uint16_t adc12_result;
uint8_t adc12_data_ready;

10
cpu/cc430/cc430-gpioint.c

@ -20,11 +20,11 @@ See the file LICENSE in the top level directory for more details.
#include <stdlib.h>
#include <legacymsp430.h>
#include <gpioint.h>
#include <bitarithm.h>
#include <cpu.h>
#include <irq.h>
#include <hwtimer.h>
#include "gpioint.h"
#include "bitarithm.h"
#include "cpu.h"
#include "irq.h"
#include "hwtimer.h"
/** min and max portnumber to generate interrupts */
#define PORTINT_MIN (1)

6
cpu/cc430/cc430-rtc.c

@ -20,9 +20,9 @@ See the file LICENSE in the top level directory for more details.
#include <string.h>
#include <legacymsp430.h>
#include <irq.h>
#include <cpu.h>
#include <cc430-rtc.h>
#include "irq.h"
#include "cpu.h"
#include "cc430-rtc.h"
//static volatile time_t epoch;
static struct tm time_to_set;

10
cpu/cc430/hwtimer_cc430.c

@ -1,11 +1,11 @@
#include <legacymsp430.h>
#include <board.h>
#include <hwtimer.h>
#include <hwtimer_arch.h>
#include <cpu.h>
#include "board.h"
#include "hwtimer.h"
#include "hwtimer_arch.h"
#include "cpu.h"
#define ENABLE_DEBUG (0)
#include <debug.h>
#include "debug.h"
static uint32_t ticks = 0;

4
cpu/cc430/include/cc430-rtc.h

@ -12,8 +12,8 @@ See the file LICENSE in the top level directory for more details.
#ifndef CC430_RTC_H
#define CC430_RTC_H
#include <rtc.h>
#include <time.h>
#include "rtc.h"
#include "time.h"
/**
* @defgroup cc430_rtc CC430 Real Time Clock

2
cpu/lpc2387/gpioint/lpc2387-gpioint.c

@ -31,7 +31,7 @@ See the file LICENSE in the top level directory for more details.
#include "lpc2387.h"
#include "gpioint.h"
#include "cpu.h"
#include <irq.h>
#include "irq.h"
struct irq_callback_t {
fp_irqcb callback;

2
cpu/lpc2387/include/lpc2387-rtc.h

@ -34,9 +34,9 @@ See the file LICENSE in the top level directory for more details.
* @note $Id: lpc2387-rtc.h 1998 2010-03-16 13:05:41Z baar $
*/
#include <rtc.h>
#include <time.h>
#include <sys/time.h>
#include "rtc.h"
#include "lpc2387.h"
/* ------------------------------------------------------------------------- */

4
cpu/lpc2387/include/lpc2387.h

@ -9,8 +9,8 @@
#ifndef __LPC2387_H
#define __LPC2387_H
#include <lpc23xx.h>
#include <bitarithm.h>
#include "lpc23xx.h"
#include "bitarithm.h"
#define F_CCO 288000000
#define CL_CPU_DIV 4 ///< CPU clock divider

2
cpu/lpc2387/lpc2387-lpm.c

@ -42,7 +42,7 @@ extern void init_clks1(void);
extern void init_clks2(void);
#define ENABLE_DEBUG (0)
#include <debug.h>
#include "debug.h"
void lpm_init(void)
{

4
cpu/lpc2387/lpc23xx-iap.c

@ -1,6 +1,6 @@
#include <stdint.h>
#include <flashrom.h>
#include <iap.h>
#include "flashrom.h"
#include "iap.h"
uint8_t iap_get_sector(uint32_t addr)
{

2
cpu/lpc2387/rtc/lpc2387-rtc.c

@ -36,7 +36,7 @@ See the file LICENSE in the top level directory for more details.
#define PREFRAC_RTC 0x000061C0 /* Prescaler value, fraction portion, PCLK = 15Mhz */
#define ENABLE_DEBUG (0)
#include <debug.h>
#include "debug.h"
/**
* @brief epoch time in hour granularity

10
cpu/lpc_common/iap.c

@ -4,14 +4,14 @@
*
*/
#include <irq.h>
#include <flashrom.h>
#include <iap.h>
#include "irq.h"
#include "flashrom.h"
#include "iap.h"
/* TODO: replace by a lpc generic header */
#include <lpc2387.h>
#include "lpc2387.h"
#define ENABLE_DEBUG (0)
#include <debug.h>
#include "debug.h"
/* pointer to reserved flash rom section for configuration data */
__attribute((aligned(256))) char configmem[256] __attribute__((section(".configmem")));

2
cpu/mc1322x/include/gpio.h

@ -12,7 +12,7 @@
#define GPIO_H
// TODO: why do we need to include this for macro expansion?
#include "stdint.h"
#include <stdint.h>
/* Structure-based GPIO access
Example usage:

4
cpu/msp430-common/atomic.c

@ -1,5 +1,5 @@
#include <atomic.h>
#include <cpu.h>
#include "atomic.h"
#include "cpu.h"
unsigned int atomic_set_return(unsigned int *val, unsigned int set)
{

8
cpu/msp430-common/hwtimer_cpu.c

@ -12,12 +12,12 @@ See the file LICENSE in the top level directory for more details.
#include <stdint.h>
#include <cpu.h>
#include <hwtimer.h>
#include <hwtimer_arch.h>
#include "cpu.h"
#include "hwtimer.h"
#include "hwtimer_arch.h"
#define ENABLE_DEBUG (0)
#include <debug.h>
#include "debug.h"
void (*int_handler)(int);

2
cpu/msp430-common/include/cpu.h

@ -27,8 +27,8 @@ See the file LICENSE in the top level directory for more details.
#include <stdio.h>
#include <legacymsp430.h>
#include "board.h"
#include <msp430.h>
#include "board.h"
#include "sched.h"
#include "msp430_types.h"

2
cpu/msp430-common/startup.c

@ -1,5 +1,5 @@
#include <stdio.h>
#include <kernel_internal.h>
#include "kernel_internal.h"
extern void board_init(void);

6
cpu/native/atomic_cpu.c

@ -14,9 +14,9 @@
* @}
*/
#include <atomic.h>
#include <irq.h>
#include <debug.h>
#include "atomic.h"
#include "irq.h"
#include "debug.h"
unsigned int atomic_set_return(unsigned int *val, unsigned int set)
{

6
drivers/at86rf231/at86rf231.c

@ -6,10 +6,10 @@
* Version 2. See the file LICENSE for more details.
*/
#include <at86rf231.h>
#include "at86rf231.h"
//#define ENABLE_DEBUG
#include <debug.h>
#define ENABLE_DEBUG (0)
#include "debug.h"
static uint16_t radio_pan;
static uint8_t radio_channel;

12
drivers/at86rf231/at86rf231_rx.c

@ -1,12 +1,12 @@
#include <at86rf231.h>
#include <at86rf231_arch.h>
#include "at86rf231.h"
#include "at86rf231_arch.h"
#include <transceiver.h>
#include <msg.h>
#include "transceiver.h"
#include "msg.h"
//#define ENABLE_DEBUG
#include <debug.h>
#define ENABLE_DEBUG (0)
#include "debug.h"
at86rf231_packet_t at86rf231_rx_buffer[AT86RF231_RX_BUF_SIZE];
uint8_t buffer[AT86RF231_RX_BUF_SIZE][AT86RF231_MAX_PKT_LENGTH];

6
drivers/at86rf231/at86rf231_spi.c

@ -1,6 +1,6 @@
#include <at86rf231_spi.h>
#include <at86rf231_arch.h>
#include <at86rf231_settings.h>
#include "at86rf231_spi.h"
#include "at86rf231_arch.h"
#include "at86rf231_settings.h"
void at86rf231_reg_write(uint8_t addr, uint8_t value)
{

4
drivers/at86rf231/at86rf231_tx.c

@ -1,5 +1,5 @@
#include <at86rf231.h>
#include <at86rf231_arch.h>
#include "at86rf231.h"
#include "at86rf231_arch.h"
static void at86rf231_xmit(uint8_t *data, uint8_t length);
static void at86rf231_gen_pkt(uint8_t *buf, at86rf231_packet_t *packet);

2
drivers/at86rf231/include/at86rf231.h

@ -6,7 +6,7 @@
#include "ieee802154_frame.h"
#include <at86rf231_settings.h>
#include "at86rf231_settings.h"
#define AT86RF231_MAX_PKT_LENGTH 127
#define AT86RF231_MAX_DATA_LENGTH 118

8
drivers/cc110x/cc1100-csmaca-mac.c

@ -29,13 +29,13 @@ and Telematics group (http://cst.mi.fu-berlin.de).
#include <stdlib.h>
#include <string.h>
#include <cc1100.h>
#include <cc1100_phy.h>
#include <cc1100-csmaca-mac.h>
#include "cc1100.h"
#include "cc1100_phy.h"
#include "cc1100-csmaca-mac.h"
#include "protocol-multiplex.h"
#include "hwtimer.h"
#include <vtimer.h>
#include "vtimer.h"
/*---------------------------------------------------------------------------*/

2
drivers/cc110x/cc1100_phy.c

@ -34,7 +34,7 @@ and Telematics group (http://cst.mi.fu-berlin.de).
#include <string.h>
#include "hwtimer.h"
#include <vtimer.h>
#include "vtimer.h"
#include "cc1100.h"
#include "cc1100_spi.h"

24
drivers/cc110x_ng/cc110x-rx.c

@ -17,18 +17,18 @@
* @}
*/
#include <cc110x_ng.h>
#include <cc110x-internal.h>
#include <cc110x-config.h>
#include <cc110x-defaultSettings.h>
#include <cc110x_spi.h>
#include <cc110x-reg.h>
#include <hwtimer.h>
#include <msg.h>
#include <transceiver.h>
#include <cpu-conf.h>
#include "cc110x_ng.h"
#include "cc110x-internal.h"
#include "cc110x-config.h"
#include "cc110x-defaultSettings.h"
#include "cc110x_spi.h"
#include "cc110x-reg.h"
#include "hwtimer.h"
#include "msg.h"
#include "transceiver.h"
#include "cpu-conf.h"
#include "cpu.h"
#ifdef DBG_IGNORE

18
drivers/cc110x_ng/cc110x-tx.c

@ -18,16 +18,14 @@
*/
#include <stdio.h>
#include <cc110x_ng.h>
#include <cc110x-defaultSettings.h>
#include <cc110x-internal.h>
#include <cc110x-arch.h>
#include <cc110x_spi.h>
#include <cc110x-reg.h>
#include <irq.h>
//#include <board.h>
#include "cc110x_ng.h"
#include "cc110x-defaultSettings.h"
#include "cc110x-internal.h"
#include "cc110x-arch.h"
#include "cc110x_spi.h"
#include "cc110x-reg.h"
#include "irq.h"
int8_t cc110x_send(cc110x_packet_t *packet)
{

22
drivers/cc110x_ng/cc110x.c

@ -16,20 +16,20 @@
* @author Oliver Hahm <oliver.hahm@inria.fr>
* @}
*/
#include <cc110x_ng.h>
#include <cc110x-arch.h>
#include <cc110x-config.h>
#include <cc110x-defaultSettings.h>
#include <cc110x-internal.h>
#include <cc110x_spi.h>
#include <cc110x-reg.h>
#include <hwtimer.h>
#include <config.h>
#include "cc110x_ng.h"
#include "cc110x-arch.h"
#include "cc110x-config.h"
#include "cc110x-defaultSettings.h"
#include "cc110x-internal.h"
#include "cc110x_spi.h"
#include "cc110x-reg.h"
#include "hwtimer.h"
#include "config.h"
#include "cpu.h"
#define ENABLE_DEBUG (0)
#include <debug.h>
#include "debug.h"
/* some externals */
extern uint8_t pa_table[]; ///< PATABLE with available output powers

2
drivers/cc110x_ng/include/cc110x-config.h

@ -19,8 +19,8 @@
#ifndef CC1100_CONFIG_H
#define CC1100_CONFIG_H
#include <timex.h>
#include <stdint.h>
#include "timex.h"
/** CC1100 register configuration */
typedef struct {

6
drivers/cc110x_ng/include/cc110x_ng.h

@ -22,10 +22,10 @@
#ifndef CC1100_H
#define CC1100_H
#include <radio/radio.h>
#include <radio/types.h>
#include <stdint.h>
#include <cc110x-config.h>
#include "radio/radio.h"
#include "radio/types.h"
#include "cc110x-config.h"
#define CC1100_MAX_DATA_LENGTH (58)

12
drivers/cc2420/cc2420.c

@ -6,14 +6,14 @@
* Version 2. See the file LICENSE for more details.
*/
#include <cc2420.h>
#include <cc2420_spi.h>
#include <cc2420_settings.h>
#include <cc2420_arch.h>
#include <hwtimer.h>
#include "cc2420.h"
#include "cc2420_spi.h"
#include "cc2420_settings.h"
#include "cc2420_arch.h"
#include "hwtimer.h"
#define ENABLE_DEBUG (0)
#include <debug.h>
#include "debug.h"
static uint16_t radio_channel;
static uint16_t radio_address;

16
drivers/cc2420/cc2420_rx.c

@ -8,15 +8,15 @@
#include <stdio.h>
#include <cc2420.h>
#include <cc2420_settings.h>
#include <cc2420_arch.h>
#include <cc2420_spi.h>
#include <ieee802154_frame.h>
#include "cc2420.h"
#include "cc2420_settings.h"
#include "cc2420_arch.h"
#include "cc2420_spi.h"
#include "ieee802154_frame.h"
#include <transceiver.h>
#include <msg.h>
#include <debug.h>
#include "transceiver.h"
#include "msg.h"
#include "debug.h"
cc2420_packet_t cc2420_rx_buffer[CC2420_RX_BUF_SIZE];
volatile uint8_t rx_buffer_next;

8
drivers/cc2420/cc2420_spi.c

@ -6,11 +6,11 @@
* Version 2. See the file LICENSE for more details.
*/
#include <cc2420_spi.h>
#include <cc2420_arch.h>
#include "cc2420_spi.h"
#include "cc2420_arch.h"
#include <cc2420_settings.h>
#include <irq.h>
#include "cc2420_settings.h"
#include "irq.h"