Browse Source

remove trailing whitespace and newlines

dev/timer
Ludwig Ortmann 9 years ago
parent
commit
2525920426
  1. 4
      Makefile
  2. 1
      Makefile.base
  3. 2
      Makefile.dep
  4. 8
      Makefile.include
  5. 56
      README.md
  6. 1
      boards/avsextrem/board_init.c
  7. 3
      boards/avsextrem/drivers/avsextrem-cc1100.c
  8. 2
      boards/avsextrem/drivers/avsextrem-smb380.c
  9. 3
      boards/avsextrem/drivers/avsextrem-ssp0.c
  10. 1
      boards/avsextrem/include/ssp0-board.h
  11. 1
      boards/chronos/putchar.c
  12. 2
      boards/doc.txt
  13. 2
      boards/mbed_lpc1768/include/system_LPC17xx.h
  14. 2
      boards/msb-430-common/Makefile.include
  15. 1
      boards/msb-430-common/uart1.c
  16. 2
      boards/msb-430/Makefile
  17. 2
      boards/msb-430h/Makefile
  18. 1
      boards/msb-430h/Makefile.dep
  19. 1
      boards/msba2-common/drivers/Makefile
  20. 1
      boards/msba2-common/drivers/msba2-uart0.c
  21. 1
      boards/msba2-common/lpc2387-timer3.c
  22. 3
      boards/msba2-common/tools/CHANGES
  23. 10
      boards/msba2-common/tools/COPYING
  24. 2
      boards/msba2-common/tools/Makefile
  25. 2
      boards/msba2-common/tools/README.txt
  26. 2
      boards/msba2-common/tools/armtools.txt
  27. 4
      boards/msba2-common/tools/flash.cmd
  28. 4
      boards/msba2-common/tools/flashutil.sh
  29. 2
      boards/msba2-common/tools/mkbootc
  30. 1
      boards/msba2-common/tools/mkstaticlist
  31. 4
      boards/msba2-common/tools/src/boot.h
  32. 2
      boards/msba2-common/tools/src/boot_23xx.armasm
  33. 4
      boards/msba2-common/tools/src/boot_2xxx.armasm
  34. 1
      boards/msba2-common/tools/src/chipinfo.c
  35. 2
      boards/msba2-common/tools/src/chipinfo.h
  36. 5
      boards/msba2-common/tools/src/cksum_test.c
  37. 1
      boards/msba2-common/tools/src/control_2xxx.h
  38. 2
      boards/msba2-common/tools/src/download.c
  39. 11
      boards/msba2-common/tools/src/ihex.c
  40. 3
      boards/msba2-common/tools/src/ihex.h
  41. 1
      boards/msba2-common/tools/src/lpc2k_pgm.c
  42. 2
      boards/msba2-common/tools/src/pseudoterm.c
  43. 6
      boards/msba2-common/tools/src/serial.c
  44. 1
      boards/msba2-common/tools/src/settings.c
  45. 3
      boards/msba2-common/tools/src/uuencode.c
  46. 1
      boards/msba2-common/tools/src/uuencode.h
  47. 2
      boards/msba2-common/tools/termctrl.sh
  48. 2
      boards/msba2/Makefile
  49. 1
      boards/msba2/Makefile.include
  50. 1
      boards/native/Makefile.dep
  51. 1
      boards/native/drivers/native-led.c
  52. 2
      boards/pttu/Makefile
  53. 1
      boards/pttu/Makefile.include
  54. 3
      boards/pttu/tools/olimex-arm-usb-ocd.cfg
  55. 28
      boards/pttu/tools/openocd-pttu.cfg
  56. 3
      boards/pttu/tools/pttu_debug.gdb
  57. 2
      boards/redbee-econotag/Makefile.include
  58. 2
      boards/redbee-econotag/drivers/include/uart.h
  59. 4
      boards/redbee-econotag/drivers/nvm.c
  60. 3
      boards/redbee-econotag/drivers/redbee_uart.c
  61. 1
      boards/redbee-econotag/include/board.h
  62. 33
      boards/redbee-econotag/tools/mc1322x-load.pl
  63. 1
      boards/telosb/Makefile.dep
  64. 6
      boards/telosb/driver_cc2420.c
  65. 1
      boards/telosb/uart.c
  66. 1
      boards/wsn430-common/Makefile.include
  67. 4
      boards/wsn430-common/board_init.c
  68. 2
      boards/wsn430-common/include/board-conf.h
  69. 1
      boards/wsn430-common/wsn430-uart0.c
  70. 4
      boards/wsn430-v1_3b/driver_cc110x.c
  71. 4
      boards/wsn430-v1_4/driver_cc2420.c
  72. 3
      core/bitarithm.c
  73. 2
      core/cib.c
  74. 2
      core/clist.c
  75. 6
      core/doc.txt
  76. 5
      core/hwtimer.c
  77. 2
      core/include/atomic.h
  78. 2
      core/include/bitarithm.h
  79. 2
      core/include/cib.h
  80. 1
      core/include/clist.h
  81. 6
      core/include/debug.h
  82. 4
      core/include/hwtimer_arch.h
  83. 4
      core/include/lifo.h
  84. 2
      core/include/msg.h
  85. 6
      core/include/sched.h
  86. 8
      core/include/tcb.h
  87. 1
      core/kernel_init.c
  88. 4
      core/oneway_malloc.c
  89. 2
      core/queue.c
  90. 2
      core/sched.c
  91. 1
      cpu/arm_common/Makefile
  92. 1
      cpu/arm_common/Makefile.include
  93. 2
      cpu/arm_common/VIC.c
  94. 1
      cpu/arm_common/atomic.s
  95. 25
      cpu/arm_common/common.s
  96. 1
      cpu/cc430/Makefile.include
  97. 2
      cpu/cc430/cc430-adc.c
  98. 1
      cpu/cc430/cc430-gpioint.c
  99. 2
      cpu/doc.txt
  100. 12
      cpu/lpc1768/LPC1768.ld
  101. Some files were not shown because too many files have changed in this diff Show More

4
Makefile

@ -5,12 +5,12 @@ DIRS = $(RIOTCPU)/$(CPU) core drivers sys
all:
mkdir -p $(BINDIR)
@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;
clean:
@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
-@if [ -d $(BINDIR) ] ; \
then rm -rf $(BINDIR) ; \
fi
fi
doc:
"$(MAKE)" -BC doc/doxygen

1
Makefile.base

@ -44,4 +44,3 @@ $(BINDIR)%.o: %.S
# remove compilation products
clean::
$(AD)rm -f $(BINDIR)$(MODULE).a $(OBJ) $(DEP) $(ASMOBJ)

2
Makefile.dep

@ -18,7 +18,7 @@ endif
ifneq (,$(findstring uart0,$(USEMODULE)))
ifeq (,$(findstring lib,$(USEMODULE)))
USEMODULE += lib
USEMODULE += lib
endif
ifeq (,$(findstring posix,$(USEMODULE)))
USEMODULE += posix

8
Makefile.include

@ -2,7 +2,7 @@
ifeq ($(strip $(RIOTCPU)),)
export RIOTCPU =$(RIOTBASE)/cpu
endif
ifeq ($(strip $(RIOTBOARD)),)
export RIOTBOARD =$(RIOTBASE)/boards
endif
@ -46,7 +46,7 @@ all: $(BINDIR)$(PROJECT).a
"$(MAKE)" -C $(RIOTBOARD)/$(BOARD)
"$(MAKE)" -C $(RIOTBASE)
@for i in $(EXTERNAL_MODULES) ; do "$(MAKE)" -C $$i ; done ;
ifeq ($(BUILDOSXNATIVE),1)
ifeq ($(BUILDOSXNATIVE),1)
$(AD)$(LINK) $(UNDEF) -o $(BINDIR)$(PROJECT).elf $(BASELIBS) $(LINKFLAGS) -Wl,-no_pie
else
$(AD)$(LINK) $(UNDEF) -o $(BINDIR)$(PROJECT).elf -Wl,--start-group $(BASELIBS) -lm -Wl,--end-group -Wl,-Map=$(BINDIR)$(PROJECT).map $(LINKFLAGS)
@ -57,12 +57,12 @@ endif
## your make rules
## Only basic example - modify it for larger projects!!
#$(BINDIR)/$(PROJECT).a: $(BINDIR)/$(PROJECT).o
# $(AR) -rc $(BINDIR)/project.a $(BINDIR)/$(PROJECT).o
# $(AR) -rc $(BINDIR)/project.a $(BINDIR)/$(PROJECT).o
# string array of all names of c files in dir
SRC = $(wildcard *.c)
# string array of all names replaced .c with .o
# string array of all names replaced .c with .o
OBJ = $(SRC:%.c=${BINDIR}${PROJECT}/%.o)
$(BINDIR)$(PROJECT).a: $(OBJ)

56
README.md

@ -1,29 +1,29 @@
ZZZZZZ
ZZZZZZZZZZZZ
ZZZZZZZZZZZZZZZZ
ZZZZZZZ ZZZZZZ
ZZZZZZ ZZZZZ
ZZZZZ ZZZZ
ZZZZ ZZZZZ
ZZZZ ZZZZ
ZZZZ ZZZZZ
ZZZZ ZZZZZZ
ZZZZ ZZZZZZZZ 777 7777 7777777777
ZZ ZZZZ ZZZZZZZZ 777 77777777 77777777777
ZZZZZZZ ZZZZ ZZZZZZZ 777 7777 7777 777
ZZZZZZZZZ ZZZZ Z 777 777 777 777
ZZZZZZ ZZZZ 777 777 777 777
ZZZZZ ZZZZ 777 777 777 777
ZZZZZ ZZZZZ ZZZZ 777 777 777 777
ZZZZ ZZZZZ ZZZZZ 777 777 777 777
ZZZZ ZZZZZ ZZZZZ 777 777 777 777
ZZZZ ZZZZ ZZZZZ 777 777 777 777
ZZZZZ ZZZZZ ZZZZZ 777 777 777 777
ZZZZZZ ZZZZZZ ZZZZZ 777 7777777777 777
ZZZZZZZZZZZZZZZ ZZZZ 777 77777777 777
ZZZZZZZZZZZ Z
ZZZZZ
ZZZZZZ
ZZZZZZZZZZZZ
ZZZZZZZZZZZZZZZZ
ZZZZZZZ ZZZZZZ
ZZZZZZ ZZZZZ
ZZZZZ ZZZZ
ZZZZ ZZZZZ
ZZZZ ZZZZ
ZZZZ ZZZZZ
ZZZZ ZZZZZZ
ZZZZ ZZZZZZZZ 777 7777 7777777777
ZZ ZZZZ ZZZZZZZZ 777 77777777 77777777777
ZZZZZZZ ZZZZ ZZZZZZZ 777 7777 7777 777
ZZZZZZZZZ ZZZZ Z 777 777 777 777
ZZZZZZ ZZZZ 777 777 777 777
ZZZZZ ZZZZ 777 777 777 777
ZZZZZ ZZZZZ ZZZZ 777 777 777 777
ZZZZ ZZZZZ ZZZZZ 777 777 777 777
ZZZZ ZZZZZ ZZZZZ 777 777 777 777
ZZZZ ZZZZ ZZZZZ 777 777 777 777
ZZZZZ ZZZZZ ZZZZZ 777 777 777 777
ZZZZZZ ZZZZZZ ZZZZZ 777 7777777777 777
ZZZZZZZZZZZZZZZ ZZZZ 777 77777777 777
ZZZZZZZZZZZ Z
ZZZZZ
The friendly Operating System for IoT!
## FEATURES
@ -43,7 +43,7 @@ Its features comprise
* TCP and UDP
* 6LoWPAN
* RPL
## GETTING STARTED
* You want to start the RIOT? Just follow our [Getting started documentation](https://github.com/RIOT-OS/RIOT/wiki/Introduction)
* The RIOT API itself can be built from the code using doxygen. The latest version is uploaded daily to http://riot-os.org/api.
@ -96,7 +96,7 @@ For example, you can use it to the test the native networking by running the `./
Free Software Foundation.
* Some external sources, especially files developed by SICS are published under
a separate license.
All code files contain licensing information.
For more information, see the RIOT website:

1
boards/avsextrem/board_init.c

@ -197,4 +197,3 @@ void bl_init_ports(void)
PINMODE4 |= (BIT23) | (BIT25) | (BIT27); // no resistors
}

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

@ -117,7 +117,7 @@ void cc1100_spi_init(void)
while (SPI_RX_AVAIL) { // while RNE (Receive FIFO Not Empty)...
dummy = SSP1DR; // read data
}
/* to suppress unused-but-set-variable */
(void) dummy;
}
@ -253,4 +253,3 @@ void cc1100_init_interrupts(void)
// Enable external interrupt on low edge (for GDO0)
FIO2DIR &= ~BIT6;
}

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

@ -1331,5 +1331,3 @@ unsigned char SMB380_readGainTemp(uint16_t *gain)
return true;
}

3
boards/avsextrem/drivers/avsextrem-ssp0.c

@ -206,7 +206,7 @@ uint8_t SSP0Prepare(uint8_t chip, uint8_t datasize, uint8_t cpol, uint8_t cpha,
for (uint32_t i = 0; i < FIFOSIZE; i++) {
dummy = SSP0DR; // clear the RxFIFO
}
/* to suppress unused-but-set-variable */
(void) dummy;
@ -425,4 +425,3 @@ unsigned short acam_trx(const uint8_t data)
SSP0_write(data, ACAMDMS);
return SSP0_read(ACAMDMS);
}

1
boards/avsextrem/include/ssp0-board.h

@ -115,4 +115,3 @@ unsigned short acam_trx(const uint8_t data);
void SSP0Handler(void);
#endif /* __SSP_H__ */

1
boards/chronos/putchar.c

@ -30,4 +30,3 @@ int putchar(int c)
_putchar(c);
return c;
}

2
boards/doc.txt

@ -9,7 +9,7 @@
/**
* @defgroup boards Boards
* @brief Board specific definitions and implementations
*
*
* The boards module contains all definitions and implementations, that are specific to a certain board. Boards
* generally consist of a fixed configuration of a controller and some external devices as sensors or radios. All
* aspects concerning pin-configurion, mcu clock and driver configuration should go into this module.

2
boards/mbed_lpc1768/include/system_LPC17xx.h

@ -9,7 +9,7 @@
*----------------------------------------------------------------------------
*
* Copyright (C) 2009 ARM Limited. All rights reserved.
* Copyright (C) 2013 Oliver Hahm <oliver.hahm@fu-berlin.de>
* Copyright (C) 2013 Oliver Hahm <oliver.hahm@fu-berlin.de>
*
* ARM Limited (ARM) is supplying this software for use with Cortex-M3
* processor based microcontrollers. This file can be freely distributed

2
boards/msb-430-common/Makefile.include

@ -35,6 +35,6 @@ endif
export FFLAGS += "prog $(HEXFILE)"
export USEMODULE += msp430_common
export USEMODULE += msp430_common
export INCLUDES += -I $(RIOTCPU)/msp430-common/include/ -I$(RIOTBOARD)/msb-430-common/include -I$(RIOTBOARD)/msb-430-common/drivers/include
export OFLAGS = -O ihex

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

@ -74,4 +74,3 @@ interrupt(USART1RX_VECTOR) usart0irq(void)
}
#endif
}

2
boards/msb-430/Makefile

@ -1,6 +1,6 @@
MODULE =$(BOARD)_base
DIRS = $(RIOTBOARD)/msb-430-common
DIRS = $(RIOTBOARD)/msb-430-common
all: $(BINDIR)$(MODULE).a
@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;

2
boards/msb-430h/Makefile

@ -1,6 +1,6 @@
MODULE =$(BOARD)_base
DIRS = $(RIOTBOARD)/msb-430-common
DIRS = $(RIOTBOARD)/msb-430-common
all: $(BINDIR)$(MODULE).a
@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;

1
boards/msb-430h/Makefile.dep

@ -3,4 +3,3 @@ ifneq (,$(findstring cc110x_ng,$(USEMODULE)))
USEMODULE += cc110x_spi
endif
endif

1
boards/msba2-common/drivers/Makefile

@ -2,4 +2,3 @@ MODULE =$(BOARD)_base
include $(RIOTBOARD)/$(BOARD)/Makefile.include
include $(RIOTBASE)/Makefile.base

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

@ -227,4 +227,3 @@ bl_uart_init(void)
U0IER |= BIT0; // enable only RX irq
return 1;
}

1
boards/msba2-common/lpc2387-timer3.c

@ -48,4 +48,3 @@ unsigned int benchmark_read_stop(void)
T3TCR = 0; // disable timer
return T3TC;
}

3
boards/msba2-common/tools/CHANGES

@ -18,6 +18,3 @@ Added 2103 chip to chip list. ID numbers for 2101 and 2102 unknown
Added support for other chips
Added soft boot code
Added user configurable crystal value (for baud sync protocol)

10
boards/msba2-common/tools/COPYING

@ -55,7 +55,7 @@ patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
@ -110,7 +110,7 @@ above, provided that you also meet all of these conditions:
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
@ -168,7 +168,7 @@ access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
@ -225,7 +225,7 @@ impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
@ -278,7 +278,7 @@ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
Appendix: How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest

2
boards/msba2-common/tools/Makefile

@ -18,7 +18,7 @@ lpc2k_pgm: $(OBJS)
pseudoterm: $(PSEUDOTERM_OBJS)
mkdir -p $(TARGETDIR)
$(CC) -o $(TARGETDIR)/pseudoterm $(PSEUDOTERM_OBJS) -lpthread
$(CC) -o $(TARGETDIR)/pseudoterm $(PSEUDOTERM_OBJS) -lpthread
chipinfo.o: boot_2xxx.h boot_23xx.h

2
boards/msba2-common/tools/README.txt

@ -140,5 +140,3 @@ of the following:
If you get "Command not found" when trying to run "gtk-config", this
is a sure sign that you do not have GTK+ 1.2 installed.

2
boards/msba2-common/tools/armtools.txt

@ -1,4 +1,4 @@
This directory contains flash & terminal-utilities for use with
This directory contains flash & terminal-utilities for use with
the msb_av2 platform used by the FeuerWhere-Project.
Usage:

4
boards/msba2-common/tools/flash.cmd

@ -1,2 +1,2 @@
fm.exe "COM(%1, 230400) DEVICE(LPC2387, 16.000000) HARDWARE(BOOTEXEC, 50, 100) HIGHSPEED(0, 230400) ERASEUSED(%2, PROTECTISP) HEXFILE(%2, NOCHECKSUMS, NOFILL, PROTECTISP) RESET"
sleep 2
fm.exe "COM(%1, 230400) DEVICE(LPC2387, 16.000000) HARDWARE(BOOTEXEC, 50, 100) HIGHSPEED(0, 230400) ERASEUSED(%2, PROTECTISP) HEXFILE(%2, NOCHECKSUMS, NOFILL, PROTECTISP) RESET"
sleep 2

4
boards/msba2-common/tools/flashutil.sh

@ -18,7 +18,7 @@ windows_flash_fm() {
echo " target mismatch: target board is \"${FTDI_ID}\", connected is ${BOARDCHECK}"
exit 1
fi
echo "Flashing ${HEXFILE} to COM${1} (${BOARDCHECK} serial ${SERIAL})"
# Using FlashMagic on Windows (in separate window)
cmd /C start "FlashMagic ${HEXFILE} to ${BOARDCHECK} on COM${1}" fm.exe "COM(${1}, 230400) DEVICE(LPC2387, 16.000000) HARDWARE(BOOTEXEC, 50, 100) HIGHSPEED(0, 230400) ERASEUSED(${HEXFILE}, PROTECTISP) HEXFILE(${HEXFILE}, NOCHECKSUMS, NOFILL, PROTECTISP) RESET"
@ -75,7 +75,7 @@ pids=""
if [ ${PORTS} = "openocd" ]; then
[ "$OPENOCD" != "" ] || exit 1
[ "$OPENOCD_IF" != "" ] || exit 1
# echo -n "Is the board connected to the JTAG a '${FTDI_ID}' (y/n)? "
# echo -n "Is the board connected to the JTAG a '${FTDI_ID}' (y/n)? "
# read REPLY
# [ "$REPLY" = "y" ] || exit 1
fi

2
boards/msba2-common/tools/mkbootc

@ -24,5 +24,3 @@ print C "const unsigned int ${ARGV[0]}[] = {\n";
print C "\t", join(', ', @data), "\n";
print C "};\n";
close C;

1
boards/msba2-common/tools/mkstaticlist

@ -44,4 +44,3 @@ for ($i=0; $i<@arg; $i++) {
}
}
print "\n";

4
boards/msba2-common/tools/src/boot.h

@ -3,7 +3,3 @@ typedef struct {
int size;
const int *prog;
} boot_t;

2
boards/msba2-common/tools/src/boot_23xx.armasm

@ -28,5 +28,3 @@ const:
.int 0xE01FC040 /* MEMMAP register */
.int 0xE01FC080 /* PLLCON */
.int 0xE01FC08C /* PLLFEED */

4
boards/msba2-common/tools/src/boot_2xxx.armasm

@ -9,7 +9,3 @@ begin:
mov pc, #0 /* and then jump to the user's code */
const:
.int 0xE01FC040 /* MEMMAP register */

1
boards/msba2-common/tools/src/chipinfo.c

@ -153,4 +153,3 @@ char *lpc_return_strings[] = {
"INVALID_CODE", "INVALID_BAUD_RATE", "INVALID_STOP_BIT",
"CODE_READ_PROTECTION_ENABLED"
};

2
boards/msba2-common/tools/src/chipinfo.h

@ -16,5 +16,3 @@ struct chip_info_struct {
};
extern struct chip_info_struct chip_info[];

5
boards/msba2-common/tools/src/cksum_test.c

@ -78,8 +78,3 @@ int main()
return 0;
}

1
boards/msba2-common/tools/src/control_2xxx.h

@ -5,4 +5,3 @@ void hard_reset_to_bootloader(void);
void hard_reset_to_user_code(void);
#endif // ..._H

2
boards/msba2-common/tools/src/download.c

@ -1189,5 +1189,3 @@ void download_rx_term(const unsigned char *buf, int num)
// while we are in the middle of downloading. Maybe
// we should look for CTRL-C and abort??
}

11
boards/msba2-common/tools/src/ihex.c

@ -302,14 +302,3 @@ void put_ihex_data(int addr, int len, const unsigned char *bytes)
addr++;
}
}

3
boards/msba2-common/tools/src/ihex.h

@ -2,6 +2,3 @@ extern int read_intel_hex(const char *filename);
extern int bytes_within_range(int begin, int end);
extern void get_ihex_data(int addr, int len, unsigned char *bytes);
extern void put_ihex_data(int addr, int len, const unsigned char *bytes);

1
boards/msba2-common/tools/src/lpc2k_pgm.c

@ -100,4 +100,3 @@ int main(int argc, char **argv)
return programming_status;
}

2
boards/msba2-common/tools/src/pseudoterm.c

@ -177,5 +177,3 @@ int main(int argc, char **argv)
close_serial_port();
return 0;
}

6
boards/msba2-common/tools/src/serial.c

@ -444,9 +444,3 @@ void set_dtr(int val)
printf("Error %i while setting port io flags\n", errno);
}
}

1
boards/msba2-common/tools/src/settings.c

@ -206,4 +206,3 @@ void new_crystal_setting(const char *new_xtal)
write_settings_file();
}
}

3
boards/msba2-common/tools/src/uuencode.c

@ -118,6 +118,3 @@ static char uuchar(unsigned int val)
return val;
}

1
boards/msba2-common/tools/src/uuencode.h

@ -1,3 +1,2 @@
extern void uuencode(char *str, const unsigned char *data, int num);
extern int uudecode(const char *str, unsigned char *data, int max);

2
boards/msba2-common/tools/termctrl.sh

@ -18,5 +18,5 @@ else
echo "Usage:";
echo "termctrl.sh continue/pause/stop";
fi
fi

2
boards/msba2/Makefile

@ -1,7 +1,7 @@
MODULE =$(BOARD)_base
INCLUDES += -I$(RIOTBASE)/drivers/cc110x
DIRS = $(RIOTBOARD)/msba2-common
DIRS = $(RIOTBOARD)/msba2-common
all: $(BINDIR)$(MODULE).a
@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;

1
boards/msba2/Makefile.include

@ -1,4 +1,3 @@
export INCLUDES += -I$(RIOTBOARD)/msba2/include
include $(RIOTBOARD)/msba2-common/Makefile.include

1
boards/native/Makefile.dep

@ -3,4 +3,3 @@ ifneq (,$(findstring ltc4150,$(USEMODULE)))
USEMODULE += hwtimer
endif
endif

1
boards/native/drivers/native-led.c

@ -48,4 +48,3 @@ void _native_LED_RED_TOGGLE(void)
{
printf("LED_RED_TOGGLE\n");
}

2
boards/pttu/Makefile

@ -1,7 +1,7 @@
MODULE =$(BOARD)_base
INCLUDES += -I$(RIOTBASE)/drivers/cc110x
DIRS = $(RIOTBOARD)/msba2-common
DIRS = $(RIOTBOARD)/msba2-common
all: $(BINDIR)$(MODULE).a
@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;

1
boards/pttu/Makefile.include

@ -1,4 +1,3 @@
export INCLUDES += -I$(RIOTBOARD)/pttu/include
include $(RIOTBOARD)/msba2-common/Makefile.include

3
boards/pttu/tools/olimex-arm-usb-ocd.cfg

@ -1,4 +1,4 @@
#
#
set CPUTAPID 0x4f1f0f0f
jtag_speed 100
@ -6,4 +6,3 @@ jtag_speed 100
source [find interface/olimex-arm-usb-ocd.cfg]
#source [find target/lpc2148.cfg]
source lpc2378.cfg

28
boards/pttu/tools/openocd-pttu.cfg

@ -21,38 +21,38 @@ proc mt_internal_rc {} {
halt
wait_halt 2
# PLL disconnect PLLCON
mww 0xE01FC080 0x01
mww 0xE01FC08C 0xAA
mww 0xE01FC08C 0x55
mww 0xE01FC080 0x01
mww 0xE01FC08C 0xAA
mww 0xE01FC08C 0x55
# PLL disable PLLCON
mww 0xE01FC080 0x00
mww 0xE01FC08C 0xAA
mww 0xE01FC08C 0x55
mww 0xE01FC080 0x00
mww 0xE01FC08C 0xAA
mww 0xE01FC08C 0x55
# no prescaler CCLKCFG
mww 0xE01FC104 0x00
# internal RC CLKSRCSEL
mww 0xE01FC10C 0x00
mww 0xE01FC10C 0x00
#### main oscil. CLKSRCSEL
#### mww 0xE01FC10C 0x01
# remap to internal flash
mww 0xE01FC040 0x01
sleep 100
mww 0xE01FC040 0x01
sleep 100
jtag_khz 500
flash probe 0
flash probe 0
}
proc mt_flash_bin {IMGFILE OFFSET} {
mt_internal_rc
flash write_image erase $IMGFILE $OFFSET
sleep 100
sleep 100
verify_image $IMGFILE $OFFSET
sleep 100
sleep 100
}
proc mt_flash_v {IMGFILE} {
mt_internal_rc
flash write_image erase $IMGFILE
sleep 100
sleep 100
verify_image $IMGFILE
sleep 100
}
@ -64,7 +64,7 @@ proc mt_flash {IMGFILE} {
flash bank lpc2000 0x0 0x7d000 0 0 0 lpc2000_v2 4000 calc_checksum
arm7_9 dcc_downloads enable
arm7_9 dcc_downloads enable
gdb_flash_program enable

3
boards/pttu/tools/pttu_debug.gdb

@ -1,7 +1,7 @@
#winheight regs 11
set history save on
set history size 1000
target remote localhost:3333
target remote localhost:3333
monitor mt_internal_rc
load
compare-sections
@ -12,4 +12,3 @@ monitor debug_level 0
break bootloader
continue
d b 1

2
boards/redbee-econotag/Makefile.include

@ -9,7 +9,7 @@ export CFLAGS += -std=gnu99 -march=armv4t -mtune=arm7tdmi-s -mlong-calls \
-msoft-float -mthumb-interwork -fno-strict-aliasing -fno-common \
-ffixed-r8 -ffunction-sections -ffreestanding -fno-builtin \
-nodefaultlibs -Wcast-align -Wall -Wstrict-prototypes -Wextra \
-Os -pipe
-Os -pipe
export CFLAGS_MTHUMB ?= -mthumb
$(warning TODO add -mthumb)
export AFLAGS = -Wa,-gstabs $(CFLAGS)

2
boards/redbee-econotag/drivers/include/uart.h

@ -82,7 +82,7 @@ struct UART_struct {
uint32_t : 27;
} CTSbits;
};
uint32_t BR; /*< BR is 32bit access only */
};

4
boards/redbee-econotag/drivers/nvm.c

@ -10,9 +10,9 @@
#include "nvm.h"
nvm_err_t (*nvm_detect) (nvm_interface_t nvm_interface, nvm_type_t* p_nvm_type)
nvm_err_t (*nvm_detect) (nvm_interface_t nvm_interface, nvm_type_t* p_nvm_type)
= (void*) 0x00006cb9;
nvm_err_t (*nvm_read) (nvm_interface_t nvm_interface, nvm_type_t nvm_type, void *p_dest, uint32_t address, uint32_t num_bytes)
nvm_err_t (*nvm_read) (nvm_interface_t nvm_interface, nvm_type_t nvm_type, void *p_dest, uint32_t address, uint32_t num_bytes)
= (void*) 0x00006d69;
nvm_err_t (*nvm_write) (nvm_interface_t nvm_interface, nvm_type_t nvm_type, void *p_src, uint32_t address, uint32_t numb_bytes)
= (void*) 0x00006ec5;

3
boards/redbee-econotag/drivers/redbee_uart.c

@ -26,7 +26,7 @@ void uart_set_baudrate(volatile struct UART_struct *uart, uint32_t baudrate)
/* multiply by another 10 to get a fixed point*/
inc = ((uint64_t) baudrate * DIV_ * MOD_ * 10 / CLK_) - 10;
/* add 5 and div by 10 to get a proper rounding */
inc = (inc + 5) / 10;
inc = (inc + 5) / 10;
/* disable UARTx to set baudrate */
uart->CONbits.TXE = 0;
@ -183,4 +183,3 @@ void bl_uart_init(void)
{
uart_init(UART1, BAUTRATE_UART1);
}

1
boards/redbee-econotag/include/board.h

@ -28,4 +28,3 @@
typedef uint8_t radio_packet_length_t;
#endif

33
boards/redbee-econotag/tools/mc1322x-load.pl

@ -22,8 +22,8 @@ my $zerolen;
GetOptions ('file=s' => \$filename,
'secondfile=s' => \$second,
'zerolen' => \$zerolen,
'terminal=s' => \$term,
'verbose' => \$verbose,
'terminal=s' => \$term,
'verbose' => \$verbose,
'u|baud=s' => \$baud,
'rts=s' => \$rts,
'command=s' => \$command,
@ -77,12 +77,12 @@ my $s = 0;
my $reset = 0;
my $size = 0;
while(1) {
while(1) {
my $c; my $count; my $ret = ''; my $test='';
if($s == 1) { print "secondary send...\n"; }
$ob->write(pack('C','0'));
if(($command ne '') &&
@ -91,25 +91,25 @@ while(1) {
system($command);
}
if($s == 1) {
$test = 'ready';
if($s == 1) {
$test = 'ready';
} else {
$test = 'CONNECT';
}
until($ret =~ /$test$/) {
($count,$c) = $ob->read(1);
if ($count == 0) {
if ($count == 0) {
print '.';
$ob->write(pack('C','0'));
$ob->write(pack('C','0'));
next;
}
$ret .= $c;
}
print $ret . "\n";
if (-e $filename || (defined($zerolen) && ($s == 1))) {
if(defined($zerolen) && ($s == 1)) {
$size = 0;
} else {
@ -123,7 +123,7 @@ while(1) {
((!defined($zerolen)) && ($s == 1))) {
open(FILE, $filename) or die($!);
print "Sending $filename\n";
my $i = 1;
while(read(FILE, $c, 1)) {
$i++;
@ -133,7 +133,7 @@ while(1) {
}
}
}
last if ($s==1);
if((-e $second) || defined($zerolen)) {
$s=1; $filename = $second;
@ -141,7 +141,7 @@ while(1) {
last;
}
}
}
print "done sending files.\n";
@ -168,4 +168,3 @@ $ob -> close or die "Close failed: $!\n";
ReadMode 0;
undef $ob; # closes port AND frees memory in perl
exit;

1
boards/telosb/Makefile.dep

@ -1,2 +1 @@
USEMODULE += msp430_common

6
boards/telosb/driver_cc2420.c

@ -171,7 +171,7 @@ void cc2420_spi_init(void)
P3DIR &= ~(0x04); /* P3.2 as input for SOMI */
P4OUT |= 0x04; /* P4.2 radio CS, hold high */
P4DIR |= 0x04; /* P4.2 radio CS, output */
/* Keep peripheral in reset state */
U0CTL = SWRST;
@ -179,14 +179,14 @@ void cc2420_spi_init(void)
/* CKPL works also, but not CKPH+CKPL or none of them!! */
U0CTL |= CHAR + SYNC + MM;
U0TCTL = CKPH + SSEL1 + SSEL0 + STC + TXEPT;;
/* Ignore clockrate argument for now, just use clock source/2 */
/* SMCLK = 8 MHz */
U0BR0 = 0x02; /* Ensure baud rate >= 2 */
U0BR1 = 0x00;
U0MCTL = 0x00; /* No modulation */
U0RCTL = 0x00; /* Reset Receive Control Register */
/* Enable SPI mode */
ME1 |= USPIE0;

1
boards/telosb/uart.c

@ -115,4 +115,3 @@ interrupt(USART1RX_VECTOR) usart1irq(void)
#endif
}

1
boards/wsn430-common/Makefile.include

@ -22,4 +22,3 @@ export FFLAGS = -d $(PORT) -j uif "prog $(HEXFILE)"
export INCLUDES += -I$(RIOTBOARD)/wsn430-common/include
export OFLAGS = -O ihex

4
boards/wsn430-common/board_init.c

@ -145,8 +145,8 @@ void msp430_init_dco(void)
void board_init() {
msp430_cpu_init();
msb_ports_init();
LED_RED_ON;
msp430_set_cpu_speed(MCLK_8MHZ_SCLK_8MHZ);
}

2
boards/wsn430-common/include/board-conf.h

@ -16,7 +16,7 @@
*/
#ifndef BOARD_CONF_H
#define BOARD_CONF_H
#define BOARD_CONF_H
#include <stdint.h>

1
boards/wsn430-common/wsn430-uart0.c

@ -60,4 +60,3 @@ interrupt(USART0RX_VECTOR) usart0irq(void) {
}
#endif
}

4
boards/wsn430-v1_3b/driver_cc110x.c

@ -169,14 +169,14 @@ void cc110x_spi_init(void)
// CKPL works also, but not CKPH+CKPL or none of them!!
U1CTL |= CHAR + SYNC + MM;
U1TCTL = CKPH + SSEL1 + SSEL0 + STC;
// Ignore clockrate argument for now, just use clock source/2
// SMCLK = 8 MHz
U1BR0 = 0x02; // Ensure baud rate >= 2
U1BR1 = 0x00;
U1MCTL = 0x00; // No modulation
U1RCTL = 0x00; // Reset Receive Control Register
// Enable SPI mode
ME2 |= USPIE1;

4
boards/wsn430-v1_4/driver_cc2420.c

@ -168,14 +168,14 @@ void cc2420_spi_init(void)
// CKPL works also, but not CKPH+CKPL or none of them!!
U1CTL |= CHAR + SYNC + MM;
U1TCTL = CKPH + SSEL1 + SSEL0 + STC;
// Ignore clockrate argument for now, just use clock source/2
// SMCLK = 8 MHz
U1BR0 = 0x02; // Ensure baud rate >= 2
U1BR1 = 0x00;
U1MCTL = 0x00; // No modulation
U1RCTL = 0x00; // Reset Receive Control Register
// Enable SPI mode
ME2 |= USPIE1;

3
core/bitarithm.c

@ -5,7 +5,7 @@
* Public License. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @ingroup core_util
* @{
@ -69,4 +69,3 @@ number_of_bits_set(unsigned v)
return c;
}

2
core/cib.c

@ -5,7 +5,7 @@
* Public License. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @ingroup core_util
* @{

2
core/clist.c

@ -5,7 +5,7 @@
* Public License. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @ingroup core_util
* @{

6
core/doc.txt

@ -9,17 +9,17 @@
/**
* @defgroup core Kernel
* @brief The RIOT micro-kernel containing the core functionality
*
*
* The kernel module contains only the basic OS functionality such as the sheduler, threading, synchronization
* and IRQ-handling. The only exception is the integration of the hardware timer into this module.
*/
/**
* @defgroup core_util Kernel utilities
* @ingroup core
* @brief Utilies and data structures used by the kernel
*/
/**
* @defgroup core_internal Startup and Configuration
* @ingroup core

5
core/hwtimer.c

@ -5,7 +5,7 @@
* Public License. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @ingroup core_hwtimer
* @{
@ -141,7 +141,7 @@ void hwtimer_wait(unsigned long ticks)
hwtimer_spin(ticks);
return;
}
/* try to lock mutex again will cause the thread to go into
* STATUS_MUTEX_BLOCKED until hwtimer fires the releasemutex */
mutex_lock(&mutex);
@ -217,4 +217,3 @@ int hwtimer_remove(int n)
hwtimer_arch_enable_interrupt();
return 1;
}

2
core/include/atomic.h

@ -5,7 +5,7 @@
* Public License. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @addtogroup core_util
* @{

2
core/include/bitarithm.h

@ -6,7 +6,7 @@
* details.
*/
/**
/**
* @addtogroup core_util
* @{
*

2
core/include/cib.h

@ -5,7 +5,7 @@
* Public License. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @addtogroup core_util
* @{