diff --git a/Makefile b/Makefile
index b8d43caa7f96423414212caf24c96184eea3f649..13f58aebc61847a476583ea030a62d4e9b89fa56 100644
--- a/Makefile
+++ b/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
diff --git a/Makefile.base b/Makefile.base
index 5ea0a1565774f74bd889f9258a2768f955f894da..d5195431a265b9e5604ee34cc3cd750d7f3b5641 100644
--- a/Makefile.base
+++ b/Makefile.base
@@ -44,4 +44,3 @@ $(BINDIR)%.o: %.S
 # remove compilation products
 clean::
 	$(AD)rm -f $(BINDIR)$(MODULE).a $(OBJ) $(DEP) $(ASMOBJ)
-	
diff --git a/Makefile.dep b/Makefile.dep
index c4acbeb2a2532cfce9180039e48a1936e8dda5e0..682d8108f5c8743147dc712fc69e699bba595804 100644
--- a/Makefile.dep
+++ b/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
diff --git a/Makefile.include b/Makefile.include
index 1b0b0185efacdd227950b79826ab261461e6dbad..d57f4fc330bed6e75be771940867d4eefc532ad7 100644
--- a/Makefile.include
+++ b/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)
diff --git a/README.md b/README.md
index d6b58fc08ac852ae64901b145f27619bf01a96c0..5e418cf8dc7a87526d19cf24bbabf8af20552777 100644
--- a/README.md
+++ b/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:
diff --git a/boards/avsextrem/board_init.c b/boards/avsextrem/board_init.c
index 17074464eb5abc544bf8d6f088106aee9b760679..5ae829fe8796fea4d459e93381f453ee7d798f15 100644
--- a/boards/avsextrem/board_init.c
+++ b/boards/avsextrem/board_init.c
@@ -197,4 +197,3 @@ void bl_init_ports(void)
     PINMODE4 |= (BIT23) | (BIT25) | (BIT27); // no resistors
 
 }
-
diff --git a/boards/avsextrem/drivers/avsextrem-cc1100.c b/boards/avsextrem/drivers/avsextrem-cc1100.c
index ffda08267db86ff4da9825025a3da76c308cd508..b35f286f81b768bd0d44d0767504baf58acf6050 100644
--- a/boards/avsextrem/drivers/avsextrem-cc1100.c
+++ b/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;
 }
-
diff --git a/boards/avsextrem/drivers/avsextrem-smb380.c b/boards/avsextrem/drivers/avsextrem-smb380.c
index 8462662dca5a04546b99a6675064ef91a840b2b9..b5b4a981bef17f90e2ebd64ecfcbc7f1eef0c08f 100644
--- a/boards/avsextrem/drivers/avsextrem-smb380.c
+++ b/boards/avsextrem/drivers/avsextrem-smb380.c
@@ -1331,5 +1331,3 @@ unsigned char SMB380_readGainTemp(uint16_t *gain)
 
     return true;
 }
-
-
diff --git a/boards/avsextrem/drivers/avsextrem-ssp0.c b/boards/avsextrem/drivers/avsextrem-ssp0.c
index a43993ff7c7dbb2d8746779f079301459b287254..5055cbefbe353f4bd8834dab4f19f725f9b36c2c 100644
--- a/boards/avsextrem/drivers/avsextrem-ssp0.c
+++ b/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);
 }
-
diff --git a/boards/avsextrem/include/ssp0-board.h b/boards/avsextrem/include/ssp0-board.h
index ffcc5356ee8cd3fa531f8a3e23eba7e0e8c492dc..f17b3cd82a4ff952a100ed971bf3d831140d8a5b 100644
--- a/boards/avsextrem/include/ssp0-board.h
+++ b/boards/avsextrem/include/ssp0-board.h
@@ -115,4 +115,3 @@ unsigned short acam_trx(const uint8_t data);
 void SSP0Handler(void);
 
 #endif  /* __SSP_H__ */
-
diff --git a/boards/chronos/putchar.c b/boards/chronos/putchar.c
index 8c7b005812a2daf926bf0fdbbd201e0958c47966..31987e8fd41b623adc360d1cf3d9593cf1a5e685 100644
--- a/boards/chronos/putchar.c
+++ b/boards/chronos/putchar.c
@@ -30,4 +30,3 @@ int putchar(int c)
     _putchar(c);
     return c;
 }
-
diff --git a/boards/doc.txt b/boards/doc.txt
index a2ee0479428dc04d3dd494d5776d7022ffea2e3a..4898012e03621a9ea083827559090339c755cdcd 100644
--- a/boards/doc.txt
+++ b/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.
diff --git a/boards/mbed_lpc1768/include/system_LPC17xx.h b/boards/mbed_lpc1768/include/system_LPC17xx.h
index 85f789d51366527d91420fb4e5919397852ae504..b7259c3951bac3b6d94dbf978dae01e88b3bcae6 100644
--- a/boards/mbed_lpc1768/include/system_LPC17xx.h
+++ b/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
diff --git a/boards/msb-430-common/Makefile.include b/boards/msb-430-common/Makefile.include
index d25fd8efeec43c19157891c501c9b57b4414c674..3f7bcc2bbec1ea4707a7555f250193d594ec7131 100644
--- a/boards/msb-430-common/Makefile.include
+++ b/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
diff --git a/boards/msb-430-common/uart1.c b/boards/msb-430-common/uart1.c
index c0cab8380dd534375255a8ac390da0a80b53d5c7..89ba4f20453c0444036f56c877f819d3b8ce8f50 100644
--- a/boards/msb-430-common/uart1.c
+++ b/boards/msb-430-common/uart1.c
@@ -74,4 +74,3 @@ interrupt(USART1RX_VECTOR) usart0irq(void)
     }
 #endif
 }
-
diff --git a/boards/msb-430/Makefile b/boards/msb-430/Makefile
index 0a7ebeb6372570bfb26360c69be87b9e92fc0902..ecf719f25851671eef024d749cb860700710c159 100644
--- a/boards/msb-430/Makefile
+++ b/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 ;
diff --git a/boards/msb-430h/Makefile b/boards/msb-430h/Makefile
index 0a7ebeb6372570bfb26360c69be87b9e92fc0902..ecf719f25851671eef024d749cb860700710c159 100644
--- a/boards/msb-430h/Makefile
+++ b/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 ;
diff --git a/boards/msb-430h/Makefile.dep b/boards/msb-430h/Makefile.dep
index de1d7e692ce6129db82a8d19be9ef82631a00dea..90564bbaee334a07561f950cdf520c09fce433fa 100644
--- a/boards/msb-430h/Makefile.dep
+++ b/boards/msb-430h/Makefile.dep
@@ -3,4 +3,3 @@ ifneq (,$(findstring cc110x_ng,$(USEMODULE)))
 		USEMODULE += cc110x_spi
 	endif
 endif
-
diff --git a/boards/msba2-common/drivers/Makefile b/boards/msba2-common/drivers/Makefile
index 7f461f12f97bde65b9a8e32fa8914f3feb9d9fd4..275a4456b6297213139b1aa5e9545ebb8dd2eb37 100644
--- a/boards/msba2-common/drivers/Makefile
+++ b/boards/msba2-common/drivers/Makefile
@@ -2,4 +2,3 @@ MODULE =$(BOARD)_base
 include $(RIOTBOARD)/$(BOARD)/Makefile.include
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/boards/msba2-common/drivers/msba2-uart0.c b/boards/msba2-common/drivers/msba2-uart0.c
index 44c6c7741c28619590c2c691753d4e4d8b3221f4..4243898cbd4bbf50c97825292cfc85a24cb16e98 100644
--- a/boards/msba2-common/drivers/msba2-uart0.c
+++ b/boards/msba2-common/drivers/msba2-uart0.c
@@ -227,4 +227,3 @@ bl_uart_init(void)
     U0IER |= BIT0;       // enable only RX irq
     return 1;
 }
-
diff --git a/boards/msba2-common/lpc2387-timer3.c b/boards/msba2-common/lpc2387-timer3.c
index b9d1e23adfd228d9ca4be6d4d62b584f71664954..c0de286b9e663d6704dbaff8d7a3b2cc6c06b2c7 100644
--- a/boards/msba2-common/lpc2387-timer3.c
+++ b/boards/msba2-common/lpc2387-timer3.c
@@ -48,4 +48,3 @@ unsigned int  benchmark_read_stop(void)
 	T3TCR = 0;												// disable timer
 	return T3TC;
 }
-
diff --git a/boards/msba2-common/tools/CHANGES b/boards/msba2-common/tools/CHANGES
index dd9e6ec1eaa9f1d0143daf3c7df207124aa1931b..1b676291fe9ce91618cb9ee56c93f095d6caa89d 100644
--- a/boards/msba2-common/tools/CHANGES
+++ b/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)
-
-
-
diff --git a/boards/msba2-common/tools/COPYING b/boards/msba2-common/tools/COPYING
index a43ea2126fb6b114bff5f8e003ee118e045dacf1..b8cf3a1ab2b14d1644a83b0046065c66c73e8a89 100644
--- a/boards/msba2-common/tools/COPYING
+++ b/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
diff --git a/boards/msba2-common/tools/Makefile b/boards/msba2-common/tools/Makefile
index 442d7516915f7c98be71e73a8f423c941d814c8d..aff58e4300ee44f36737b78a8fc0c15b5df72824 100644
--- a/boards/msba2-common/tools/Makefile
+++ b/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
 
diff --git a/boards/msba2-common/tools/README.txt b/boards/msba2-common/tools/README.txt
index 8fd6adb012b8ac424c295edecf5a8200c1c8f09f..7b64d7be458132233c46624d7c560e3b08a1f336 100644
--- a/boards/msba2-common/tools/README.txt
+++ b/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.
-
-
diff --git a/boards/msba2-common/tools/armtools.txt b/boards/msba2-common/tools/armtools.txt
index c91a4853f753bc115887817bc3e57fae63c0d3b2..8dd7519d67fdeeb5f0b8fa1d2f5e20eb0b4c360b 100644
--- a/boards/msba2-common/tools/armtools.txt
+++ b/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:
diff --git a/boards/msba2-common/tools/flash.cmd b/boards/msba2-common/tools/flash.cmd
index e957ca2b654438739ca6903b097ac6a0502449e0..9cbd45ac3f7cbff766aa95ca5ed2498fa90885c7 100755
--- a/boards/msba2-common/tools/flash.cmd
+++ b/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
diff --git a/boards/msba2-common/tools/flashutil.sh b/boards/msba2-common/tools/flashutil.sh
index c97d7c9a6322223137e3e687e546c55f5563f737..3f95d02621dcb0241a50fbc8d35e483a0cbbb98a 100755
--- a/boards/msba2-common/tools/flashutil.sh
+++ b/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
diff --git a/boards/msba2-common/tools/mkbootc b/boards/msba2-common/tools/mkbootc
index 4c0d9554dcd7432137a8ac14535b7eb5ac4ecec8..e7b61523b1a71ecb90f0666b5e3617e00b4dc309 100644
--- a/boards/msba2-common/tools/mkbootc
+++ b/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;
-
-
diff --git a/boards/msba2-common/tools/mkstaticlist b/boards/msba2-common/tools/mkstaticlist
index 4ad31030ca512d89bce250f5fe29d162c0207e90..3fd2e8915f0eccb565c608e5a73275b43960b7b2 100644
--- a/boards/msba2-common/tools/mkstaticlist
+++ b/boards/msba2-common/tools/mkstaticlist
@@ -44,4 +44,3 @@ for ($i=0; $i<@arg; $i++) {
 	}
 }
 print "\n";
-
diff --git a/boards/msba2-common/tools/src/boot.h b/boards/msba2-common/tools/src/boot.h
index ebca675db19e84706b81fe156c6073ebdd57ab2b..d0c0198fd5fff17d2ddd6ddc81b8edd1f3e2f1b6 100644
--- a/boards/msba2-common/tools/src/boot.h
+++ b/boards/msba2-common/tools/src/boot.h
@@ -3,7 +3,3 @@ typedef struct {
     int size;
     const int *prog;
 } boot_t;
-
-
-
-
diff --git a/boards/msba2-common/tools/src/boot_23xx.armasm b/boards/msba2-common/tools/src/boot_23xx.armasm
index 50e29957ff41a27b43daf1273cce9e61fc009bb9..c0ee73c8c672f58a6c385668c2e86eea223d1305 100644
--- a/boards/msba2-common/tools/src/boot_23xx.armasm
+++ b/boards/msba2-common/tools/src/boot_23xx.armasm
@@ -28,5 +28,3 @@ const:
 	.int	0xE01FC040	/* MEMMAP register */
 	.int	0xE01FC080	/* PLLCON */
 	.int	0xE01FC08C	/* PLLFEED */
-
-
diff --git a/boards/msba2-common/tools/src/boot_2xxx.armasm b/boards/msba2-common/tools/src/boot_2xxx.armasm
index 38e171520acd6bd40619fa4e790a5ee8758fd3a6..f5ddc511c89da915a4a919a5d2859e81a49e2d3e 100644
--- a/boards/msba2-common/tools/src/boot_2xxx.armasm
+++ b/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 */
-
-
-
-
diff --git a/boards/msba2-common/tools/src/chipinfo.c b/boards/msba2-common/tools/src/chipinfo.c
index 4c418379b8653e1b80f8bd811658791f259209b1..53c687faa5e746408ab7b8e6d339eb20e0097e42 100644
--- a/boards/msba2-common/tools/src/chipinfo.c
+++ b/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"
 };
-
diff --git a/boards/msba2-common/tools/src/chipinfo.h b/boards/msba2-common/tools/src/chipinfo.h
index 8c49593296c955ffb16f6118ed05638ee79fb2c5..75ae81b05b8db233b8f1e85935830a2d3ff1b020 100644
--- a/boards/msba2-common/tools/src/chipinfo.h
+++ b/boards/msba2-common/tools/src/chipinfo.h
@@ -16,5 +16,3 @@ struct chip_info_struct {
 };
 
 extern struct chip_info_struct chip_info[];
-
-
diff --git a/boards/msba2-common/tools/src/cksum_test.c b/boards/msba2-common/tools/src/cksum_test.c
index facd6a1f3a9fdd8a9161860d81628ab3e43edcb7..d5b1aacf1d8455b0c178a9e3162d01afebdde314 100644
--- a/boards/msba2-common/tools/src/cksum_test.c
+++ b/boards/msba2-common/tools/src/cksum_test.c
@@ -78,8 +78,3 @@ int main()
 
     return 0;
 }
-
-
-
-
-
diff --git a/boards/msba2-common/tools/src/control_2xxx.h b/boards/msba2-common/tools/src/control_2xxx.h
index e37e2e29d506b8ee4303ff6b391467b94d973130..dac78f01c13d6592180be6da76348257fed1c1d0 100644
--- a/boards/msba2-common/tools/src/control_2xxx.h
+++ b/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
-
diff --git a/boards/msba2-common/tools/src/download.c b/boards/msba2-common/tools/src/download.c
index c7aab543a8174e4b38aef9d9c90f0cb1be0c39a0..418a0621311b31fb0154c695a84768948379f2d4 100644
--- a/boards/msba2-common/tools/src/download.c
+++ b/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??
 }
-
-
diff --git a/boards/msba2-common/tools/src/ihex.c b/boards/msba2-common/tools/src/ihex.c
index 5f83759fa729f3f27e89ff124838f5293a587de9..d257193407d37ae4bd73572b626e5a80e7c31b45 100644
--- a/boards/msba2-common/tools/src/ihex.c
+++ b/boards/msba2-common/tools/src/ihex.c
@@ -302,14 +302,3 @@ void put_ihex_data(int addr, int len, const unsigned char *bytes)
         addr++;
     }
 }
-
-
-
-
-
-
-
-
-
-
-
diff --git a/boards/msba2-common/tools/src/ihex.h b/boards/msba2-common/tools/src/ihex.h
index f6892381f519ffa44d5c439c3afc65243d02fd2c..7fbc58855a5e5d01e7fb69e23cbf71002579db5f 100644
--- a/boards/msba2-common/tools/src/ihex.h
+++ b/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);
-
-
-
diff --git a/boards/msba2-common/tools/src/lpc2k_pgm.c b/boards/msba2-common/tools/src/lpc2k_pgm.c
index 756aa5b967bf1a6e36bc59131d0f484547474ad3..e9cd600213569438b8ba9b83ab5fd610f445122c 100644
--- a/boards/msba2-common/tools/src/lpc2k_pgm.c
+++ b/boards/msba2-common/tools/src/lpc2k_pgm.c
@@ -100,4 +100,3 @@ int main(int argc, char **argv)
 
     return programming_status;
 }
-
diff --git a/boards/msba2-common/tools/src/pseudoterm.c b/boards/msba2-common/tools/src/pseudoterm.c
index 24b2d33cb06b1b43ebe15b712002d50fd2222ae4..30279b6726c76b363e1fc9995b59b6d001cabcf0 100644
--- a/boards/msba2-common/tools/src/pseudoterm.c
+++ b/boards/msba2-common/tools/src/pseudoterm.c
@@ -177,5 +177,3 @@ int main(int argc, char **argv)
     close_serial_port();
     return 0;
 }
-
-
diff --git a/boards/msba2-common/tools/src/serial.c b/boards/msba2-common/tools/src/serial.c
index 9e7fee25f8d367d1522983ae75b556fe5befc525..258479027677e9e281a1117480fe93574a8fd750 100644
--- a/boards/msba2-common/tools/src/serial.c
+++ b/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);
     }
 }
-
-
-
-
-
-
diff --git a/boards/msba2-common/tools/src/settings.c b/boards/msba2-common/tools/src/settings.c
index 405d648e1a1113ba8f7b8faa623bfe631e39184b..67e64c4c59245a11a549a7df266697c3a82de587 100644
--- a/boards/msba2-common/tools/src/settings.c
+++ b/boards/msba2-common/tools/src/settings.c
@@ -206,4 +206,3 @@ void new_crystal_setting(const char *new_xtal)
         write_settings_file();
     }
 }
-
diff --git a/boards/msba2-common/tools/src/uuencode.c b/boards/msba2-common/tools/src/uuencode.c
index 7b6856ab6408a4f824bef170776ac353d940f9b8..40745f05e9dbd529577f773c3d6987a32b9f231c 100644
--- a/boards/msba2-common/tools/src/uuencode.c
+++ b/boards/msba2-common/tools/src/uuencode.c
@@ -118,6 +118,3 @@ static char uuchar(unsigned int val)
 
     return val;
 }
-
-
-
diff --git a/boards/msba2-common/tools/src/uuencode.h b/boards/msba2-common/tools/src/uuencode.h
index 92fecb7d33c3f391f9e9724436396cf89ff2c5ad..1626d611685aef2ac2e9cc22136499a5665e81a2 100644
--- a/boards/msba2-common/tools/src/uuencode.h
+++ b/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);
-
diff --git a/boards/msba2-common/tools/termctrl.sh b/boards/msba2-common/tools/termctrl.sh
index 75e87ab21e336d0562e7dd4aaa8caa9abf0bce43..e98afd7aa7ab6d52ac9bec307a29b84be0ba82d5 100755
--- a/boards/msba2-common/tools/termctrl.sh
+++ b/boards/msba2-common/tools/termctrl.sh
@@ -18,5 +18,5 @@ else
 		echo "Usage:";
 		echo "termctrl.sh continue/pause/stop";
 	fi
-	
+
 fi
diff --git a/boards/msba2/Makefile b/boards/msba2/Makefile
index 12fef1c0edfd00a04c9ee653cd6e28c6c50c3873..c7a205595a9a79130134be1da72dc8e8ebee1521 100644
--- a/boards/msba2/Makefile
+++ b/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 ;
diff --git a/boards/msba2/Makefile.include b/boards/msba2/Makefile.include
index 41c42a0453d6b574d8f1449a072fe18ea880540b..214f4602c3097acf02ff7724313144177c76af82 100644
--- a/boards/msba2/Makefile.include
+++ b/boards/msba2/Makefile.include
@@ -1,4 +1,3 @@
 export INCLUDES += -I$(RIOTBOARD)/msba2/include
 
 include $(RIOTBOARD)/msba2-common/Makefile.include
-
diff --git a/boards/native/Makefile.dep b/boards/native/Makefile.dep
index fdd8ec4d907e0162da0a462b8b07bb9340b926dc..d79ab4cc74ac7db281d01c6045d83acfa1a419a4 100644
--- a/boards/native/Makefile.dep
+++ b/boards/native/Makefile.dep
@@ -3,4 +3,3 @@ ifneq (,$(findstring ltc4150,$(USEMODULE)))
 		USEMODULE += hwtimer
 	endif
 endif
-
diff --git a/boards/native/drivers/native-led.c b/boards/native/drivers/native-led.c
index fcf2fc9fb56cddfdbcac94562c9826c573858645..ff2262cc7a4cd12909661ee7238d1e380c1be9fb 100644
--- a/boards/native/drivers/native-led.c
+++ b/boards/native/drivers/native-led.c
@@ -48,4 +48,3 @@ void _native_LED_RED_TOGGLE(void)
 {
     printf("LED_RED_TOGGLE\n");
 }
-
diff --git a/boards/pttu/Makefile b/boards/pttu/Makefile
index 12fef1c0edfd00a04c9ee653cd6e28c6c50c3873..c7a205595a9a79130134be1da72dc8e8ebee1521 100644
--- a/boards/pttu/Makefile
+++ b/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 ;
diff --git a/boards/pttu/Makefile.include b/boards/pttu/Makefile.include
index 86cabbec6e54ae9031486b14fe6eb1a18364ba78..cb34c2c317342d34528469d89b604048e14cc6dd 100644
--- a/boards/pttu/Makefile.include
+++ b/boards/pttu/Makefile.include
@@ -1,4 +1,3 @@
 export INCLUDES += -I$(RIOTBOARD)/pttu/include
 
 include $(RIOTBOARD)/msba2-common/Makefile.include
-
diff --git a/boards/pttu/tools/olimex-arm-usb-ocd.cfg b/boards/pttu/tools/olimex-arm-usb-ocd.cfg
index 0aaba1d2bb57975b7f58b40d5ee1923282d06e6b..ec2d32e1c6dac91d82be7542695261a5bbd79162 100644
--- a/boards/pttu/tools/olimex-arm-usb-ocd.cfg
+++ b/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
-
diff --git a/boards/pttu/tools/openocd-pttu.cfg b/boards/pttu/tools/openocd-pttu.cfg
index b58392f1ee7ee95bad83af8e4ac2549d0d1d4125..d606006e5694c3522a4482866ddb8d7d78bb1967 100644
--- a/boards/pttu/tools/openocd-pttu.cfg
+++ b/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
 
diff --git a/boards/pttu/tools/pttu_debug.gdb b/boards/pttu/tools/pttu_debug.gdb
index 2c8ec0df14c97ddb740387d196037cdb66ce7242..e313287a86c08e9cee85184f1f767863d78c578b 100644
--- a/boards/pttu/tools/pttu_debug.gdb
+++ b/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
-
diff --git a/boards/redbee-econotag/Makefile.include b/boards/redbee-econotag/Makefile.include
index f513dbd8881b81554dfeb96336aee86f92bd270b..72ba39a77f7afb7d5099b45a1155a228326d9ff8 100644
--- a/boards/redbee-econotag/Makefile.include
+++ b/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)
diff --git a/boards/redbee-econotag/drivers/include/uart.h b/boards/redbee-econotag/drivers/include/uart.h
index dc59169b244cc939b9e121f93e261b4329afbdc0..3230154948a42560c96ac776b3db56dc9c1f560f 100644
--- a/boards/redbee-econotag/drivers/include/uart.h
+++ b/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 */
 };
 
diff --git a/boards/redbee-econotag/drivers/nvm.c b/boards/redbee-econotag/drivers/nvm.c
index 5d4538ef264e75c3d14940699369d780b885fdb7..b55e59ebd849d6dcad6f34a715cda8db79ed4009 100644
--- a/boards/redbee-econotag/drivers/nvm.c
+++ b/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;
diff --git a/boards/redbee-econotag/drivers/redbee_uart.c b/boards/redbee-econotag/drivers/redbee_uart.c
index 52f13e7f13e79a23671330944ce4acf45cf6daa8..bda681bb770a72f5401c936f54af231b1f318c30 100644
--- a/boards/redbee-econotag/drivers/redbee_uart.c
+++ b/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);
 }
-
diff --git a/boards/redbee-econotag/include/board.h b/boards/redbee-econotag/include/board.h
index 590b3bf6292f26a70e3afa54eded707044c53103..baddeb0cfeeb0c3dced0b430f39c0a0d7b5da820 100644
--- a/boards/redbee-econotag/include/board.h
+++ b/boards/redbee-econotag/include/board.h
@@ -28,4 +28,3 @@
 typedef uint8_t radio_packet_length_t;
 
 #endif
-
diff --git a/boards/redbee-econotag/tools/mc1322x-load.pl b/boards/redbee-econotag/tools/mc1322x-load.pl
index bfc1d1ffcdcfceb5a855e57de0017f04c42fd832..81d8c2c839153534245ccd102510eeb2329f6fcc 100755
--- a/boards/redbee-econotag/tools/mc1322x-load.pl
+++ b/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;
-
diff --git a/boards/telosb/Makefile.dep b/boards/telosb/Makefile.dep
index 4392a18adb85f0037d18b402effd9d8cebe34532..4e36d0ff56801934d91d9c15518cc77b86793470 100644
--- a/boards/telosb/Makefile.dep
+++ b/boards/telosb/Makefile.dep
@@ -1,2 +1 @@
 USEMODULE += msp430_common
-
diff --git a/boards/telosb/driver_cc2420.c b/boards/telosb/driver_cc2420.c
index 4f3ee9a1c503d5b375de64f88895fd5318c00cbc..f2231c33ca9b048a7986ce42fbc503828b14c73d 100644
--- a/boards/telosb/driver_cc2420.c
+++ b/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;
 
diff --git a/boards/telosb/uart.c b/boards/telosb/uart.c
index f38aa5c3a212c2238b9b052b1cfc9ab4232bae6d..5a670da5a0aaeef1ecb9e9e943ae65b96ec7d114 100644
--- a/boards/telosb/uart.c
+++ b/boards/telosb/uart.c
@@ -115,4 +115,3 @@ interrupt(USART1RX_VECTOR) usart1irq(void)
 
 #endif
 }
-
diff --git a/boards/wsn430-common/Makefile.include b/boards/wsn430-common/Makefile.include
index 4ecffabafabb0495a38ebab3371fba10530f1071..38d5244a6e72e0608d17d9e7e6fe2b1cfd4b9a23 100644
--- a/boards/wsn430-common/Makefile.include
+++ b/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
-
diff --git a/boards/wsn430-common/board_init.c b/boards/wsn430-common/board_init.c
index 9b84c699bc7463e5e63d9bd6da8843999077fcc8..deb35e4e8e528151feb147ecaf4e107d5edf5e2e 100644
--- a/boards/wsn430-common/board_init.c
+++ b/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);
 }
diff --git a/boards/wsn430-common/include/board-conf.h b/boards/wsn430-common/include/board-conf.h
index aedd1542a961ffb82fd8e50591639fd406367a54..bf8a925373edd38ba9332f854c9ee9c7c9bc9629 100644
--- a/boards/wsn430-common/include/board-conf.h
+++ b/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>
 
diff --git a/boards/wsn430-common/wsn430-uart0.c b/boards/wsn430-common/wsn430-uart0.c
index ec4811ae93c6ffcfc455e781a52d1f94dba2a7dd..8b4777115b8738526aae9b698233a75a11189df2 100644
--- a/boards/wsn430-common/wsn430-uart0.c
+++ b/boards/wsn430-common/wsn430-uart0.c
@@ -60,4 +60,3 @@ interrupt(USART0RX_VECTOR) usart0irq(void) {
             }
 #endif
 }
-
diff --git a/boards/wsn430-v1_3b/driver_cc110x.c b/boards/wsn430-v1_3b/driver_cc110x.c
index 69b5f46898ca89e66d5d0b7f81bb5ebfe732afbf..8c2a80d50996bdc1da2d467da1fc46b7f363167c 100644
--- a/boards/wsn430-v1_3b/driver_cc110x.c
+++ b/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;
 
diff --git a/boards/wsn430-v1_4/driver_cc2420.c b/boards/wsn430-v1_4/driver_cc2420.c
index 2d7249b85d61028de9f943b06115cb57fb61903d..b8fbfef1ae33ed38790ce357f5c448172f511979 100644
--- a/boards/wsn430-v1_4/driver_cc2420.c
+++ b/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;
 
diff --git a/core/bitarithm.c b/core/bitarithm.c
index 5180f0d81e881d9c89e3e2414266c1e9d25e4c42..dbd17ffeafc15842537b421e000247a5144ae1e8 100644
--- a/core/bitarithm.c
+++ b/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;
 }
-
diff --git a/core/cib.c b/core/cib.c
index 40839388cf945c61b2c324b48b356a7d56a17920..d8a7c0d68822de64c890192bc75b15ff0f0f989f 100644
--- a/core/cib.c
+++ b/core/cib.c
@@ -5,7 +5,7 @@
  * Public License. See the file LICENSE in the top level directory for more
  * details.
  */
- 
+
  /**
  * @ingroup     core_util
  * @{
diff --git a/core/clist.c b/core/clist.c
index 03c9b7589e6fe7e0705148162364b3cd181c1451..8916cffeae97f0617f807e792438214d9aa7bbcf 100644
--- a/core/clist.c
+++ b/core/clist.c
@@ -5,7 +5,7 @@
  * Public License. See the file LICENSE in the top level directory for more
  * details.
  */
- 
+
 /**
  * @ingroup     core_util
  * @{
diff --git a/core/doc.txt b/core/doc.txt
index 7a8118c38f642820b6fb5745896d1847b6a84453..6d683271d0857fdb866620174bc782516c227a8c 100644
--- a/core/doc.txt
+++ b/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
diff --git a/core/hwtimer.c b/core/hwtimer.c
index 7622ec02d8c5eb5a6dd0cdb46b93b21838892979..2ed9597aa3f3c0d258fa2930800dca0dff2a579b 100644
--- a/core/hwtimer.c
+++ b/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;
 }
-
diff --git a/core/include/atomic.h b/core/include/atomic.h
index 16981e9d86c5690abe07cd428f5c392a0c326f7e..f8943b0bbf3e0ca8c83d8b9901b8c767667a106c 100644
--- a/core/include/atomic.h
+++ b/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
  * @{
diff --git a/core/include/bitarithm.h b/core/include/bitarithm.h
index 1c074447f8e98b25122f8fa7d306c115c6a6e771..0098957fb687eede217eb8096df6c003cac98135 100644
--- a/core/include/bitarithm.h
+++ b/core/include/bitarithm.h
@@ -6,7 +6,7 @@
  * details.
  */
 
-/** 
+/**
  * @addtogroup  core_util
  * @{
  *
diff --git a/core/include/cib.h b/core/include/cib.h
index 3de2d253e0c1e3850139b9fc0819dcfd963f36f2..18297e32d450c74de3386987849b16f1f082efcd 100644
--- a/core/include/cib.h
+++ b/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
  * @{
diff --git a/core/include/clist.h b/core/include/clist.h
index 2bdd346b559c19f67b53b0b4081ef2824d6130bb..39f2d80c298fc6770c587a4dd2762e0f3c20965c 100644
--- a/core/include/clist.h
+++ b/core/include/clist.h
@@ -46,4 +46,3 @@ void clist_print(clist_node_t *clist);
 
 /** @} */
 #endif // __CLIST_H
-
diff --git a/core/include/debug.h b/core/include/debug.h
index e8abd8058d248fdf97ba3442dcfbda5608bba1da..06abdbe9f2d9b92fe82d1dfe0b750b0eec7d1555 100644
--- a/core/include/debug.h
+++ b/core/include/debug.h
@@ -5,7 +5,7 @@
  * Public License. See the file LICENSE in the top level directory for more
  * details.
  */
- 
+
 /**
  * @addtogroup  core_util
  * @{
@@ -18,10 +18,10 @@
  * @author      Freie Universität Berlin, Computer Systems & Telematics
  * @author      Kaspar Schleiser <kaspar@schleiser.de>
  */
- 
+
 #ifndef __DEBUG_H
 #define __DEBUG_H
- 
+
 #include <stdio.h>
 
 #if ENABLE_DEBUG
diff --git a/core/include/hwtimer_arch.h b/core/include/hwtimer_arch.h
index 0dfba05fe2e2c2d9d6d1d3cf00a39a30db731f8c..3167e586eab8f1697e74c3a09572b9517889dc5d 100644
--- a/core/include/hwtimer_arch.h
+++ b/core/include/hwtimer_arch.h
@@ -5,7 +5,7 @@
  * Public License. See the file LICENSE in the top level directory for more
  * details.
  */
- 
+
 /**
  * @addtogroup  core_hwtimer
  * @{
@@ -18,7 +18,7 @@
  * @author      Heiko Will <hwill@inf.fu-berlin.de>
  * @author      Kaspar Schleiser <kaspar@schleiser.de>
  */
- 
+
 #ifndef HWTIMER_ARCH_H_
 #define HWTIMER_ARCH_H_
 
diff --git a/core/include/lifo.h b/core/include/lifo.h
index ade1c1ef63ae5196efbd81373054142403b8d720..2bba202db0d563cae76e564cd2a57c37c9a81842 100644
--- a/core/include/lifo.h
+++ b/core/include/lifo.h
@@ -42,7 +42,7 @@ void lifo_init(int *array, int n);
  * @brief:          insert an element into the lifo
  *
  * @param array:    an integer array of least i+1 size that does not
- *                  already contain i 
+ *                  already contain i
  * @param i:        the integer value to store, between 0 and the size
  *                  of the array -1, must not be stored already
  *
@@ -51,7 +51,7 @@ void lifo_insert(int *array, int i);
 
 /**
  * @brief:          extract the least recently inserted element from the lifo
- * 
+ *
  * @param array:    an integer array
  *
  * @return:         -1 if the lifo is empty, the least recently
diff --git a/core/include/msg.h b/core/include/msg.h
index 38199c819770493092652d995c5348281ce1769e..e1c390afb36603de1ade4da8eb1b2c040e7a4fb5 100644
--- a/core/include/msg.h
+++ b/core/include/msg.h
@@ -18,7 +18,7 @@
  * calling msg_init_queue(msg_t* array, int num). Messages sent to a thread with a non full message
  * queue are never dropped and the sending never blocks. Threads with a full message queue behaves
  * like in synchronous mode.
- * 
+ *
  * @{
  *
  * @file        msg.h
diff --git a/core/include/sched.h b/core/include/sched.h
index 66f086d855cef2696bea0d2da3c8ef49153cd5a6..eafecc8707af9425c6ac5c919e8b2df6817413da 100644
--- a/core/include/sched.h
+++ b/core/include/sched.h
@@ -47,7 +47,7 @@ void sched_run(void);
 /**
  * @brief   Set the status of the specified process
  *
- * @param[in]   process     Pointer to the thread control block of the 
+ * @param[in]   process     Pointer to the thread control block of the
  *                          targeted process
  * @param[in]   status      The new status of this thread
  */
@@ -60,8 +60,8 @@ void sched_set_status(tcb_t *process, unsigned int status);
  *
  * @param[in]   current_prio    The priority of the current thread
  * @param[in]   other_prio      The priority of the target thread
- * @param[in]   in_isr          1 if currently in interrupt context, 0 otherwise 
- */ 
+ * @param[in]   in_isr          1 if currently in interrupt context, 0 otherwise
+ */
 void sched_switch(uint16_t current_prio, uint16_t other_prio, int in_isr);
 
 /**
diff --git a/core/include/tcb.h b/core/include/tcb.h
index 01e34e7a9d68dd3d39106e09b68f83010b3dcaf9..651ed5c952f51a28bc80d5dc47b6d90b7c6bfe35 100644
--- a/core/include/tcb.h
+++ b/core/include/tcb.h
@@ -5,7 +5,7 @@
  * Public License. See the file LICENSE in the top level directory for more
  * details.
  */
- 
+
 /**
  * @addtogroup  core_thread
  * @{
@@ -37,12 +37,12 @@
 #define STATUS_STOPPED          (0x0008)                      /**< has terminated */
 #define STATUS_SLEEPING         (0x0010)                      /**< sleeping */
 #define STATUS_MUTEX_BLOCKED    (0x0020)                      /**< waiting for a locked mutex */
-#define STATUS_RECEIVE_BLOCKED  (0x0040)                      /**< waiting for a message */ 
-#define STATUS_SEND_BLOCKED     (0x0080)                      /**< waiting for message to be 
+#define STATUS_RECEIVE_BLOCKED  (0x0040)                      /**< waiting for a message */
+#define STATUS_SEND_BLOCKED     (0x0080)                      /**< waiting for message to be
                                                                 *  delivered */
 #define STATUS_REPLY_BLOCKED    (0x0100)                      /**< waiting for a message response */
 #define STATUS_TIMER_WAITING    (0x0200)                      /**< waiting for a timer to fire
-                                                                *  (deprecated) */ 
+                                                                *  (deprecated) */
 
 typedef struct tcb_t {
     char *sp;
diff --git a/core/kernel_init.c b/core/kernel_init.c
index 8474ed19f91fc6b4477e73e6cca6cd872c80ff89..93fee54c41c9833e7ded7bc3899717ac1f6df4cd 100644
--- a/core/kernel_init.c
+++ b/core/kernel_init.c
@@ -84,4 +84,3 @@ void kernel_init(void)
 
     cpu_switch_context_exit();
 }
-
diff --git a/core/oneway_malloc.c b/core/oneway_malloc.c
index eca82a8a8cde8ee5a2ad4d5db7f25ae729a30ba5..bb3d596198c5d867ce643ae019b2a1f0acd4d1f1 100644
--- a/core/oneway_malloc.c
+++ b/core/oneway_malloc.c
@@ -16,9 +16,9 @@
  *
  * @file        oneway_malloc.c
  * @brief       Simple malloc wrapper for SBRK
- * 
+ *
  * Simple malloc implementation for plattforms without malloc in libc.
- * 
+ *
  * @author      Kaspar Schleiser <kaspar@schleiser.de>
  *
  * @}
diff --git a/core/queue.c b/core/queue.c
index eb354881415d2492b359970aaf06081f2c8aba34..18c9ac0c64fc9735e9e146580ce145b1698b5998 100644
--- a/core/queue.c
+++ b/core/queue.c
@@ -5,7 +5,7 @@
  * Public License. See the file LICENSE in the top level directory for more
  * details.
  */
- 
+
 /**
  * @ingroup     core_util
  * @{
diff --git a/core/sched.c b/core/sched.c
index a9b085e624b44e7781c61e27b1a1c4702dec3ef8..77ca892932a9503d1fdfb07f7240d5e860f9dda8 100644
--- a/core/sched.c
+++ b/core/sched.c
@@ -18,7 +18,7 @@
  *
  * @}
  *
- * TODO: setup dependency from SCHEDSTATISTICS to MODULE_HWTIMER 
+ * TODO: setup dependency from SCHEDSTATISTICS to MODULE_HWTIMER
  */
 
 #include <stdint.h>
diff --git a/cpu/arm_common/Makefile b/cpu/arm_common/Makefile
index 68ec505674baf8753271c0db4e1c89ec3e0fa7eb..91fd438c80efac90aa59b93ee6facb4f63846361 100644
--- a/cpu/arm_common/Makefile
+++ b/cpu/arm_common/Makefile
@@ -2,4 +2,3 @@ MODULE =arm_common
 
 CFLAGS += $(CFLAGS_BASIC)
 include $(RIOTBASE)/Makefile.base
-
diff --git a/cpu/arm_common/Makefile.include b/cpu/arm_common/Makefile.include
index 21a06d3fa7738fbacf7aa2c2aa2a294f8400a898..4ffd7b0de8356c7e3afaaada5add18008792c848 100644
--- a/cpu/arm_common/Makefile.include
+++ b/cpu/arm_common/Makefile.include
@@ -1,4 +1,3 @@
 INCLUDES += -I$(MAKEBASE)/cpu/arm_common/include/
 
 export UNDEF += $(BINDIR)syscalls.o
-
diff --git a/cpu/arm_common/VIC.c b/cpu/arm_common/VIC.c
index 6226a4b1515ddb81399a5dccf7215e6136cb2fb2..8d998b21a7746b4782a24e5874394bc2d6b28f52 100644
--- a/cpu/arm_common/VIC.c
+++ b/cpu/arm_common/VIC.c
@@ -94,5 +94,3 @@ unsigned enableFIQ(void)
     __set_cpsr(_cpsr & ~FIQ_MASK);
     return _cpsr;
 }
-
-
diff --git a/cpu/arm_common/atomic.s b/cpu/arm_common/atomic.s
index eb2612f0f6a5f009d7870ac7a519e2bb7ec6b61b..487f4c85282c76c178c6817d20e616d14f2a9040 100644
--- a/cpu/arm_common/atomic.s
+++ b/cpu/arm_common/atomic.s
@@ -15,4 +15,3 @@ atomic_set_return:
     MOV r0, r2
     mov pc, lr
 .endfunc
-
diff --git a/cpu/arm_common/common.s b/cpu/arm_common/common.s
index 5cec2af570b9af0edc506bbeeb2a53fae863b3c0..ca97a64aa05735baeab61af98a70a0af61ea0723 100644
--- a/cpu/arm_common/common.s
+++ b/cpu/arm_common/common.s
@@ -38,7 +38,7 @@
 .func
 dINT:
     mrs     r0,  cpsr
-    
+
     orr     r0, r0, #NOINT              /* Disable Int */
     msr     CPSR_c, r0
     mov     pc,lr
@@ -83,9 +83,9 @@ ctx_switch2:
     ldr     r1, =active_thread   /* r1 = &active_thread */
     ldr     r1, [r1]                /* r1 = *r1 = active_thread */
 
-    str     lr, [r1]                /* store stack pointer in tasks tcb*/    
+    str     lr, [r1]                /* store stack pointer in tasks tcb*/
     /* now the calling task has all its registers saved on its stack and it's SP is saved in its tcb */
-   
+
 
     /* call scheduler so active_thread points to the next task */
     bl      sched_run
@@ -95,7 +95,7 @@ ctx_switch2:
 cpu_switch_context_exit:
     mov r0, #NOINT|SVCMODE
     msr cpsr, r0
-    
+
     /* call scheduler so active_thread points to the next task */
     bl      sched_run
 
@@ -106,7 +106,7 @@ task_return:
     ldr     r0, =active_thread   /* r0 = &active_thread */
     ldr     r0, [r0]                /* r0 = *r0 = active_thread */
     ldr     r0, [r0]
-    
+
     /* restore saved spsr and return address from tasks stack */
     ldmfd   r0!, {r1,lr}
     msr     SPSR, r1
@@ -125,7 +125,7 @@ arm_irq_handler:
 
     /* save interrupted tasks PC onto stack */
     stmfd  sp!, {lr}
-    
+
     /* save all registers on isr stack */
     stmfd  sp!, {r0-r12}
 
@@ -133,8 +133,8 @@ arm_irq_handler:
     MRS R0, SPSR
     STMFD  SP!, {R0}
 
-    MRS R1, CPSR 
-    MSR SPSR, R1 
+    MRS R1, CPSR
+    MSR SPSR, R1
 
 .if CPU != mc1322x
     /* jump into vic interrupt */
@@ -147,10 +147,10 @@ arm_irq_handler:
 .endif
 
     mov     pc, r0
-    
+
     /* restore spsr from stack */
     LDMFD  SP!, {R0}
-    MSR SPSR, R0    
+    MSR SPSR, R0
 
     /* check if context switch was requested by irq */
     ldr r0, =sched_context_switch_request
@@ -160,7 +160,7 @@ arm_irq_handler:
     bne     switch_context_int
 
 exit_irq_int:
-    /* recover general purpose registers */ 
+    /* recover general purpose registers */
     ldmfd  sp!, {r0-r12}
 
     /* recover tasks PC into lr */
@@ -170,8 +170,7 @@ exit_irq_int:
     movs pc, lr
 
 switch_context_int:
-    /* recover general purpose registers */ 
+    /* recover general purpose registers */
     ldmfd  sp!, {r0-r12}
 
     b ctx_switch2
-    
diff --git a/cpu/cc430/Makefile.include b/cpu/cc430/Makefile.include
index 9cabdc9c4fa52117b584ef4b118eb18b62e91598..ae7de8cc19464d7ae4e809da7d8dd26a8c97e83d 100644
--- a/cpu/cc430/Makefile.include
+++ b/cpu/cc430/Makefile.include
@@ -1,4 +1,3 @@
 INCLUDES += -I$(MAKEBASE)/cpu/cc430/include/
 
 include $(RIOTCPU)/msp430-common/Makefile.include
-
diff --git a/cpu/cc430/cc430-adc.c b/cpu/cc430/cc430-adc.c
index 51753bb1506ffa13b0c2a6c2a354d6f241120506..c17437957b6c85c99888afd663aaa8da96b8d69f 100644
--- a/cpu/cc430/cc430-adc.c
+++ b/cpu/cc430/cc430-adc.c
@@ -159,5 +159,3 @@ interrupt(ADC12_VECTOR) __attribute__((naked)) adc_isr(void)
 
     __exit_isr();
 }
-
-
diff --git a/cpu/cc430/cc430-gpioint.c b/cpu/cc430/cc430-gpioint.c
index 35d866401d041d32be703ac275697f5aa85c791c..1ce15d4218d8430afd5858120e6ff12e539cdf19 100644
--- a/cpu/cc430/cc430-gpioint.c
+++ b/cpu/cc430/cc430-gpioint.c
@@ -241,4 +241,3 @@ interrupt(PORT2_VECTOR) __attribute__((naked)) port2_isr(void)
     P2IE  = int_enable;
     __exit_isr();
 }
-
diff --git a/cpu/doc.txt b/cpu/doc.txt
index 8f884e59b13246bc43b63f514772568fcd7c27de..e04083a495485d548a9a4a21a934aa79d93f451a 100644
--- a/cpu/doc.txt
+++ b/cpu/doc.txt
@@ -9,7 +9,7 @@
 /**
  * @defgroup cpu CPU
  * @brief CPU specific implementations
- * 
+ *
  * This module contains all CPU specific source files. In case of multiple CPUs
  * sharing the same architecture, the implementation is split in a cpu specific
  * and a architecture specific part (eg. arm-common and lpc2387).
diff --git a/cpu/lpc1768/LPC1768.ld b/cpu/lpc1768/LPC1768.ld
index 0426f227642c182d72ca42d684846b932805bb68..0e7d2518d85373c0300859994bf40aa8a48f63ac 100644
--- a/cpu/lpc1768/LPC1768.ld
+++ b/cpu/lpc1768/LPC1768.ld
@@ -14,7 +14,7 @@ MEMORY
  * with other linker script that defines memory regions FLASH and RAM.
  * It references following symbols, which must be defined in code:
  *   Reset_Handler : Entry of reset handler
- * 
+ *
  * It defines following symbols, which code can use without definition:
  *   __exidx_start
  *   __exidx_end
@@ -67,7 +67,7 @@ SECTIONS
         KEEP(*(.eh_frame*))
     } > FLASH
 
-    .ARM.extab : 
+    .ARM.extab :
     {
         *(.ARM.extab* .gnu.linkonce.armextab.*)
     } > FLASH
@@ -81,7 +81,7 @@ SECTIONS
 
     __etext = .;
     __sidata = __etext;
-        
+
     .data : AT (__etext)
     {
         __data_start__ = .;
@@ -122,7 +122,7 @@ SECTIONS
         *(COMMON)
         __bss_end__ = .;
     } > RAM
-    
+
     __heap_size = ORIGIN(RAM) + LENGTH(RAM) - . ;/*- __stack_size;*/
     .heap :
     {
@@ -131,7 +131,7 @@ SECTIONS
         end = __end__;
         *(.heap*)
 		. = . + __heap_size;
-		PROVIDE(__heap_max = .);	
+		PROVIDE(__heap_max = .);
         __HeapLimit = .;
     } > RAM
 
@@ -148,7 +148,7 @@ SECTIONS
     __StackTop = ORIGIN(RAM) + LENGTH(RAM);
     __StackLimit = __StackTop - SIZEOF(.stack_dummy);
     PROVIDE(__stack = __StackTop);
-    
+
     /* Check if data + heap + stack exceeds RAM limit */
     ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
 }
diff --git a/cpu/lpc1768/Makefile b/cpu/lpc1768/Makefile
index ed34d81c6b90662555b0bd5dccfedf3cb03eb2cc..0a08aff84a0e70386d419c572c8a01a1f86521b4 100644
--- a/cpu/lpc1768/Makefile
+++ b/cpu/lpc1768/Makefile
@@ -1,6 +1,6 @@
 MODULE =cpu
 
-OBJECTS = system_LPC17xx.o startup_LPC17xx.o main.o 
+OBJECTS = system_LPC17xx.o startup_LPC17xx.o main.o
 
 CC_SYMBOLS = -DTARGET_LPC1769 -DTOOLCHAIN_GCC_ARM -DNDEBUG -D__CORTEX_M3
 
diff --git a/cpu/lpc1768/atom.c b/cpu/lpc1768/atom.c
index 3e38145ae07573c88d568ab2922498ae27891059..94e98fe4745ec6c302b6d8e88dc0ed5a4e5bf754 100644
--- a/cpu/lpc1768/atom.c
+++ b/cpu/lpc1768/atom.c
@@ -1,7 +1,7 @@
 /**
  * CPU speficic RIOT kernel function for NXP LPC1768
  *
- * Copyright (C) 2013 Oliver Hahm <oliver.hahm@inria.fr> 
+ * Copyright (C) 2013 Oliver Hahm <oliver.hahm@inria.fr>
  *
  * This file subject to the terms and conditions of the GNU Lesser General
  * Public License. See the file LICENSE in the top level directory for more
diff --git a/cpu/lpc1768/cpu.c b/cpu/lpc1768/cpu.c
index a2308ae0d28968b6a3be943d139b2573ec5d2dd9..49b61169104f93f18eb6aae0f28a817e0a497a73 100644
--- a/cpu/lpc1768/cpu.c
+++ b/cpu/lpc1768/cpu.c
@@ -1,5 +1,5 @@
 /**
- * CPU specific functions for the RIOT scheduler on NXP LPC1768 
+ * CPU specific functions for the RIOT scheduler on NXP LPC1768
  *
  * Copyright (C) 2013 Oliver Hahm <oliver.hahm@inria.fr>
  *
diff --git a/cpu/lpc1768/include/LPC17xx.h b/cpu/lpc1768/include/LPC17xx.h
index bdc57c0d896dd5df953e1b86f3df4f042156f174..b8de826da13d42926eca46bcbc16cdad3d9ee4aa 100644
--- a/cpu/lpc1768/include/LPC17xx.h
+++ b/cpu/lpc1768/include/LPC17xx.h
@@ -1,6 +1,6 @@
 /**************************************************************************//**
  * @file     LPC17xx.h
- * @brief    CMSIS Cortex-M3 Core Peripheral Access Layer Header File for 
+ * @brief    CMSIS Cortex-M3 Core Peripheral Access Layer Header File for
  *           NXP LPC17xx Device Series
  * @version: V1.09
  * @date:    17. March 2010
@@ -10,9 +10,9 @@
  * Copyright (C) 2009 ARM Limited. All rights reserved.
  *
  * @par
- * ARM Limited (ARM) is supplying this software for use with Cortex-M 
- * processor based microcontrollers.  This file can be freely distributed 
- * within development tools that are supporting such ARM based processors. 
+ * ARM Limited (ARM) is supplying this software for use with Cortex-M
+ * processor based microcontrollers.  This file can be freely distributed
+ * within development tools that are supporting such ARM based processors.
  *
  * @par
  * THIS SOFTWARE IS PROVIDED "AS IS".  NO WARRANTIES, WHETHER EXPRESS, IMPLIED
diff --git a/cpu/lpc1768/include/cmsis.h b/cpu/lpc1768/include/cmsis.h
index 2e51a087d18876ed237f4ff2eead269abd158735..fbd8c39b7c9f8c6acbbd691504a1155b4420c0e7 100644
--- a/cpu/lpc1768/include/cmsis.h
+++ b/cpu/lpc1768/include/cmsis.h
@@ -1,6 +1,6 @@
 /* mbed Microcontroller Library - CMSIS
  * Copyright (C) 2009-2011 ARM Limited. All rights reserved.
- * 
+ *
  * A generic CMSIS include header, pulling in LPC1768 specifics
  */
 
diff --git a/cpu/lpc1768/include/cpu.h b/cpu/lpc1768/include/cpu.h
index d317a5b87dd58c0e891027464bbdcc9950d1ff5e..a45fb1b484b1eff43def89ef534a43043a85e23e 100644
--- a/cpu/lpc1768/include/cpu.h
+++ b/cpu/lpc1768/include/cpu.h
@@ -2,7 +2,7 @@
 #define CPU_H
 
 /**
- * @defgroup    lpc1768 NXP LPC1768	
+ * @defgroup    lpc1768 NXP LPC1768
  * @ingroup		cpu
  * @{
  */
diff --git a/cpu/lpc1768/lpc1768-lpm.c b/cpu/lpc1768/lpc1768-lpm.c
index 91e8d86bf1472864fedfec39f9a619821a3d4dc0..832e6ecd46a70650dc83df6683405d2e03290f73 100644
--- a/cpu/lpc1768/lpc1768-lpm.c
+++ b/cpu/lpc1768/lpc1768-lpm.c
@@ -1,7 +1,7 @@
 /**
  * LPM dummys for NXP LPC1768
  *
- * Copyright (C) 2013 Oliver Hahm <oliver.hahm@inria.fr> 
+ * Copyright (C) 2013 Oliver Hahm <oliver.hahm@inria.fr>
  *
  * This file subject to the terms and conditions of the GNU Lesser General
  * Public License. See the file LICENSE in the top level directory for more
diff --git a/cpu/lpc1768/startup.c b/cpu/lpc1768/startup.c
index fffe4d5e6b6dec8ace403f03986a4bc6b339bb88..9abeb319763093a6cf875b5e6a4dcdb0cfc71784 100644
--- a/cpu/lpc1768/startup.c
+++ b/cpu/lpc1768/startup.c
@@ -8,7 +8,7 @@
  *----------------------------------------------------------------------------
  *
  * Copyright (C) 2009 ARM Limited. All rights reserved.
- * Copyright (C) 2013 Oliver Hahm <oliver.hahm@inria.fr> 
+ * Copyright (C) 2013 Oliver Hahm <oliver.hahm@inria.fr>
  *
  * ARM Limited (ARM) is supplying this software for use with Cortex-Mx
  * processor based microcontrollers.  This file can be freely distributed
diff --git a/cpu/lpc1768/syscalls.c b/cpu/lpc1768/syscalls.c
index 11bb9707b6a2f023e5f0c5a56e36f1a02e820ae2..f1919ab8e4d8934a528514b730c6d8978758a68f 100644
--- a/cpu/lpc1768/syscalls.c
+++ b/cpu/lpc1768/syscalls.c
@@ -1,7 +1,7 @@
 /**
  * Syscall implementation for NXP LPC1768
  *
- * Copyright (C) 2013 Oliver Hahm <oliver.hahm@inria.fr> 
+ * Copyright (C) 2013 Oliver Hahm <oliver.hahm@inria.fr>
  *
  * This file subject to the terms and conditions of the GNU Lesser General
  * Public License. See the file LICENSE in the top level directory for more
@@ -11,7 +11,7 @@
  * @{
  * @file    syscalls.c
  * @author Oliver Hahm <oliver.hahm@inria.fr>
- * @author Alaeddine Weslati <alaeddine.weslati@inria.fr> 
+ * @author Alaeddine Weslati <alaeddine.weslati@inria.fr>
  * @}
  */
 
@@ -148,7 +148,7 @@ int _fstat_r(struct _reent *r, int fd, struct stat * st)
 	if (fd == STDOUT_FILENO || fd == STDERR_FILENO) {
 		st->st_mode = S_IFCHR;
 		ret = 0;
-	} 
+	}
     else {
         r->_errno = ENODEV;
 	}
diff --git a/cpu/lpc2387/Makefile b/cpu/lpc2387/Makefile
index 8b9db756198a624310a3c8bfd8c6f10a2647bf8a..fbee8f02d55c9e7a5f94dd29a6547bd9ca61229c 100644
--- a/cpu/lpc2387/Makefile
+++ b/cpu/lpc2387/Makefile
@@ -23,4 +23,3 @@ include $(RIOTBASE)/Makefile.base
 
 clean::
 	@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
-
diff --git a/cpu/lpc2387/Makefile.include b/cpu/lpc2387/Makefile.include
index 92ada6348208405aee5229a344cb16430906dcf1..686f4c641d28968c4ddefc3a74357368fa474937 100644
--- a/cpu/lpc2387/Makefile.include
+++ b/cpu/lpc2387/Makefile.include
@@ -4,4 +4,3 @@ include $(RIOTCPU)/arm_common/Makefile.include
 include $(RIOTCPU)/lpc_common/Makefile.include
 
 export USEMODULE += arm_common lpc_common
-
diff --git a/cpu/lpc2387/asmfunc.s b/cpu/lpc2387/asmfunc.s
index d61c6d6ca443017f0976c3dd77e3ad2c6f279b28..8c34576061dc2a59b373182093cf260d649d6be2 100644
--- a/cpu/lpc2387/asmfunc.s
+++ b/cpu/lpc2387/asmfunc.s
@@ -93,4 +93,3 @@ sb_align:
 	BX	LR
 
 .end
-
diff --git a/cpu/lpc2387/gpioint/Makefile b/cpu/lpc2387/gpioint/Makefile
index edd98724ddfadb2344ab12c55b9aca369e0517fc..695bc04395a36c737a6234f426e9743c113ab47a 100644
--- a/cpu/lpc2387/gpioint/Makefile
+++ b/cpu/lpc2387/gpioint/Makefile
@@ -1,4 +1,3 @@
 MODULE =gpioint
 
 include $(MAKEBASE)/Makefile.base
-
diff --git a/cpu/lpc2387/i2c/Makefile b/cpu/lpc2387/i2c/Makefile
index 825b7ecde67887dcbc8ca2ff8963dba24849526e..e1c5af410ed7f6a561e2835bc2622b6f12ac99ea 100644
--- a/cpu/lpc2387/i2c/Makefile
+++ b/cpu/lpc2387/i2c/Makefile
@@ -1,4 +1,3 @@
 MODULE =i2c
 
 include $(MAKEBASE)/Makefile.base
-
diff --git a/cpu/lpc2387/include/i2c.h b/cpu/lpc2387/include/i2c.h
index b2580d1057fa970be55ddd5b05f2cb95bef269f1..866190499891eb32aaeaf7f1e3d306d26ddc5c4e 100644
--- a/cpu/lpc2387/include/i2c.h
+++ b/cpu/lpc2387/include/i2c.h
@@ -327,4 +327,3 @@ void i2c_enable_pull_up_resistor(uint8_t i2c_interface);
 void i2c_disable_pull_up_resistor(uint8_t i2c_interface);
 
 #endif /* end __I2C_H */
-
diff --git a/cpu/lpc2387/include/lpc2387.h b/cpu/lpc2387/include/lpc2387.h
index 43ab5e47d00432938c967ec3ad663017f009c1fb..66a03d983c4ec858d880edbe600a23d4bd89875e 100644
--- a/cpu/lpc2387/include/lpc2387.h
+++ b/cpu/lpc2387/include/lpc2387.h
@@ -207,4 +207,3 @@
 /** @} */
 
 #endif // __LPC2387_H
-
diff --git a/cpu/lpc2387/include/lpc23xx.h b/cpu/lpc2387/include/lpc23xx.h
index 84e0267744957f310523e2b483a6fa7f65b9dad8..0358c26d269c7f6d8f4386b1a629d278f84afb40 100644
--- a/cpu/lpc2387/include/lpc23xx.h
+++ b/cpu/lpc2387/include/lpc23xx.h
@@ -1128,4 +1128,3 @@ with the spec. update in USB Device Section. */
 
 
 #endif  // __LPC23xx_H
-
diff --git a/cpu/lpc2387/linkerscript.x b/cpu/lpc2387/linkerscript.x
index a369b957d56454fb6c5ce99f60b4bfc4add1c371..be3f7fb9859bdafc83890d36cf3a10b6a589c0c4 100644
--- a/cpu/lpc2387/linkerscript.x
+++ b/cpu/lpc2387/linkerscript.x
@@ -11,7 +11,7 @@ This file is part of RIOT.
  */
 
 /* specify the LPC2387 memory areas (see LPC2387 datasheet page 15)  */
-MEMORY 
+MEMORY
 {
 	flash     			: ORIGIN = 0,          LENGTH = 504K	/* FLASH ROM 512kByte without ISP bootloader*/
     infomem             : ORIGIN = 0x0007D000, LENGTH = 4K      /* Last sector in FLASH ROM for config data */
@@ -30,9 +30,9 @@ __stack_usr_size = 4096;		/* stack for user operation (kernel init)				    */
 __stack_size = __stack_und_size + __stack_abt_size + __stack_fiq_size + __stack_irq_size + __stack_svc_size + __stack_usr_size;
 
 /* now define the output sections  */
-SECTIONS 
+SECTIONS
 {
-	.text :								/* collect all sections that should go into FLASH after startup  */ 
+	.text :								/* collect all sections that should go into FLASH after startup  */
 	{
 		*(.vectors)						/* Exception Vectors and branch table >= 64 bytes */
 		. = ALIGN(64);
@@ -47,7 +47,7 @@ SECTIONS
 	    *(.init7)
 	    *(.init8)
 	    *(.init9) 						/* Call main().  */
-		
+
 		*(.text)						/* all .text sections (code)  */
 		*(.text.*)
 		*(.gnu.linkonce.t.*)
@@ -59,9 +59,9 @@ SECTIONS
 		. = ALIGN(4);
 		__cfgspec_start = .;
 		*(.cfgspec)						/* configuration spec table */
-		__cfgspec_end = .;		
+		__cfgspec_end = .;
 		. = ALIGN(4);
-		
+
 		__ctors_start = .;
         	PROVIDE (_os_ctor_start = .);
         	*(.ctors);
@@ -76,7 +76,7 @@ SECTIONS
 		*(.gnu.linkonce.r.*)
 		*(.glue_7)						/* all .glue_7 sections  (no idea what these are) */
 		*(.glue_7t)						/* all .glue_7t sections (no idea what these are) */
-		
+
 		*(.fini9)
 		*(.fini8)
 		*(.fini7)
@@ -88,10 +88,10 @@ SECTIONS
 		*(.fini1)
 		*(.fini0)						/* Infinite loop after program termination.  */
 		*(.fini)
-		
+
 		*(.gcc_except_table)
-		
-	} >flash							/* put all the above into FLASH */	
+
+	} >flash							/* put all the above into FLASH */
 	. = ALIGN(4);
 
     /* .ARM.exidx is sorted, so has to go in its own output section.  */
@@ -104,9 +104,9 @@ SECTIONS
 
 	_etext = . ;						/* define a global symbol _etext just after the last code byte */
 
-    .config : 
+    .config :
     {
-        *(.configmem) 
+        *(.configmem)
         . = ALIGN(256);
     } >infomem
     . = ALIGN(4);
@@ -136,7 +136,7 @@ SECTIONS
 
 	/*
 	 * collect all uninitialized sections that go into RAM
-	 */	
+	 */
 	.noinit (NOLOAD) :
 	{
 		__noinit_start = .;
@@ -159,7 +159,7 @@ SECTIONS
 	} > ram								/* put all the above in RAM (it will be cleared in the startup code */
 	. = ALIGN(4);						/* ensure data is aligned so relocation can use 4-byte operations */
 	__bss_end = . ;						/* define a global symbol marking the end of the .bss section */
-	
+
 	/*
 	 * collect all initialized .data sections that go into RAM
 	 * initial values get placed at the end of .text in flash
@@ -192,10 +192,10 @@ SECTIONS
     } >ram								/* put all the above into RAM (but load the LMA copy into FLASH) */
 	. = ALIGN(4);						/* ensure data is aligned so relocation can use 4-byte operations */
 	_edata = .;							/* define a global symbol marking the end of the .data section  */
-	
-	
+
+
 	/*
-	 * Exception frames (newer linker versions generate these but they use of 
+	 * Exception frames (newer linker versions generate these but they use of
 	 * most of the RAM.
 	 */
     /DISCARD/ :							/* discard exception frames */
@@ -205,13 +205,13 @@ SECTIONS
 
 	/* to enable exception frames */
 	/*
-	.eh_frame :					
+	.eh_frame :
 	{
 		 KEEP (*(.eh_frame))
 	} > ram
 	. = ALIGN(4);
 	*/
-	
+
 	_end = .;							/* define a global symbol marking the end of application RAM */
 
 	__heap1_size = ORIGIN(ram) + LENGTH(ram) - . - __stack_size;
@@ -219,16 +219,16 @@ SECTIONS
 	{
 		PROVIDE(__heap1_start = .);
 		. = . + __heap1_size;
-		PROVIDE(__heap1_max = .);	
-	} > ram	
-	
+		PROVIDE(__heap1_max = .);
+	} > ram
+
 	/*
 	 * Stacks
 	 */
 	.stack (NOLOAD) :
 	{
 		PROVIDE(__stack_start = .);
-	
+
 		. = . + __stack_usr_size;
 		__stack_usr_start = .;
 		. = . + __stack_und_size;
@@ -241,10 +241,10 @@ SECTIONS
 		__stack_abt_start = .;
 		. = . + __stack_svc_size;
 		__stack_svc_start = .;
-		
+
 		PROVIDE(__stack_end = .);
 	} > ram
-	
+
 	__heap2_size = LENGTH(ram_ethernet);
 	.heap2 (NOLOAD) :
 	{
@@ -258,7 +258,7 @@ SECTIONS
 	{
 		*(.usbdata)
 	} > ram_usb
-	
+
 	.heap3 ALIGN(0x1000) (NOLOAD) :
 	{
 		__heap3_size = ORIGIN(ram_usb) + LENGTH(ram_usb) - ABSOLUTE(.);
@@ -267,10 +267,10 @@ SECTIONS
 		PROVIDE(__heap3_max = .);
 	} > ram_usb
 	__heap_size = SIZEOF(.heap3);
-	
-	
+
+
 	.batteryram (NOLOAD) :				/* battery ram stays on during powerdown but needs to be handled specially */
 	{
 		*(.batteryram)
-	} > ram_battery	
+	} > ram_battery
 }
diff --git a/cpu/lpc2387/mci/Makefile b/cpu/lpc2387/mci/Makefile
index 22fd2a480b7e7797bfcf8c8a23e176b7ee5ca093..970c9d87f53bdf057cfc66e97f87daff8fa9a9ae 100644
--- a/cpu/lpc2387/mci/Makefile
+++ b/cpu/lpc2387/mci/Makefile
@@ -1,4 +1,3 @@
 MODULE =mci
 
 include $(MAKEBASE)/Makefile.base
-
diff --git a/cpu/lpc2387/rtc/Makefile b/cpu/lpc2387/rtc/Makefile
index 64278b51d685d909f379a0b3005b07366b6eb5cb..4d24181c9931b49adb796a5926373525c84b8314 100644
--- a/cpu/lpc2387/rtc/Makefile
+++ b/cpu/lpc2387/rtc/Makefile
@@ -1,4 +1,3 @@
 MODULE =rtc
 
 include $(MAKEBASE)/Makefile.base
-
diff --git a/cpu/lpc2387/tools/openocd-lpc2387.cfg b/cpu/lpc2387/tools/openocd-lpc2387.cfg
index 1d6813b0406b528b8a053351276a8ee5ed408463..eb04523cb98de2d94d25398cc22d6c49c0e62f97 100644
--- a/cpu/lpc2387/tools/openocd-lpc2387.cfg
+++ b/cpu/lpc2387/tools/openocd-lpc2387.cfg
@@ -1,13 +1,13 @@
 
-if { [info exists CHIPNAME] } {	
-   set  _CHIPNAME $CHIPNAME    
-} else {	 
+if { [info exists CHIPNAME] } {
+   set  _CHIPNAME $CHIPNAME
+} else {
    set  _CHIPNAME lpc2378
 }
 
-if { [info exists ENDIAN] } {	
-   set  _ENDIAN $ENDIAN    
-} else {	 
+if { [info exists ENDIAN] } {
+   set  _ENDIAN $ENDIAN
+} else {
    set  _ENDIAN little
 }
 
@@ -22,7 +22,7 @@ if { [info exists CPUTAPID ] } {
 jtag_nsrst_delay 200
 jtag_ntrst_delay 200
 
-# NOTE!!! LPCs need reset pulled while RTCK is low. 0 to activate 
+# NOTE!!! LPCs need reset pulled while RTCK is low. 0 to activate
 # JTAG, power-on reset is not enough, i.e. you need to perform a
 # reset before being able to talk to the LPC2378, attach is not
 # possible.
@@ -40,10 +40,9 @@ $_TARGETNAME configure -event reset-init {
 	# Force target into ARM state
 	soft_reset_halt
 	#do not remap 0x0000-0x0020 to anything but the flash
-	mwb 0xE01FC040 0x01 	
+	mwb 0xE01FC040 0x01
 }
 
 
 #flash bank lpc2000 <base> <size> 0 0 <target#> <variant>
 #flash bank lpc2000 0x0 0x7d000 0 0 0 lpc2000_v2 14765
-
diff --git a/cpu/lpc_common/Makefile b/cpu/lpc_common/Makefile
index b8ccbfb0ef894af4824bae1e5c2a535799cdc218..7c6b4213004559d1e63b424cbe2da4240e1f3533 100644
--- a/cpu/lpc_common/Makefile
+++ b/cpu/lpc_common/Makefile
@@ -1,4 +1,3 @@
 MODULE =lpc_common
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/cpu/lpc_common/lpc_syscalls.c b/cpu/lpc_common/lpc_syscalls.c
index e5909497393aca7ddbd073f3d882dec2b17dbc25..4e21c2ab099fd0d7613b51311f24c6ed6b5da4f0 100644
--- a/cpu/lpc_common/lpc_syscalls.c
+++ b/cpu/lpc_common/lpc_syscalls.c
@@ -38,7 +38,7 @@ static const caddr_t heap_start[NUM_HEAPS] = {(caddr_t)&__heap1_start,(caddr_t)&
 /** @} */
 
 /*-----------------------------------------------------------------------------------*/
-void heap_stats(void) 
+void heap_stats(void)
 {
     for(int i = 0; i < NUM_HEAPS; i++)
         printf("# heap %i: %p -- %p -> %p (%li of %li free)\n", i, heap_start[i], heap[i], heap_max[i],
diff --git a/cpu/mc1322x/Makefile b/cpu/mc1322x/Makefile
index cb7f2993a00d69a8492adce0807990bbc1dafb35..9bb19b004bb0daf2b7f00880470c9f258ddbf585 100644
--- a/cpu/mc1322x/Makefile
+++ b/cpu/mc1322x/Makefile
@@ -15,4 +15,3 @@ include $(RIOTBASE)/Makefile.base
 
 clean::
 	@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
-
diff --git a/cpu/mc1322x/adc/Makefile b/cpu/mc1322x/adc/Makefile
index 7cdb51ecb575556970d3f3a9a95da2712c7aa521..4e1bdca68c47e189c478e5797e2cbd8dc699e0d0 100644
--- a/cpu/mc1322x/adc/Makefile
+++ b/cpu/mc1322x/adc/Makefile
@@ -1,4 +1,4 @@
-INCLUDES = -I$(RIOTBASE)/cpu/mc1322x/adc/include 
+INCLUDES = -I$(RIOTBASE)/cpu/mc1322x/adc/include
 
 MODULE =mc1322x_adc
 
diff --git a/cpu/mc1322x/asm/asm.c b/cpu/mc1322x/asm/asm.c
index 989a6176a7fa94b98fcd493cc5c570a45e0be75e..ce8b4a7c51fbf048e0fa640f22711bca802e2442 100644
--- a/cpu/mc1322x/asm/asm.c
+++ b/cpu/mc1322x/asm/asm.c
@@ -42,9 +42,9 @@ void asm_turn_off(void)
  * This function blocks until the encryption/decryption finished after 13 clocks.
  *
  * \param keys The 128 bit key. \sa asm_keys_t
- * \param data A 128 bit block to encrypt/decrypt. Holds the encrypted/decrypted 
- *             data when finished \sa asm_data_t 
- * \param ctr Structure holding the counter for the encryption/decrpytion. The user 
+ * \param data A 128 bit block to encrypt/decrypt. Holds the encrypted/decrypted
+ *             data when finished \sa asm_data_t
+ * \param ctr Structure holding the counter for the encryption/decrpytion. The user
  *			  is responsible to provide a decend counter function. \sa asm_ctr_t
  */
 void asm_ctr_encryption_blocking(asm_keys_t *keys, asm_data_t *data, asm_ctr_t *ctr)
@@ -146,7 +146,7 @@ void asm_ctr_cbc_mac_init(asm_keys_t *keys)
  * Updates a MAC stream and encrypts data.
  * \param data Structure holding 128 bits of data to use in MAC stream and to encrypt.
  			   Holds the encrypted data when finished. \sa asm_data_t
- * \param ctr  Structure holding the counter for the encryption/decrpytion. The user 
+ * \param ctr  Structure holding the counter for the encryption/decrpytion. The user
  *			   is responsible to provide a decend counter function. \sa asm_ctr_t
  */
 void asm_ctr_cbc_mac_update(asm_data_t *data, asm_ctr_t *ctr)
diff --git a/cpu/mc1322x/asm/include/asm.h b/cpu/mc1322x/asm/include/asm.h
index dc301b6f7d50bf2dcb82a9925126bea5d82a46a6..150070ec7c1f39131c5d5ab4ae9bf42a7c2188cb 100644
--- a/cpu/mc1322x/asm/include/asm.h
+++ b/cpu/mc1322x/asm/include/asm.h
@@ -51,7 +51,7 @@ struct ASM_struct {
         uint32_t CONTROL_1;			///< Control 1 register
         struct ASM_CONTROL_1 {
             uint32_t ON: 1;			///< Turn ASM module on
-            uint32_t NORMAL_MODE: 1;///< exit boot mode 
+            uint32_t NORMAL_MODE: 1;///< exit boot mode
             uint32_t BYPASS: 1;		///< Data passes through unmodified
             uint32_t : 21;
             uint32_t CBC: 1;		///< enable CBC-MAC mode
diff --git a/cpu/mc1322x/gpio.c b/cpu/mc1322x/gpio.c
index 197e9351e409c611b4b5e13310732b42307ea814..5d92a26c1217a236d7a79865253c53c7a8713666 100644
--- a/cpu/mc1322x/gpio.c
+++ b/cpu/mc1322x/gpio.c
@@ -10,13 +10,13 @@
 
 #include "gpio.h"
 
-static inline void gpio_pad_dir(volatile uint64_t data) 
+static inline void gpio_pad_dir(volatile uint64_t data)
 {
         GPIO->PAD_DIR0 = (data & 0xffffffff);
         GPIO->PAD_DIR1 = (data >> 32);
 }
 
-static inline void gpio_data(volatile uint64_t data) 
+static inline void gpio_data(volatile uint64_t data)
 {
         GPIO->DATA0 = (data & 0xffffffff);
         GPIO->DATA1 = (data >> 32);
@@ -31,45 +31,44 @@ static inline uint64_t gpio_data_get(volatile uint64_t bits) {
         return rdata;
 }
 
-static inline void gpio_pad_pu_en(volatile uint64_t data) 
+static inline void gpio_pad_pu_en(volatile uint64_t data)
 {
         GPIO->PAD_PU_EN0 = (data & 0xffffffff);
         GPIO->PAD_PU_EN1 = (data >> 32);
 }
 
-static inline void gpio_data_sel(volatile uint64_t data) 
+static inline void gpio_data_sel(volatile uint64_t data)
 {
         GPIO->DATA_SEL0 = (data & 0xffffffff);
         GPIO->DATA_SEL1 = (data >> 32);
 }
 
-static inline void gpio_pad_pu_sel(volatile uint64_t data) 
+static inline void gpio_pad_pu_sel(volatile uint64_t data)
 {
         GPIO->PAD_PU_SEL0 = (data & 0xffffffff);
         GPIO->PAD_PU_SEL1 = (data >> 32);
 }
 
-static inline void gpio_data_set(volatile uint64_t data) 
+static inline void gpio_data_set(volatile uint64_t data)
 {
         GPIO->DATA_SET0 = (data & 0xffffffff);
         GPIO->DATA_SET1 = (data >> 32);
 }
 
-static inline void gpio_data_reset(volatile uint64_t data) 
+static inline void gpio_data_reset(volatile uint64_t data)
 {
         GPIO->DATA_RESET0 = (data & 0xffffffff);
         GPIO->DATA_RESET1 = (data >> 32);
 }
 
-static inline void gpio_pad_dir_set(volatile uint64_t data) 
+static inline void gpio_pad_dir_set(volatile uint64_t data)
 {
         GPIO->PAD_DIR_SET0 = (data & 0xffffffff);
         GPIO->PAD_DIR_SET1 = (data >> 32);
 }
 
-static inline void gpio_pad_dir_reset(volatile uint64_t data) 
+static inline void gpio_pad_dir_reset(volatile uint64_t data)
 {
         GPIO->PAD_DIR_RESET0 = (data & 0xffffffff);
         GPIO->PAD_DIR_RESET1 = (data >> 32);
 }
-
diff --git a/cpu/mc1322x/hwtimer_cpu.c b/cpu/mc1322x/hwtimer_cpu.c
index 6107426d9644bb6607104baf9a15cbb815973242..4cb872611f29a1befed3b6ec7eca07c4c2486416 100644
--- a/cpu/mc1322x/hwtimer_cpu.c
+++ b/cpu/mc1322x/hwtimer_cpu.c
@@ -63,10 +63,10 @@ void timer_x_init(volatile struct TMR_struct* const TMRx) {
     /* disable comparison */
     TMRx->COMP1 = 0;
     TMRx->CMPLD1 = 0;
-    
+
     /* set counter to zero */
     TMRx->CNTR = TMRx->LOAD;
-    
+
     /* set timer control bits */
     TMRx->CTRLbits.COUNT_MODE = 1;              /* use rising edge of primary source */
     TMRx->CTRLbits.PRIMARY_CNT_SOURCE = 0x0f;   /* Perip. clock with 128 prescale (for 24MHz = 187500Hz) */
@@ -80,10 +80,10 @@ void timer_x_init(volatile struct TMR_struct* const TMRx) {
 
 void hwtimer_arch_init(void (*handler)(int), uint32_t fcpu) {
     int_handler = handler;
-    
+
     /* TODO: do scaling voodoo */
     (void) fcpu;
-    
+
     /* disable all timers */
     TMR0->ENBL = 0;
     timer_x_init(TMR0);
@@ -115,7 +115,7 @@ void hwtimer_arch_disable_interrupt(void) {
 void hwtimer_arch_set(unsigned long offset, short timer) {
     /* get corresponding struct for the given ::timer parameter */
     struct TMR_struct* tmr = (void *) TMR_BASE + (timer * TMR_OFFSET);
-    
+
     /* disable IRQs and save the status register */
     uint32_t cpsr = disableIRQ();
 
@@ -124,8 +124,8 @@ void hwtimer_arch_set(unsigned long offset, short timer) {
     tmr->CSCTRLbits.TCF1 = 0;                   /* reset compare flag */
     tmr->CSCTRLbits.TCF1EN = 1;                 /* enable intterupts when TCF1 is set \ */
     TMR0->ENBL |= (1<<timer);                   /* enable timer */
-    tmr->SCTRLbits.TCFIE = 1;                   /* enable interrupts when TCF is one  - do we need both?*/ 
-    
+    tmr->SCTRLbits.TCFIE = 1;                   /* enable interrupts when TCF is one  - do we need both?*/
+
     /* restore status register */
     restoreIRQ(cpsr);
 }
@@ -134,17 +134,17 @@ void hwtimer_arch_set(unsigned long offset, short timer) {
 void hwtimer_arch_set_absolute(unsigned long value, short timer) {
     /* get corresponding struct for the given ::timer parameter */
     struct TMR_struct* tmr = (void *) TMR_BASE + (timer * TMR_OFFSET);
-    
+
     /* disable IRQs and save the status register */
     uint32_t cpsr = disableIRQ();
-    
+
     TMR0->ENBL &= ~(1<<timer);                  /* disable timer */
     tmr->COMP1 = value;                         /* load the value into the compare register */
     tmr->CSCTRLbits.TCF1 = 0;                   /* reset compare flag */
     tmr->CSCTRLbits.TCF1EN = 1;                 /* enable interrupts when TCF1 is set \ */
     TMR0->ENBL |= (1<<timer);                   /* enable timer */
-    tmr->SCTRLbits.TCFIE = 1;                   /* enable interrupts when TCF is one  - do we need both?*/ 
-    
+    tmr->SCTRLbits.TCFIE = 1;                   /* enable interrupts when TCF is one  - do we need both?*/
+
     /* restore status register */
     restoreIRQ(cpsr);
 }
@@ -153,7 +153,7 @@ void hwtimer_arch_set_absolute(unsigned long value, short timer) {
 void hwtimer_arch_unset(short timer) {
     /* get corresponding struct for the given ::timer parameter */
     struct TMR_struct* tmr = (void *) TMR_BASE + (timer + TMR_OFFSET);
-    
+
     tmr->CSCTRLbits.TCF1 = 0;                   /* reset compare flag */
     tmr->CSCTRLbits.TCF1EN = 0;                 /* disable interrupts for TCF1 */
     tmr->SCTRLbits.TCFIE = 0;                   /* disable interrupts for TCF */
diff --git a/cpu/mc1322x/include/cpu.h b/cpu/mc1322x/include/cpu.h
index 82b307bf4a612fd02cf50e7bf028c153e4b3815c..66cf3b5edbf040da74b5dc65310ca347428fb2c0 100644
--- a/cpu/mc1322x/include/cpu.h
+++ b/cpu/mc1322x/include/cpu.h
@@ -5,7 +5,7 @@
  * This source code is licensed under the GNU Lesser General Public License,
  * Version 2.  See the file LICENSE for more details.
  */
- 
+
 /**
  * @defgroup    mc1322x Freescale MC1322x
  * @ingroup     cpu
@@ -13,7 +13,7 @@
  */
 
 #ifndef CPU_H
-#define CPU_H 
+#define CPU_H
 
 /**
  * @defgroup	mc1322x		Freescale mc1322x
diff --git a/cpu/mc1322x/include/gpio.h b/cpu/mc1322x/include/gpio.h
index 2e42d41ee9cc62c1789d509b6c8ce8044c02a91a..bde4cb5e310231f132d5f8745b61db55ac6c275f 100644
--- a/cpu/mc1322x/include/gpio.h
+++ b/cpu/mc1322x/include/gpio.h
@@ -76,12 +76,12 @@
 #define TXON GPIO_44
 #define RXON GPIO_45
 #define ANT1 GPIO_42
-#define ANT2 GPIO_43 
+#define ANT2 GPIO_43
 #define VREF2H GPIO_38
 #define VREF2L GPIO_39
 #define VREF1H GPIO_40
 #define VREF1L GPIO_41
-#define MDO0 GPIO_51 
+#define MDO0 GPIO_51
 #define MDO1 GPIO_52
 #define MDO2 GPIO_53
 #define MDO3 GPIO_54
@@ -157,4 +157,3 @@ enum { _REP(0,0) };
 static volatile struct GPIO_struct * const GPIO = (void *) (0x80000000);
 
 #endif
-
diff --git a/cpu/mc1322x/include/mc1322x.h b/cpu/mc1322x/include/mc1322x.h
index d8c7c74e0d8cad1fa86f35ebabdbb0efcca4a041..d4595beff4c9df1101a5f474755b148773b799f1 100644
--- a/cpu/mc1322x/include/mc1322x.h
+++ b/cpu/mc1322x/include/mc1322x.h
@@ -9,7 +9,7 @@
  */
 
 #ifndef MC1322X_H
-#define MC1322X_H 
+#define MC1322X_H
 
 #include <stdint.h>
 
diff --git a/cpu/mc1322x/mc1322x.lds b/cpu/mc1322x/mc1322x.lds
index e3f5258ca384ab5a0fb690b04f33345f76372756..f4706d637190c4dbbe5ce14d323a97e7e7ddb71e 100644
--- a/cpu/mc1322x/mc1322x.lds
+++ b/cpu/mc1322x/mc1322x.lds
@@ -26,7 +26,7 @@ HEAP_SIZE = 4096;
   .text           :
   {
     *(.startup)
-    *(.irq)		
+    *(.irq)
     *(.text .stub .text.* .gnu.linkonce.t.*)
     /* .gnu.warning sections are handled specially by elf32.em.  */
     *(.gnu.warning)
@@ -96,7 +96,7 @@ HEAP_SIZE = 4096;
 /*  . = ALIGN (CONSTANT (MAXPAGESIZE)) - ((CONSTANT (MAXPAGESIZE) - .) & (CONSTANT (MAXPAGESIZE) - 1)); . = DATA_SEGMENT_ALIGN (CONSTANT (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE)); */
 
 	. = ALIGN(4);
-	. = DATA_SEGMENT_ALIGN(4,4); 
+	. = DATA_SEGMENT_ALIGN(4,4);
 
   /* Exception handling  */
   .eh_frame       : ONLY_IF_RW { KEEP (*(.eh_frame)) }
@@ -153,10 +153,10 @@ HEAP_SIZE = 4096;
     KEEP (*(SORT(.dtors.*)))
     KEEP (*(.dtors))
   }
-  .jcr            : { KEEP (*(.jcr)) } 
+  .jcr            : { KEEP (*(.jcr)) }
   .data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro* .gnu.linkonce.d.rel.ro.*) }
-  .dynamic        : { *(.dynamic) } 
-  . = DATA_SEGMENT_RELRO_END (0, .);  
+  .dynamic        : { *(.dynamic) }
+  . = DATA_SEGMENT_RELRO_END (0, .);
   .got            : { *(.got.plt) *(.got) }
   .data           :
   {
diff --git a/cpu/mc1322x/startup.s b/cpu/mc1322x/startup.s
index c454a6cd80967a41b688db8b1d2edf7797976145..614315bcc477b434d126efa362a4428df85fc214 100644
--- a/cpu/mc1322x/startup.s
+++ b/cpu/mc1322x/startup.s
@@ -33,9 +33,9 @@
  *
  */
 
-  
+
 /*
-The following lincence is for all parts of this code done by 
+The following lincence is for all parts of this code done by
 Martin Thomas. Code from others used here may have other license terms.
 
 Copyright (C) 2004 Martin THOMAS
@@ -67,7 +67,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  *
  * This file is part of RIOT.
  */
-    
+
 /* Standard definitions of Mode bits and Interrupt (I & F) flags in PSRs (program status registers) */
 .set  USR_MODE, 0x10                    /* Normal User Mode                                         */
 .set  FIQ_MODE, 0x11                    /* FIQ Processing Fast Interrupts Mode                      */
@@ -82,7 +82,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 
        .section .startup
-    
+
        .set _rom_data_init, 0x108d0
        .global _startup
        .func _startup
@@ -97,7 +97,7 @@ _startup:
         ldr     PC, IRQ_Addr        /* Interrupt Request Interrupt (load from VIC) */
         ldr     PC, _fiq
 
- /* these vectors are used for rom patching */  
+ /* these vectors are used for rom patching */
 .org 0x20
 .code 16
 _RPTV_0_START:
@@ -121,8 +121,8 @@ ROM_var_start: .word 0
 ROM_var_end:   .word 0
 
 .code 32
-.align          
-_begin: 
+.align
+_begin:
     /* FIQ mode stack */
     msr CPSR_c, #(FIQ_MODE | IRQ_DISABLE | FIQ_DISABLE)
     ldr sp, =__fiq_stack_top__  /* set the FIQ stack pointer */
@@ -171,10 +171,10 @@ clbss_l:
         b  kernel_init
 
 /* Exception vector handlers branching table */
-Undef_Addr:     .word   UNDEF_Routine       
-SWI_Addr:       .word   ctx_switch          
-PAbt_Addr:      .word   PABT_Routine        
-DAbt_Addr:      .word   DABT_Routine        
+Undef_Addr:     .word   UNDEF_Routine
+SWI_Addr:       .word   ctx_switch
+PAbt_Addr:      .word   PABT_Routine
+DAbt_Addr:      .word   DABT_Routine
 _not_used:      .word   not_used
 IRQ_Addr:       .word   arm_irq_handler
 _fiq:           .word   fiq
diff --git a/cpu/msp430-common/Makefile b/cpu/msp430-common/Makefile
index 4d745160cd832ee38cf4d1ccada57da07fb9131d..4a029b5c36fdcb0b79d688641f25b0e69e258dfd 100644
--- a/cpu/msp430-common/Makefile
+++ b/cpu/msp430-common/Makefile
@@ -9,4 +9,3 @@ include $(RIOTBASE)/Makefile.base
 
 clean::
 	@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
-
diff --git a/cpu/msp430-common/Makefile.include b/cpu/msp430-common/Makefile.include
index bd2f745e30fb355c6ac18c93bafe8bb02018f9f2..e08934176769c210095c4637baba43cd24b0aa0c 100644
--- a/cpu/msp430-common/Makefile.include
+++ b/cpu/msp430-common/Makefile.include
@@ -1,2 +1 @@
 INCLUDES += -I$(MAKEBASE)/cpu/msp430-common/include/
-
diff --git a/cpu/msp430-common/irq.c b/cpu/msp430-common/irq.c
index 4ce238a43e1311ab0ec125a58d7e222cead8feb4..11b9661094aaeee35d35f8078e196356871ecd55 100644
--- a/cpu/msp430-common/irq.c
+++ b/cpu/msp430-common/irq.c
@@ -54,4 +54,3 @@ void restoreIRQ(unsigned int state)
         eINT();
     }
 }
-
diff --git a/cpu/msp430-common/lpm_cpu.c b/cpu/msp430-common/lpm_cpu.c
index f3ddf93436725b5966320c4de8c0d38faba2315b..917a930dd170e808ec5406920625576bff19a986 100644
--- a/cpu/msp430-common/lpm_cpu.c
+++ b/cpu/msp430-common/lpm_cpu.c
@@ -121,4 +121,3 @@ inline void lpm_awake(void)
 /* the following two functions have no actual role to play MSP430s */
 inline void lpm_begin_awake(void) { }
 inline void lpm_end_awake(void) { }
-
diff --git a/cpu/msp430-common/msp430-main.c b/cpu/msp430-common/msp430-main.c
index b51626b1ac8e659d013f2a51e52d03a9254a0edd..81652658c3e2f86f734ec15b7e7b8692eb5b8634 100644
--- a/cpu/msp430-common/msp430-main.c
+++ b/cpu/msp430-common/msp430-main.c
@@ -175,4 +175,3 @@ splx_(int sr)
 /*---------------------------------------------------------------------------*/
 
 extern void board_init(void);
-
diff --git a/cpu/msp430x16x/Makefile b/cpu/msp430x16x/Makefile
index 3b9fcd10ac13a174c2fb04422e17051c86c5ba37..3e58e838070eb11fda42c8ec52f45f3cb4cb9fa3 100644
--- a/cpu/msp430x16x/Makefile
+++ b/cpu/msp430x16x/Makefile
@@ -11,4 +11,3 @@ include $(RIOTBASE)/Makefile.base
 
 clean::
 	@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
-
diff --git a/cpu/msp430x16x/Makefile.include b/cpu/msp430x16x/Makefile.include
index b9dcae6d052f5331991201e4e343234d90ca7279..f847c59ebf1bca33b74948bccec024aac6ab5217 100644
--- a/cpu/msp430x16x/Makefile.include
+++ b/cpu/msp430x16x/Makefile.include
@@ -1,4 +1,3 @@
 INCLUDES += -I$(RIOTCPU)/msp430x16x/include/
 
 include $(RIOTCPU)/msp430-common/Makefile.include
-
diff --git a/cpu/native/Makefile b/cpu/native/Makefile
index a6f241ddcede8d67eb972336467eb2fa518d69c5..0f224273c668c4dd64c84e87ec510bc1308cdea7 100644
--- a/cpu/native/Makefile
+++ b/cpu/native/Makefile
@@ -23,4 +23,3 @@ $(BINDIR)%.o: %.c
 
 clean::
 	@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
-
diff --git a/cpu/native/Makefile.include b/cpu/native/Makefile.include
index 54626e3344d0806ad045862c34bb6b9f54526dfe..193530d2a4a2c4904e6cf178e89c1739c478209b 100644
--- a/cpu/native/Makefile.include
+++ b/cpu/native/Makefile.include
@@ -1,2 +1 @@
 export INCLUDES += -I$(RIOTCPU)/native/include
-
diff --git a/cpu/native/README b/cpu/native/README
index 4835a9221dff3ab388d49d24d1dd3195846c47fa..89ced7e029dbb4db2fecec26b20b74553a35b6e9 100644
--- a/cpu/native/README
+++ b/cpu/native/README
@@ -2,7 +2,7 @@ VALGRIND SUPPORT
 ================
 
 Rebuild your project using the all-valgrind target like this:
-    
+
     make -B clean all-valgrind
 
 That way native will tell valgrind about RIOTs stacks and prevent
diff --git a/cpu/native/include/nativenet.h b/cpu/native/include/nativenet.h
index 0251b68a0e7d86671fab8c04ab8c3c93f3ad61ba..b392a03b92fbed81109898bbb83a0c3a0810eb9e 100644
--- a/cpu/native/include/nativenet.h
+++ b/cpu/native/include/nativenet.h
@@ -1,7 +1,7 @@
 /**
  * nativenet transceiver interface
  *
- * A configurable transceiver for the native port. 
+ * A configurable transceiver for the native port.
  *
  * At the moment only the tap interface is supported, but more network
  * layers are intended. So the "configurable" part is a lie for now ;-)
diff --git a/cpu/native/net/Makefile b/cpu/native/net/Makefile
index c0c0e2b827ae16edfe01e62f133d39154c00774f..16c11eebdefc1a5a6924b3bb67b0b6aa7ed5e323 100644
--- a/cpu/native/net/Makefile
+++ b/cpu/native/net/Makefile
@@ -8,4 +8,3 @@ $(BINDIR)%.o: %.c
 	$(AD)$(CC) $(CFLAGS) $(filter-out $(EXCLUDES),$(INCLUDES)) $(BOARDINCLUDE) $(PROJECTINCLUDE) $(CPUINCLUDE) -c $*.c -o $(BINDIR)$*.o
 	@$(CC) $(CFLAGS) $(INCLUDES) $(BOARDINCLUDE) $(PROJECTINCLUDE) $(CPUINCLUDE) -MM $*.c > $(BINDIR)$*.d
 	@printf "$(BINDIR)" | cat - $(BINDIR)$*.d > /tmp/riot_out && mv /tmp/riot_out $(BINDIR)$*.d
-
diff --git a/cpu/native/rtc/Makefile b/cpu/native/rtc/Makefile
index 64278b51d685d909f379a0b3005b07366b6eb5cb..4d24181c9931b49adb796a5926373525c84b8314 100644
--- a/cpu/native/rtc/Makefile
+++ b/cpu/native/rtc/Makefile
@@ -1,4 +1,3 @@
 MODULE =rtc
 
 include $(MAKEBASE)/Makefile.base
-
diff --git a/dist/tools/goodfet/README.txt b/dist/tools/goodfet/README.txt
index 4bbcb9e8d351564f9535880f084900c6550f9208..e9582ad6ba7e314e1f290d6922cf8969cece00d2 100644
--- a/dist/tools/goodfet/README.txt
+++ b/dist/tools/goodfet/README.txt
@@ -28,5 +28,3 @@ sudo make link
 # Load firmware, not yet building it locally.
 goodfet.bsl --fromweb
 goodfet.monitor test
-
-
diff --git a/dist/tools/goodfet/goodfet.bsl b/dist/tools/goodfet/goodfet.bsl
index b51fce2581676314872ef0c36e16e231bb15fa70..afa6840c7f3a3d84028bad55ba7b3ff4f6ffaf20 100755
--- a/dist/tools/goodfet/goodfet.bsl
+++ b/dist/tools/goodfet/goodfet.bsl
@@ -9,7 +9,7 @@
 # based on the application note slas96b.pdf from Texas Instruments, Inc.,
 # Volker Rzehak
 # additional infos from slaa089a.pdf
-# 
+#
 # Forked by Travis Goodspeed <travis at tnbelt.com> for use with the GoodFET
 # JTAG programmer.
 
@@ -18,7 +18,7 @@ import sys, time, string, cStringIO, struct
 import serial, os, glob
 
 #forked from TinyOS Telos version.
-VERSION = string.split("Revision: 1.39-goodfet-8 ")[1] 
+VERSION = string.split("Revision: 1.39-goodfet-8 ")[1]
 
 DEBUG = 0                                       #disable debug messages by default
 
@@ -260,9 +260,9 @@ class LowLevel:
     ERR_CMD_FAILED          = "Command failed, is not defined or is not allowed"
     ERR_BSL_SYNC            = "Bootstrap loader synchronization error"
     ERR_FRAME_NUMBER        = "Frame sequence number error."
-    
+
     z1 = 0;
-    
+
     def calcChecksum(self, data, length):
         """Calculates a checksum of "data"."""
         checksum = 0
@@ -289,7 +289,7 @@ class LowLevel:
         self.swapRSTTEST = 0
         self.telosLatch = 0
         self.telosI2C = 0
-        
+
         self.protocolMode = self.MODE_BSL
         self.BSLMemAccessWarning = 0                #Default: no warning.
         self.slowmode = 0
@@ -314,7 +314,7 @@ class LowLevel:
             timeout = self.timeout
         )
         if DEBUG: sys.stderr.write("using serial port %r\n" % self.serialport.portstr)
-        
+
         if not self.z1:
             self.SetRSTpin()                        #enable power
             self.SetTESTpin()                       #enable power
@@ -545,7 +545,7 @@ class LowLevel:
         self.picROMclock(0, True)
         #k = 1
         #while not self.serial.getCTS():
-        #    pass 
+        #    pass
         #time.sleep(0.1)
         return recbuf
 
@@ -562,7 +562,7 @@ class LowLevel:
         self.picROMclock(r)
         #time.sleep(0.1)
         return recbuf
-        
+
     def picROMclock(self, masterout, slow = False):
         #print "setting masterout to "+str(masterout)
         self.serialport.setRTS(masterout)
@@ -587,10 +587,10 @@ class LowLevel:
         Parameters:
             invokeBSL = 1: complete sequence
             invokeBSL = 0: only RST/NMI pin accessed
-            
+
         By now only BSL mode is accessed
         '''
-        
+
         if DEBUG > 1: sys.stderr.write("* bslReset(invokeBSL=%s)\n" % invokeBSL)
         if invokeBSL:
             #sys.stderr.write("in Z1 bsl reset...\n")
@@ -645,12 +645,12 @@ class LowLevel:
         if self.telosI2C:
             self.telosBReset(invokeBSL)
             return
-        
+
         if self.z1:
             if DEBUG > 1: sys.stderr.write("* entering bsl with z1\n")
             self.bslResetZ1(invokeBSL)
             return
-    
+
 
         if DEBUG > 1: sys.stderr.write("* bslReset(invokeBSL=%s)\n" % invokeBSL)
         self.SetRSTpin(1)       #power suply
@@ -699,7 +699,7 @@ class LowLevel:
                             sys.stderr.write("  bslSync() timeout, retry ...\n")
                     elif loopcnt == 4:
                         #nmi may have caused the first reset to be ignored, try again
-                        self.bslReset(0) 
+                        self.bslReset(0)
                         self.bslReset(1)
                     elif loopcnt > 0:
                         if DEBUG > 1:
@@ -709,7 +709,7 @@ class LowLevel:
                             sys.stderr.write("  bslSync() timeout\n")
             else:                                   #garbage
                 if DEBUG > 1: sys.stderr.write("  bslSync() failed (0x%02x), retry ...\n" % ord(c))
-                
+
                 raise BSLException(self.ERR_BSL_SYNC)       #Sync. failed
 
     def bslTxRx(self, cmd, addr, length = 0, blkout = None, wait=0):
@@ -860,7 +860,7 @@ class Memory:
                 sys.stderr.write("ELF section %s at 0x%04x %d bytes\n" % (section.name, section.lma, len(section.data)))
             if len(section.data):
                 self.segments.append( Segment(section.lma, section.data) )
-        
+
     def loadFile(self, filename):
         """fill memory with the contents of a file. file type is determined from extension"""
         #TODO: do a contents based detection
@@ -948,7 +948,7 @@ class BootStrapLoader(LowLevel):
         if self.patchLoaded:
             self.BSLMemAccessWarning = 1                #Turn warning back on.
 
-    
+
     def verifyBlk(self, addr, blkout, action):
         """verify memory against data or 0xff"""
         if DEBUG > 1: sys.stderr.write("* verifyBlk()\n")
@@ -978,7 +978,7 @@ class BootStrapLoader(LowLevel):
     def readBlk(self,adr,len):
         """Read a block of memory."""
         blkin = self.bslTxRx(self.BSL_RXBLK, addr, len(blkout))
-        
+
     def programBlk(self, addr, blkout, action):
         """program a memory block"""
         if DEBUG > 1: sys.stderr.write("* programBlk()\n")
@@ -1013,7 +1013,7 @@ class BootStrapLoader(LowLevel):
                 pstart = pstart + length
                 currentAddr = currentAddr + length
                 self.byteCtr = self.byteCtr + length #total sum
-    
+
     def uploadData(self, startaddress, size, wait=0):
         """upload a datablock"""
         if DEBUG > 1: sys.stderr.write("* uploadData()\n")
@@ -1074,12 +1074,12 @@ class BootStrapLoader(LowLevel):
         """start BSL, download patch if desired and needed, adjust SP if desired"""
         sys.stderr.write("Invoking BSL...\n")
         sys.stderr.flush()
-        
+
         #for '30, invertTEST=0, else =1
         if bslreset:
             self.bslReset(1)                        #Invoke the boot loader.
-        
-        
+
+
         self.txPasswd(self.passwd)                  #transmit password
 
         #Read actual bootstrap loader version.
@@ -1089,12 +1089,12 @@ class BootStrapLoader(LowLevel):
                           16)                       #No. of bytes to read
         dev_id, bslVerHi, bslVerLo = struct.unpack(">H8xBB4x", blkin[:-2]) #cut away checksum and extract data
         self.dev_id=dev_id;
-        
-        
+
+
         if self.cpu is None:                        #cpy type forced?
             if deviceids.has_key(dev_id):
                 self.cpu = deviceids[dev_id]        #try to autodectect CPU type
-                
+
                 if DEBUG:
                     sys.stderr.write("Autodetect successful: %04x -> %s\n" % (dev_id, self.cpu))
             else:
@@ -1113,7 +1113,7 @@ class BootStrapLoader(LowLevel):
         if self.bslVer <= 0x0130 and adjsp:
             #only do this on BSL where it's needed to prevent
             #malfunction with F4xx devices/ newer ROM-BSLs
-            
+
             #Execute function within bootstrap loader
             #to prepare stack pointer for the following patch.
             #This function will lock the protected functions again.
@@ -1138,7 +1138,7 @@ class BootStrapLoader(LowLevel):
                     sys.stderr.write("Using built in BSL replacement for F1x devices\n")
                     sys.stderr.flush()
                 replacementBSL.loadTIText(cStringIO.StringIO(F1X_BSL))  #parse embedded BSL
-    
+
         #now download the new BSL, if allowed and needed (version lower than the
         #the replacement) or forced
         if replacementBSL is not None:
@@ -1200,7 +1200,7 @@ class BootStrapLoader(LowLevel):
         self.txPasswd(self.passwd)
 
         #update version info
-        #verison only valid for the internal ones, but it also makes sure 
+        #verison only valid for the internal ones, but it also makes sure
         #that the patches are not applied if the user d/ls one
         self.bslVer = 0x0150
 
@@ -1229,26 +1229,26 @@ class BootStrapLoader(LowLevel):
         # print "%s" % firmware[self.dev_id];
         # fn="/tmp/.goodfet.hex"
         # os.system("curl %s >%s" % (firmware[self.dev_id],fn))
-        
+
         # fw=Memory(fn);
         # #fw.loadIhex(open(fn,"rb"));
-        
+
         # sys.stderr.write("Program ...\n")
         # sys.stderr.flush()
         # self.programData(fw, self.ACTION_PROGRAM | self.ACTION_VERIFY)
         # sys.stderr.write("%i bytes programmed.\n" % self.byteCtr)
         # sys.stderr.flush()
-        
-        
+
+
         print """
 The --fromweb feature is temporarily disabled, pending a rewrite.
 Please grab a copy of the appropriate .hex from
 http://goodfet.sf.net/dist/ and flash it like so:
 
-goodfet.bsl -e -p foo.hex        
+goodfet.bsl -e -p foo.hex
 """
-        
-        
+
+
     def actionVerify(self):
         """Verify programmed data"""
         if self.data is not None:
@@ -1301,7 +1301,7 @@ goodfet.bsl -e -p foo.hex
             a,l = baudconfigs[baudrate]
         except KeyError:
             raise ValueError, "baudrate not valid. valid values are %r" % baudconfigs.keys()
-        
+
         sys.stderr.write("Changing baudrate to %d ...\n" % baudrate)
         sys.stderr.flush()
         self.bslTxRx(self.BSL_CHANGEBAUD,   #Command: change baudrate
@@ -1376,7 +1376,7 @@ General options:
   --swap-reset-test     Swap the RST and TEST pins (used for some BSL hardware)
   --telos-latch         Special twiddle in BSL reset for Telos hardware
   --telos-i2c           DTR/RTS map via an I2C switch to TCK/RST in Telos Rev.B
-  --telos               Implies options --invert-reset, --invert-test, 
+  --telos               Implies options --invert-reset, --invert-test,
                         --swap-reset-test, and --telos-latch
   --telosb              Implies options --swap-reset-test, --telos-i2c,
                         --no-BSL-download, and --speed=38400
@@ -1482,23 +1482,23 @@ def main(itest=1):
     forceBSL    = 0
     dumpivt     = 0
     dumpinfo    = 0
-    
+
     bsl.invertRST = 1
     bsl.invertTEST = itest
-    
-    if(os.environ.get("board")=='telosb' or 
+
+    if(os.environ.get("board")=='telosb' or
        os.environ.get("board")=='telosbbt' or
        os.environ.get("platform")=='telosb'):
         bsl.swapRSTTEST = 1
         bsl.telosI2C = 1
         mayuseBSL = 0
-    if(os.environ.get("board")=='z1' or 
+    if(os.environ.get("board")=='z1' or
        os.environ.get("board")=='zolertiaz1'):
         bsl.z1 = 1
     if(os.environ.get("board")=='apimote' or os.environ.get("board")=='apimote1'):
         bsl.swapRSTTEST = 1;
-    
-    
+
+
     if comPort is None and os.environ.get("GOODFET")!=None:
         glob_list = glob.glob(os.environ.get("GOODFET"));
         if len(glob_list) > 0:
@@ -1755,7 +1755,7 @@ def main(itest=1):
         reset = 0
 
     sys.stderr.flush()
-    
+
     #prepare data to download
     bsl.data = Memory()                             #prepare downloaded data
     if filetype is not None:                        #if the filetype is given...
@@ -1828,7 +1828,7 @@ def main(itest=1):
             hex+=("%02x "%ord(c));
         hex+="\nq\n";
         print hex;
-    
+
     if goaddr is not None:                          #start user programm at specified address
         bsl.actionRun(goaddr)                       #load PC and execute
 
diff --git a/dist/tools/linux-border_router/Makefile b/dist/tools/linux-border_router/Makefile
index 4259ba610e98c9b0326e7e8594a03b131e20ae70..0960c7bd1b8fd606e22ceb49e6be8613aaa3b53e 100644
--- a/dist/tools/linux-border_router/Makefile
+++ b/dist/tools/linux-border_router/Makefile
@@ -11,7 +11,7 @@ SRC = main.c sixlowdriver.c serial.c control_2xxx.c multiplex.c flowcontrol.c se
 TARGETDIR = ../../bin/linux
 DOCDIR = ../../Documentation/linux
 
-sixlowdriver: $(SRC) 
+sixlowdriver: $(SRC)
 	mkdir -p $(TARGETDIR) &> /dev/null
 	$(CC) $(CFLAGS) -o $(TARGETDIR)/sixlowpan $(SRC)
 
diff --git a/dist/tools/linux-border_router/control_2xxx.h b/dist/tools/linux-border_router/control_2xxx.h
index 2206b47ea358dc57ec3003cea2dab8ae988a68fe..425dde34bdfdfa80d63640f9a4d3d87ddd01892b 100644
--- a/dist/tools/linux-border_router/control_2xxx.h
+++ b/dist/tools/linux-border_router/control_2xxx.h
@@ -6,4 +6,3 @@ void hard_reset_to_bootloader(void);
 void hard_reset_to_user_code(void);
 
 #endif // ..._H
-
diff --git a/dist/tools/linux-border_router/serial.c b/dist/tools/linux-border_router/serial.c
index fdb1f5bc79db1a7039cf77464724e4e028b16c0a..45265a07edadea178026d3084428adc50bfc779b 100644
--- a/dist/tools/linux-border_router/serial.c
+++ b/dist/tools/linux-border_router/serial.c
@@ -425,9 +425,3 @@ void set_dtr(int val)
         printf("Error %i while setting port io flags\n", errno);
     }
 }
-
-
-
-
-
-
diff --git a/dist/tools/linux-border_router/sixlowdriver.c b/dist/tools/linux-border_router/sixlowdriver.c
index d62334846f2786be95a4a87bf86319f3ea22b005..e2e7fe25f9ae5c5be1255764988d77808c3e0b5b 100644
--- a/dist/tools/linux-border_router/sixlowdriver.c
+++ b/dist/tools/linux-border_router/sixlowdriver.c
@@ -325,4 +325,3 @@ int border_initialize(char *if_name, const char *ip_addr, const char *tty_dev)
 
     return 0;
 }
-
diff --git a/dist/tools/testsuite/build_and_generate_html.sh b/dist/tools/testsuite/build_and_generate_html.sh
index a5807f42e881876e054aa02ebe52e881813d91f2..9a23008adfe25ddfb6ec22a9ffcd6ebc4b0b1197 100755
--- a/dist/tools/testsuite/build_and_generate_html.sh
+++ b/dist/tools/testsuite/build_and_generate_html.sh
@@ -7,4 +7,3 @@ export ROOT=${ROOT:-.}
 
 ${ROOT}/tools/testsuite/svn_test_revision.sh ${REVISION}
 ${ROOT}/tools/testsuite/generate_html.sh
-
diff --git a/dist/tools/testsuite/generate_html.sh b/dist/tools/testsuite/generate_html.sh
index 8944bf8f5c3ffa904b579c0569407494532d7658..6f80ca76b5ea18c964b6903af1974fc6db055b9b 100755
--- a/dist/tools/testsuite/generate_html.sh
+++ b/dist/tools/testsuite/generate_html.sh
@@ -10,7 +10,7 @@ OUTFILE=${HTMLFILE:-${HOME}/riot.html}
 LOGDIR=${BUILDLOGS:-${HOME}/buildlogs}
 
 {
-cat ${HTMLDIR}/header 
+cat ${HTMLDIR}/header
 
 for i in `ls -t $LOGDIR/*.log`; do
     ${TOOLROOT}/tools/testsuite/parse_buildlog.sh $i
@@ -21,7 +21,5 @@ for i in `ls -t $LOGDIR/*.log`; do
 
 done
 
-cat ${HTMLDIR}/footer 
+cat ${HTMLDIR}/footer
 } > ${OUTFILE}
-
-
diff --git a/dist/tools/testsuite/html/header b/dist/tools/testsuite/html/header
index 4d9384a397063b9811b2c835d8485e31b1d70233..5cfa2ee812dd892bb2f83a14b4078dbe9fa403d2 100644
--- a/dist/tools/testsuite/html/header
+++ b/dist/tools/testsuite/html/header
@@ -3,4 +3,3 @@
 <title> Feuerwhere Build Bot results </title>
 </header>
 <body>
-
diff --git a/dist/tools/testsuite/parse_buildlog.sh b/dist/tools/testsuite/parse_buildlog.sh
index 3ce5bf53cab99634749b1c62ce504c936ee699b1..bc1bcdeef3fbf3037b4d0374230965fcbd873887 100755
--- a/dist/tools/testsuite/parse_buildlog.sh
+++ b/dist/tools/testsuite/parse_buildlog.sh
@@ -25,7 +25,7 @@ elif (($NUM_FAIL==0)); then
 else
     BUILD_STATUS="broken!"
 fi
-    
+
 echo "<h2>Revision: ${REVISION} Status: ${BUILD_STATUS}</h2>"
 
 svn log --incremental -v -l 1 ${REPO}@${REVISION} | sed -e 's/$/<br>/'
@@ -39,5 +39,3 @@ echo "<br> Failed builds/tests: <br>"
     grep '\[.* FAILED\]' ${LOG} | uniq | sed -e 's/$/<br>/'
 fi
 } | tee ${1}.parsed
-
-
diff --git a/dist/tools/testsuite/run_tests.sh b/dist/tools/testsuite/run_tests.sh
index 1344e604a38127546e46f114be7b82c8561dac61..cdf4e21353152cdb6e69f3a4463fa3474da442f6 100755
--- a/dist/tools/testsuite/run_tests.sh
+++ b/dist/tools/testsuite/run_tests.sh
@@ -4,13 +4,13 @@ TOOLROOT=${TOOLROOT:-.}
 
 flash() {
     echo "Building ${1}..."
-    jam -aq flash || ( echo "[BUILD FAILED] ${1}" && false ) 
+    jam -aq flash || ( echo "[BUILD FAILED] ${1}" && false )
 }
 
 run_tests() {
     TESTDIR=projects/${1}/tests
     flash ${PROJECT} || return
-    for tst in `ls ${TESTDIR}/`; do 
+    for tst in `ls ${TESTDIR}/`; do
         echo "Project \"${1}\": Running test ${tst}..."
         $TESTDIR/$tst || (
             echo
@@ -19,7 +19,7 @@ run_tests() {
     done
 }
 
-echo 
+echo
 echo "Running tests..."
 echo
 
@@ -40,4 +40,3 @@ for i in projects/*; do
         } 2>&1
     fi
 done
-
diff --git a/dist/tools/toolchains/build_gnuarm.sh b/dist/tools/toolchains/build_gnuarm.sh
index 67b17d859f58833e759416a5a661f6d6fe87cac6..2b9561a9a23d045e14a611827d292c5e0cca287b 100755
--- a/dist/tools/toolchains/build_gnuarm.sh
+++ b/dist/tools/toolchains/build_gnuarm.sh
@@ -3,7 +3,7 @@
 # directory to install compiled binaries into
 PREFIX=${HOME}/gnuarm
 
-# directory to download source files and store intermediates 
+# directory to download source files and store intermediates
 TMP_DIR=/var/tmp
 GNUARM_BUILDDIR=${GNUARM_BUILDDIR:-"${TMP_DIR}/gnuarm-${USER}"}
 
@@ -37,10 +37,10 @@ FREETMP=`df ${TMP_DIR} | awk '{ if (NR == 2) print $4}'`
 
 build_binutils() {
     echo "Building binutils..."
-    if [ ! -e .binutils_extracted ] ; then 
+    if [ ! -e .binutils_extracted ] ; then
         tar -xjf ${FILES}/binutils-${BINUTILS_VER}.tar.bz2
         touch .binutils_extracted
-    fi 
+    fi
     if [[ $HOST_GCC_VER == 4.6* || $HOST_GCC_VER == 4.7* ]]
     then
         CFLAGS="-Wno-error=unused-but-set-variable -Wno-error=unused-but-set-parameter"
@@ -56,16 +56,16 @@ build_binutils() {
 
 build_gcc() {
     echo "Building gcc..."
-    if [ ! -e .gcc_extracted ] ; then 
+    if [ ! -e .gcc_extracted ] ; then
 	    tar -xjf ${FILES}/gcc-${GCC_VER}.tar.bz2 &&
         touch .gcc_extracted
-    fi 
+    fi
     rm -rf gcc-build && mkdir -p gcc-build && cd gcc-build &&
-	../gcc-${GCC_VER}/configure --target=arm-elf --prefix=${PREFIX} --enable-interwork --enable-multilib --enable-languages="c,c++" --with-newlib --enable-lto --disable-libssp --with-headers=${GNUARM_BUILDDIR}/newlib-${NEWLIB_VER}/newlib/libc/include --enable-obsolete && 
-	
+	../gcc-${GCC_VER}/configure --target=arm-elf --prefix=${PREFIX} --enable-interwork --enable-multilib --enable-languages="c,c++" --with-newlib --enable-lto --disable-libssp --with-headers=${GNUARM_BUILDDIR}/newlib-${NEWLIB_VER}/newlib/libc/include --enable-obsolete &&
+
     make ${MAKE_THREADS} all &&
 	make install &&
-	
+
     cd ${GNUARM_BUILDDIR}
 }
 
@@ -80,27 +80,27 @@ extract_newlib() {
 
 build_newlib() {
 	cd ${GNUARM_BUILDDIR} &&
-    
-    if [ ! -e .newlib_extracted ] ; then 
+
+    if [ ! -e .newlib_extracted ] ; then
         extract_newlib
-    fi 
-	
+    fi
+
     rm -rf newlib-build && mkdir -p newlib-build && cd newlib-build &&
 	../newlib-${NEWLIB_VER}/configure --target=arm-elf --prefix=${PREFIX} --enable-interwork --enable-multilib --disable-newlib-supplied-syscalls --enable-newlib-reent-small --enable-newlib-io-long-long --enable-newlib-io-float &&
 	#--enable-newlib-supplied-syscalls &&
 	# options to try: --enable-newlib-reent-small
     make ${MAKE_THREADS} TARGET_CFLAGS=-DREENTRANT_SYSCALLS_PROVIDED all &&
     make install &&
-	
+
 	# generate zip-file to provide binary download
     cd ${PREFIX}/arm-elf &&
-    
+
     #
     # package compiled newlib for windows users. any new version must be uploaded to the
     # webserver. see manual arm/toolchain/windows for paths and documentation.
     #
     zip -ru newlib-${NEWLIB_VER}.zip include sys-include lib/*.a lib/thumb/*.a
-    
+
     cd ${GNUARM_BUILDDIR}
 }
 
@@ -115,7 +115,7 @@ build_gdb() {
 
     make ${MAKE_THREADS} all CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0" &&
 	make install &&
-	
+
     cd ${GNUARM_BUILDDIR}
 }
 
@@ -155,7 +155,7 @@ build_all() {
     echo "Starting in ${GNUARM_BUILDDIR}. Installing to ${PREFIX}."
     check_space &&
     download &&
-	build_binutils && 
+	build_binutils &&
     extract_newlib &&
 	build_gcc &&
 	build_newlib &&
@@ -183,4 +183,3 @@ mkdir -p ${GNUARM_BUILDDIR}
 cd ${GNUARM_BUILDDIR}
 
 $*
-
diff --git a/dist/tools/toolchains/build_gnuarm_naked.sh b/dist/tools/toolchains/build_gnuarm_naked.sh
index 86a6c252a6f742db63bde6e4a973e05c4b62f347..d237d21e1968061e60a82c889e6e69af09dc723f 100755
--- a/dist/tools/toolchains/build_gnuarm_naked.sh
+++ b/dist/tools/toolchains/build_gnuarm_naked.sh
@@ -3,7 +3,7 @@
 # directory to install compiled binaries into
 PREFIX=${HOME}/gnuarm-naked
 
-# directory to download source files and store intermediates 
+# directory to download source files and store intermediates
 GNUARM_BUILDDIR=${GNUARM_BUILDDIR:-"/tmp/gnuarm-naked-${USER}"}
 
 #GCC_VER=4.5.1
@@ -33,10 +33,10 @@ FILES=.
 
 build_binutils() {
     echo "Building binutils..."
-    if [ ! -e .binutils_extracted ] ; then 
+    if [ ! -e .binutils_extracted ] ; then
         tar -xjf ${FILES}/binutils-${BINUTILS_VER}.tar.bz2
         touch .binutils_extracted
-    fi 
+    fi
 	rm -rf binutils-build && mkdir -p binutils-build && cd binutils-build &&
 	../binutils-${BINUTILS_VER}/configure --target=arm-elf --prefix=${PREFIX} --enable-interwork --enable-multilibi --with-float=soft --with-fpu=vfp &&
 	make ${MAKE_THREADS} all CFLAGS=-Wformat=0 &&
@@ -46,16 +46,16 @@ build_binutils() {
 
 build_gcc() {
     echo "Building gcc..."
-    if [ ! -e .gcc_extracted ] ; then 
+    if [ ! -e .gcc_extracted ] ; then
 	    tar -xjf ${FILES}/gcc-core-${GCC_VER}.tar.bz2 &&
         touch .gcc_extracted
-    fi 
+    fi
     rm -rf gcc-build && mkdir -p gcc-build && cd gcc-build &&
-	../gcc-${GCC_VER}/configure --target=arm-elf --prefix=${PREFIX} --enable-interwork --enable-multilib --enable-languages="c" --enable-lto --disable-libssp --disable-hardfloat --with-float=soft --with-fpu=vfp --without-headers && 
-	
+	../gcc-${GCC_VER}/configure --target=arm-elf --prefix=${PREFIX} --enable-interwork --enable-multilib --enable-languages="c" --enable-lto --disable-libssp --disable-hardfloat --with-float=soft --with-fpu=vfp --without-headers &&
+
     make ${MAKE_THREADS} all &&
 	make install &&
-	
+
     cd ${GNUARM_BUILDDIR}
 }
 
@@ -70,27 +70,27 @@ extract_newlib() {
 
 build_newlib() {
 	cd ${GNUARM_BUILDDIR} &&
-    
-    if [ ! -e .newlib_extracted ] ; then 
+
+    if [ ! -e .newlib_extracted ] ; then
         extract_newlib
-    fi 
-	
+    fi
+
     rm -rf newlib-build && mkdir -p newlib-build && cd newlib-build &&
 	../newlib-${NEWLIB_VER}/configure --target=arm-elf --prefix=${PREFIX} --enable-interwork --enable-multilib --disable-newlib-supplied-syscalls --enable-newlib-reent-small --enable-newlib-io-long-long --enable-newlib-io-float --with-float=soft --with-fpu=vfp &&
 	#--enable-newlib-supplied-syscalls &&
 	# options to try: --enable-newlib-reent-small
     make ${MAKE_THREADS} TARGET_CFLAGS=-DREENTRANT_SYSCALLS_PROVIDED all &&
     make install &&
-	
+
 	# generate zip-file to provide binary download
     cd ${PREFIX}/arm-elf &&
-    
+
     #
     # package compiled newlib for windows users. any new version must be uploaded to the
     # webserver. see manual arm/toolchain/windows for paths and documentation.
     #
     zip -ru newlib-${NEWLIB_VER}.zip include sys-include lib/*.a lib/thumb/*.a
-    
+
     cd ${GNUARM_BUILDDIR}
 }
 
@@ -105,7 +105,7 @@ build_gdb() {
 
     make ${MAKE_THREADS} all CFLAGS=-D_FORTIFY_SOURCE=0 &&
 	make install &&
-	
+
     cd ${GNUARM_BUILDDIR}
 }
 
@@ -134,7 +134,7 @@ download_file() {
 build_all() {
     echo "Starting in ${GNUARM_BUILDDIR}. Installing to ${PREFIX}."
     download &&
-	build_binutils && 
+	build_binutils &&
 	build_gcc &&
 	build_gdb &&
 
@@ -160,4 +160,3 @@ mkdir -p ${GNUARM_BUILDDIR}
 cd ${GNUARM_BUILDDIR}
 
 $*
-
diff --git a/doc/doxygen/riot.doxyfile b/doc/doxygen/riot.doxyfile
index ad4dc35dcd1d8dfe0d3e693e9779816b154836df..f0a46be7b1d7fe11fc6c6ae7a9d55e9071050db0 100644
--- a/doc/doxygen/riot.doxyfile
+++ b/doc/doxygen/riot.doxyfile
@@ -4,19 +4,19 @@
 # Project related configuration options
 #---------------------------------------------------------------------------
 DOXYFILE_ENCODING      = UTF-8
-PROJECT_NAME           = RIOT 
-PROJECT_NUMBER         = 
-OUTPUT_DIRECTORY       = 
+PROJECT_NAME           = RIOT
+PROJECT_NUMBER         =
+OUTPUT_DIRECTORY       =
 CREATE_SUBDIRS         = NO
 OUTPUT_LANGUAGE        = English
 BRIEF_MEMBER_DESC      = YES
 REPEAT_BRIEF           = YES
-ABBREVIATE_BRIEF       = 
+ABBREVIATE_BRIEF       =
 ALWAYS_DETAILED_SEC    = NO
 INLINE_INHERITED_MEMB  = NO
 FULL_PATH_NAMES        = NO
-STRIP_FROM_PATH        = 
-STRIP_FROM_INC_PATH    = 
+STRIP_FROM_PATH        =
+STRIP_FROM_INC_PATH    =
 SHORT_NAMES            = NO
 JAVADOC_AUTOBRIEF      = YES
 QT_AUTOBRIEF           = NO
@@ -24,12 +24,12 @@ MULTILINE_CPP_IS_BRIEF = NO
 INHERIT_DOCS           = YES
 SEPARATE_MEMBER_PAGES  = NO
 TAB_SIZE               = 4
-ALIASES                = 
+ALIASES                =
 OPTIMIZE_OUTPUT_FOR_C  = YES
 OPTIMIZE_OUTPUT_JAVA   = NO
 OPTIMIZE_FOR_FORTRAN   = NO
 OPTIMIZE_OUTPUT_VHDL   = NO
-EXTENSION_MAPPING      = 
+EXTENSION_MAPPING      =
 BUILTIN_STL_SUPPORT    = NO
 CPP_CLI_SUPPORT        = NO
 SIP_SUPPORT            = NO
@@ -64,14 +64,14 @@ GENERATE_TODOLIST      = YES
 GENERATE_TESTLIST      = YES
 GENERATE_BUGLIST       = YES
 GENERATE_DEPRECATEDLIST= YES
-ENABLED_SECTIONS       = 
+ENABLED_SECTIONS       =
 MAX_INITIALIZER_LINES  = 30
 SHOW_USED_FILES        = YES
 SHOW_DIRECTORIES       = NO
 SHOW_FILES             = YES
 SHOW_NAMESPACES        = YES
-FILE_VERSION_FILTER    = 
-LAYOUT_FILE            = 
+FILE_VERSION_FILTER    =
+LAYOUT_FILE            =
 #---------------------------------------------------------------------------
 # configuration options related to warning and progress messages
 #---------------------------------------------------------------------------
@@ -81,24 +81,24 @@ WARN_IF_UNDOCUMENTED   = YES
 WARN_IF_DOC_ERROR      = YES
 WARN_NO_PARAMDOC       = NO
 WARN_FORMAT            = "$file:$line: $text"
-WARN_LOGFILE           = 
+WARN_LOGFILE           =
 #---------------------------------------------------------------------------
 # configuration options related to the input files
 #---------------------------------------------------------------------------
 INPUT                  = ../../core ../../cpu ../../boards ../../sys src/ ../../drivers
 INPUT_ENCODING         = UTF-8
-FILE_PATTERNS          = *.txt *.c *.h 
+FILE_PATTERNS          = *.txt *.c *.h
 RECURSIVE              = YES
-EXCLUDE                = 
+EXCLUDE                =
 EXCLUDE_SYMLINKS       = NO
 EXCLUDE_PATTERNS       = */board/*/tools/*
-EXCLUDE_SYMBOLS        = 
-EXAMPLE_PATH           = 
-EXAMPLE_PATTERNS       = 
+EXCLUDE_SYMBOLS        =
+EXAMPLE_PATH           =
+EXAMPLE_PATTERNS       =
 EXAMPLE_RECURSIVE      = NO
-IMAGE_PATH             = doxygen/ 
-INPUT_FILTER           = 
-FILTER_PATTERNS        = 
+IMAGE_PATH             = doxygen/
+INPUT_FILTER           =
+FILTER_PATTERNS        =
 FILTER_SOURCE_FILES    = NO
 #---------------------------------------------------------------------------
 # configuration options related to source browsing
@@ -116,14 +116,14 @@ VERBATIM_HEADERS       = YES
 #---------------------------------------------------------------------------
 ALPHABETICAL_INDEX     = NO
 COLS_IN_ALPHA_INDEX    = 5
-IGNORE_PREFIX          = 
+IGNORE_PREFIX          =
 #---------------------------------------------------------------------------
 # configuration options related to the HTML output
 #---------------------------------------------------------------------------
 GENERATE_HTML          = YES
 HTML_OUTPUT            = html
 HTML_FILE_EXTENSION    = .html
-HTML_HEADER            = src/riot-header.html 
+HTML_HEADER            = src/riot-header.html
 HTML_FOOTER            = src/riot-footer.html
 HTML_STYLESHEET        = src/riot.css
 HTML_ALIGN_MEMBERS     = YES
@@ -132,23 +132,23 @@ GENERATE_DOCSET        = NO
 DOCSET_FEEDNAME        = "Doxygen generated docs"
 DOCSET_BUNDLE_ID       = org.doxygen.Project
 GENERATE_HTMLHELP      = NO
-CHM_FILE               = 
-HHC_LOCATION           = 
+CHM_FILE               =
+HHC_LOCATION           =
 GENERATE_CHI           = YES #
-CHM_INDEX_ENCODING     = 
+CHM_INDEX_ENCODING     =
 BINARY_TOC             = YES #
 TOC_EXPAND             = YES #
 GENERATE_QHP           = NO
-QCH_FILE               = 
-QHP_NAMESPACE          = 
+QCH_FILE               =
+QHP_NAMESPACE          =
 QHP_VIRTUAL_FOLDER     = doc
-QHP_CUST_FILTER_NAME   = 
-QHP_CUST_FILTER_ATTRS  = 
-QHP_SECT_FILTER_ATTRS  = 
-QHG_LOCATION           = 
+QHP_CUST_FILTER_NAME   =
+QHP_CUST_FILTER_ATTRS  =
+QHP_SECT_FILTER_ATTRS  =
+QHG_LOCATION           =
 DISABLE_INDEX          = NO
 ENUM_VALUES_PER_LINE   = 4
-GENERATE_TREEVIEW      = YES 
+GENERATE_TREEVIEW      = YES
 TREEVIEW_WIDTH         = 250
 FORMULA_FONTSIZE       = 10
 #---------------------------------------------------------------------------
@@ -160,8 +160,8 @@ LATEX_CMD_NAME         = latex
 MAKEINDEX_CMD_NAME     = makeindex
 COMPACT_LATEX          = NO
 PAPER_TYPE             = a4wide
-EXTRA_PACKAGES         = 
-LATEX_HEADER           = 
+EXTRA_PACKAGES         =
+LATEX_HEADER           =
 PDF_HYPERLINKS         = YES
 USE_PDFLATEX           = YES
 LATEX_BATCHMODE        = NO
@@ -173,8 +173,8 @@ GENERATE_RTF           = NO
 RTF_OUTPUT             = rtf
 COMPACT_RTF            = NO
 RTF_HYPERLINKS         = NO
-RTF_STYLESHEET_FILE    = 
-RTF_EXTENSIONS_FILE    = 
+RTF_STYLESHEET_FILE    =
+RTF_EXTENSIONS_FILE    =
 #---------------------------------------------------------------------------
 # configuration options related to the man page output
 #---------------------------------------------------------------------------
@@ -187,8 +187,8 @@ MAN_LINKS              = NO
 #---------------------------------------------------------------------------
 GENERATE_XML           = NO
 XML_OUTPUT             = xml
-XML_SCHEMA             = 
-XML_DTD                = 
+XML_SCHEMA             =
+XML_DTD                =
 XML_PROGRAMLISTING     = YES
 #---------------------------------------------------------------------------
 # configuration options for the AutoGen Definitions output
@@ -200,37 +200,37 @@ GENERATE_AUTOGEN_DEF   = NO
 GENERATE_PERLMOD       = NO
 PERLMOD_LATEX          = NO
 PERLMOD_PRETTY         = YES
-PERLMOD_MAKEVAR_PREFIX = 
+PERLMOD_MAKEVAR_PREFIX =
 #---------------------------------------------------------------------------
-# Configuration options related to the preprocessor   
+# Configuration options related to the preprocessor
 #---------------------------------------------------------------------------
 ENABLE_PREPROCESSING   = YES
 MACRO_EXPANSION        = YES
 EXPAND_ONLY_PREDEF     = YES
 SEARCH_INCLUDES        = YES
-INCLUDE_PATH           = 
-INCLUDE_FILE_PATTERNS  = 
+INCLUDE_PATH           =
+INCLUDE_FILE_PATTERNS  =
 PREDEFINED             =  __attribute__(x)=
-EXPAND_AS_DEFINED      = 
+EXPAND_AS_DEFINED      =
 SKIP_FUNCTION_MACROS   = YES
 #---------------------------------------------------------------------------
-# Configuration::additions related to external references   
+# Configuration::additions related to external references
 #---------------------------------------------------------------------------
-TAGFILES               = 
-GENERATE_TAGFILE       = 
+TAGFILES               =
+GENERATE_TAGFILE       =
 ALLEXTERNALS           = NO
 EXTERNAL_GROUPS        = YES
 PERL_PATH              = /usr/bin/perl
 #---------------------------------------------------------------------------
-# Configuration options related to the dot tool   
+# Configuration options related to the dot tool
 #---------------------------------------------------------------------------
 CLASS_DIAGRAMS         = NO #
-MSCGEN_PATH            = 
+MSCGEN_PATH            =
 HIDE_UNDOC_RELATIONS   = YES
 HAVE_DOT               = YES #
 DOT_FONTNAME           = FreeSans
 DOT_FONTSIZE           = 10
-DOT_FONTPATH           = 
+DOT_FONTPATH           =
 CLASS_GRAPH            = NO #
 COLLABORATION_GRAPH    = NO #
 GROUP_GRAPHS           = NO #
@@ -243,8 +243,8 @@ CALLER_GRAPH           = NO
 GRAPHICAL_HIERARCHY    = YES
 DIRECTORY_GRAPH        = NO #
 DOT_IMAGE_FORMAT       = png
-DOT_PATH               = 
-DOTFILE_DIRS           = 
+DOT_PATH               =
+DOTFILE_DIRS           =
 DOT_GRAPH_MAX_NODES    = 50
 MAX_DOT_GRAPH_DEPTH    = 0
 DOT_TRANSPARENT        = YES #
diff --git a/doc/doxygen/src/mainpage.txt b/doc/doxygen/src/mainpage.txt
index bcffeac4eddeab15775c6b044cb55b9fcaa6025f..656baaf7f8915dd0a752d7e8d201e97073bcbb27 100644
--- a/doc/doxygen/src/mainpage.txt
+++ b/doc/doxygen/src/mainpage.txt
@@ -195,5 +195,5 @@
  * \section info_sec Community
  *
  * Whether you are looking for help with writing an application for RIOT, want to learn more about it, or just stay in the loop you are invited to join the RIOT-users mailing list. For developers who want to participate and contribute to the kernel development or integrate new MCU and platform support the [RIOT-devel mailing list](http://lists.riot-os.org/mailman/listinfo/devel) is the right place.
- * 
+ *
  */
diff --git a/doc/doxygen/src/riot-header.html b/doc/doxygen/src/riot-header.html
index f54fa45185cd2f011e5dcfe7a67e9266f922652b..489d8ea9cf9495bb07af64a56b6f14728ad059b9 100644
--- a/doc/doxygen/src/riot-header.html
+++ b/doc/doxygen/src/riot-header.html
@@ -8,4 +8,3 @@
         <link href="tabs.css" rel="stylesheet" type="text/css">
     </head>
     <body>
-
diff --git a/doc/doxygen/src/riot.css b/doc/doxygen/src/riot.css
index 54dfc81a24b4383282bc1e3609ea8d0368c3a761..d4dc31e686f200944fe368e49cd5fd0ecd747f8a 100644
--- a/doc/doxygen/src/riot.css
+++ b/doc/doxygen/src/riot.css
@@ -185,7 +185,7 @@ TD.indexvalue {
 	border: 1px solid #CCCCCC;
 }
 TR.memlist {
-   background-color: #f0f0f0; 
+   background-color: #f0f0f0;
 }
 P.formulaDsp { text-align: center; }
 IMG.formulaDsp { }
@@ -352,8 +352,8 @@ hr {
   font-size: 80%;
   color: #606060;
   font-weight: normal;
-} 
-.memnav { 
+}
+.memnav {
   background-color: #e8eef2;
   border: 1px solid #84b0c7;
   text-align: center;
diff --git a/doc/riot.css b/doc/riot.css
index a8f863bae71cfd0551f1fbd57f665d05617056bb..4a59c8887f0d8785346075b3d8daecaf0f448cb1 100644
--- a/doc/riot.css
+++ b/doc/riot.css
@@ -19,14 +19,14 @@ h1 {
 	color: #EEE;
 	background-color: #BC1A29;
 }
-h2 { 
+h2 {
 	font-size: 140%;
 	color: #EEE;
 	background-color: #3fa687;
 	padding: .2em 1em .2em 1em;
 	margin: .4em -10px;
 }
-h3 { 
+h3 {
 	font-size: 140%;
 	margin: .5em .2em;
 }
diff --git a/drivers/Makefile b/drivers/Makefile
index 4a5d79a370940b8aaf6ed6272b0bc8a2d247d9f9..f66acf82196543a21fa3dee239f3d1817b6c90ba 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -44,4 +44,3 @@ include $(RIOTBASE)/Makefile.base
 # remove compilation products
 clean::
 	@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
-
diff --git a/drivers/at86rf231/Makefile b/drivers/at86rf231/Makefile
index c3b9d941754d7a507f540083fe62ffb9cdc10adf..393d4fd4ec65bfe0a1d88c2b3aae8ca6742f2ac9 100644
--- a/drivers/at86rf231/Makefile
+++ b/drivers/at86rf231/Makefile
@@ -9,4 +9,3 @@ include $(RIOTBASE)/Makefile.base
 
 clean::
 	@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
-
diff --git a/drivers/at86rf231/at86rf231.c b/drivers/at86rf231/at86rf231.c
index 6207ca6b48764d493d214f3ef7e4518e6342e9dd..5cd6f8bc66d94c75262fc133a9b991483f35294a 100644
--- a/drivers/at86rf231/at86rf231.c
+++ b/drivers/at86rf231/at86rf231.c
@@ -173,4 +173,3 @@ void at86rf231_swap_fcf_bytes(uint8_t *buf)
     buf[1] = buf[2];
     buf[2] = tmp;
 }
-
diff --git a/drivers/at86rf231/at86rf231_rx.c b/drivers/at86rf231/at86rf231_rx.c
index d2ba93d12866f5dad45b5e30ca5fb5b4b9f4af42..3a1b0fe67c0158557a67a0e8699cf0da53cece7d 100644
--- a/drivers/at86rf231/at86rf231_rx.c
+++ b/drivers/at86rf231/at86rf231_rx.c
@@ -73,4 +73,3 @@ void at86rf231_rx_handler(void)
     // Read IRQ to clear it
     at86rf231_reg_read(AT86RF231_REG__IRQ_STATUS);
 }
-
diff --git a/drivers/at86rf231/at86rf231_spi.c b/drivers/at86rf231/at86rf231_spi.c
index 166bd9ee520aee10605a8b4346bc8d575a29a1ad..2a1bc3bb4460de382e1853b3c8edbb835628958d 100644
--- a/drivers/at86rf231/at86rf231_spi.c
+++ b/drivers/at86rf231/at86rf231_spi.c
@@ -63,4 +63,3 @@ void at86rf231_write_fifo(const uint8_t *data, uint8_t length)
     // End the SPI transfer
     at86rf231_spi_unselect();
 }
-
diff --git a/drivers/at86rf231/at86rf231_tx.c b/drivers/at86rf231/at86rf231_tx.c
index 3907f83c93b0807a41ab2461907c3d3dc1f360a2..b1209775abc9219f5aeb630170c44e6585f1267d 100644
--- a/drivers/at86rf231/at86rf231_tx.c
+++ b/drivers/at86rf231/at86rf231_tx.c
@@ -107,4 +107,3 @@ static void at86rf231_gen_pkt(uint8_t *buf, at86rf231_packet_t *packet)
 
     at86rf231_swap_fcf_bytes(buf);
 }
-
diff --git a/drivers/cc110x/Makefile b/drivers/cc110x/Makefile
index 46b179742b6a3e0ea5d8958176a1fa0e27edb137..da9308bbd52828163d725585287e5d69aeffd5e1 100644
--- a/drivers/cc110x/Makefile
+++ b/drivers/cc110x/Makefile
@@ -1,4 +1,3 @@
 MODULE =cc110x
 
 include $(MAKEBASE)/Makefile.base
-
diff --git a/drivers/cc110x/cc1100_phy.c b/drivers/cc110x/cc1100_phy.c
index cfe0f5f6bbcaed7fb7c1bc2d1798d2f8ab692d70..f8f69b13d6ed78d7a1084c88b8b675bde01c41a9 100644
--- a/drivers/cc110x/cc1100_phy.c
+++ b/drivers/cc110x/cc1100_phy.c
@@ -287,14 +287,14 @@ int cc1100_phy_calc_wor_settings(uint16_t millis)
     double t_packet_interval = (double)((T_PACKET_INTERVAL) / 1000.0);
 
     /* Calculate minimal T_EVENT0:
-      
+
        (1) t_rx_time > t_packet_interval
        (2) t_rx_time = T_EVENT0 / 2 ^ (RX_TIME + 3 + WOR_RES)
        ------------------------------------------------------
        with RX_TIME = 0 && WOR_RES = 0 => event0_min > t_packet_interval * 8
-      
+
        t_packet_interval = 3.8 ms (@400kbit/s)
-      
+
        => event0_min = Math.ceil(3.8 * 8) + 10 */
     uint16_t event0_min = (uint16_t)(t_packet_interval * 8) + 1 + 10;
 
diff --git a/drivers/cc110x_ng/Makefile b/drivers/cc110x_ng/Makefile
index 66dec9d5f2e550991055b605c4f05abc0cdd0abf..7cd2e223ba9ef1b9149d423c72ce0ec9832e87a3 100644
--- a/drivers/cc110x_ng/Makefile
+++ b/drivers/cc110x_ng/Makefile
@@ -18,4 +18,3 @@ include $(RIOTBASE)/Makefile.base
 
 clean::
 	@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
-
diff --git a/drivers/cc110x_ng/cc110x-defaultSettings.c b/drivers/cc110x_ng/cc110x-defaultSettings.c
index 3d9b3de52993f0c29627fe0b0f38029b9f84866b..b428d1a4d32994b0a87e7ea74844ce36b5cfc299 100644
--- a/drivers/cc110x_ng/cc110x-defaultSettings.c
+++ b/drivers/cc110x_ng/cc110x-defaultSettings.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013 INRIA 
+ * Copyright (C) 2013 INRIA
  *
  * This file is subject to the terms and conditions of the GNU Lesser General
  * Public License. See the file LICENSE in the top level directory for more
diff --git a/drivers/cc110x_ng/cc110x-internal.h b/drivers/cc110x_ng/cc110x-internal.h
index 1c315456768659dfc80969e264b1a3ed44932ba3..b1b1b6c3321902e7302ffb481bfb4f82190c61ba 100644
--- a/drivers/cc110x_ng/cc110x-internal.h
+++ b/drivers/cc110x_ng/cc110x-internal.h
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2008 Freie Universität Berlin
- * Copyright (C) 2013 INRIA 
+ * Copyright (C) 2013 INRIA
  *
  * This file is subject to the terms and conditions of the GNU Lesser General
  * Public License. See the file LICENSE in the top level directory for more
diff --git a/drivers/cc110x_ng/cc110x-rx.c b/drivers/cc110x_ng/cc110x-rx.c
index 0859e21318d524757ca8d94408b0afafc1fa858c..6af93ec01f94898be263aec7b69db25dc06866de 100644
--- a/drivers/cc110x_ng/cc110x-rx.c
+++ b/drivers/cc110x_ng/cc110x-rx.c
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2009 Freie Universität Berlin
- * Copyright (C) 2013 INRIA 
+ * Copyright (C) 2013 INRIA
  *
  * This file is subject to the terms and conditions of the GNU Lesser General
  * Public License. See the file LICENSE in the top level directory for more
diff --git a/drivers/cc110x_ng/cc110x-tx.c b/drivers/cc110x_ng/cc110x-tx.c
index 3b6761a2483471220ca0d3dd7f5ea9eff48e5abf..6db9940e5d64f90223bb489d69890d4a52c2f80d 100644
--- a/drivers/cc110x_ng/cc110x-tx.c
+++ b/drivers/cc110x_ng/cc110x-tx.c
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2009 Freie Universität Berlin
- * Copyright (C) 2013 INRIA 
+ * Copyright (C) 2013 INRIA
  *
  * This file is subject to the terms and conditions of the GNU Lesser General
  * Public License. See the file LICENSE in the top level directory for more
@@ -92,4 +92,3 @@ int8_t cc110x_send(cc110x_packet_t *packet)
 
     return size;
 }
-
diff --git a/drivers/cc110x_ng/cc110x.c b/drivers/cc110x_ng/cc110x.c
index 41496ee22a1658b4e7eb0669b73b86b201ba51eb..b54e306c07705c73ce631882b082d2737e5fc4f4 100644
--- a/drivers/cc110x_ng/cc110x.c
+++ b/drivers/cc110x_ng/cc110x.c
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2013 Freie Universität Berlin
- * Copyright (C) 2013 INRIA 
+ * Copyright (C) 2013 INRIA
  *
  * This file is subject to the terms and conditions of the GNU Lesser General
  * Public License. See the file LICENSE in the top level directory for more
@@ -204,15 +204,15 @@ char *cc110x_get_marc_state(void)
      * Only goes to IDLE if state was RX/WOR */
     cc110x_wakeup_from_rx();
 
-    /* Have to put radio back to WOR/RX if old radio state 
+    /* Have to put radio back to WOR/RX if old radio state
      * was WOR/RX, otherwise no action is necessary */
     if (old_state == RADIO_WOR || old_state == RADIO_RX) {
         cc110x_switch_to_rx();
     }
 
     switch(state) {
-            /* Note: it is not possible to read back the SLEEP or XOFF state numbers 
-             * because setting CSn low will make the chip enter the IDLE mode from the 
+            /* Note: it is not possible to read back the SLEEP or XOFF state numbers
+             * because setting CSn low will make the chip enter the IDLE mode from the
              * SLEEP (0) or XOFF (2) states. */
         case 1:
             return "IDLE";
diff --git a/drivers/cc110x_ng/spi/Makefile b/drivers/cc110x_ng/spi/Makefile
index 5919222a885680b357a8ce1521bf179b9a8c510c..d73874dec2dcab2e5d138d6aabd4caf9899ba5fd 100644
--- a/drivers/cc110x_ng/spi/Makefile
+++ b/drivers/cc110x_ng/spi/Makefile
@@ -3,4 +3,3 @@ MODULE =cc110x_spi
 INCLUDES += -I$(RIOTBASE)/drivers/cc110x_ng
 
 include $(MAKEBASE)/Makefile.base
-
diff --git a/drivers/cc2420/Makefile b/drivers/cc2420/Makefile
index 786dea6b2d579d5e57b5760828b0c73fe0c63199..a9e952177f22b66927add5d85b6a948742a03535 100644
--- a/drivers/cc2420/Makefile
+++ b/drivers/cc2420/Makefile
@@ -9,4 +9,3 @@ include $(RIOTBASE)/Makefile.base
 
 clean::
 	@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
-
diff --git a/drivers/doc.txt b/drivers/doc.txt
index dc1878227aba147523c2eda38abd064f833339b0..025bcba8cbc6c671085e4b4bcb300e595adcbe0f 100644
--- a/drivers/doc.txt
+++ b/drivers/doc.txt
@@ -9,6 +9,6 @@
 /**
  * @defgroup    drivers Drivers
  * @brief       Drivers for external devices as radios, sensors, memory etc.
- * 
+ *
  * The module contains all kind of drivers for specific devices.
  */
diff --git a/drivers/include/at86rf231.h b/drivers/include/at86rf231.h
index 65ef56374ae9a8de8d34f41fcddb990762219e16..58b783d0e32a0598d1a58a08feede342e233406d 100644
--- a/drivers/include/at86rf231.h
+++ b/drivers/include/at86rf231.h
@@ -67,4 +67,3 @@ enum {
 extern at86rf231_packet_t at86rf231_rx_buffer[AT86RF231_RX_BUF_SIZE];
 
 #endif
-
diff --git a/drivers/include/cc110x_ng/cc110x-config.h b/drivers/include/cc110x_ng/cc110x-config.h
index 6568cf117aeb45bcdce8eb558dbb397813012937..c518da699459c6eca74d7c544b103762f325eb23 100644
--- a/drivers/include/cc110x_ng/cc110x-config.h
+++ b/drivers/include/cc110x_ng/cc110x-config.h
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2009 Freie Universität Berlin
- * Copyright (C) 2013 INRIA 
+ * Copyright (C) 2013 INRIA
  *
  * This file is subject to the terms and conditions of the GNU Lesser General
  * Public License. See the file LICENSE in the top level directory for more
diff --git a/drivers/include/cc110x_ng/cc110x-interface.h b/drivers/include/cc110x_ng/cc110x-interface.h
index ca35e310ec4f66c0f95372fb23399e361b8637af..5b82fc633a233adb34229138926494788cb04b67 100644
--- a/drivers/include/cc110x_ng/cc110x-interface.h
+++ b/drivers/include/cc110x_ng/cc110x-interface.h
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2009 Freie Universität Berlin
- * Copyright (C) 2013 INRIA 
+ * Copyright (C) 2013 INRIA
  *
  * This file is subject to the terms and conditions of the GNU Lesser General
  * Public License. See the file LICENSE in the top level directory for more
diff --git a/drivers/include/cc2420.h b/drivers/include/cc2420.h
index 08ec39612b26b09f3f4c3aa00bbf6a89e100de30..13f1eabed3454d390c4d002991e00a9365950c53 100644
--- a/drivers/include/cc2420.h
+++ b/drivers/include/cc2420.h
@@ -242,4 +242,3 @@ extern cc2420_packet_t cc2420_rx_buffer[CC2420_RX_BUF_SIZE];
 
 
 #endif
-
diff --git a/drivers/include/diskio.h b/drivers/include/diskio.h
index 5ef1001fd883da53141448df58ff1413299c6fa6..61355543f85fa5f661ea8cbfc3d7e5505aca1bc4 100644
--- a/drivers/include/diskio.h
+++ b/drivers/include/diskio.h
@@ -6,7 +6,7 @@
  * @defgroup    diskio Disk IO Driver
  * @ingroup     drivers
  * @brief       Low level disk interface
- * 
+ *
  * The connection between the MCU and the SRF08 is based on the i2c-interface.
  *
  * @{
diff --git a/drivers/include/lm75a-temp-sensor.h b/drivers/include/lm75a-temp-sensor.h
index fbf8039591654477051ffaa321f6e160b3407ee0..9af33e42f8807c5440363ee87f67f15d79f9e007 100644
--- a/drivers/include/lm75a-temp-sensor.h
+++ b/drivers/include/lm75a-temp-sensor.h
@@ -4,12 +4,12 @@
  * This source code is licensed under the LGPLv2 license,
  * See the file LICENSE for more details.
  */
- 
+
 /**
  * @defgroup    lm75a LM75A
  * @ingroup     drivers
  * @brief       Driver for the LM75A digital temperature sensor and thermal watchdog
- * 
+ *
  * The connection between the MCU and the LM75A is based on the i2c-interface.
  *
  * @{
diff --git a/drivers/include/srf02-ultrasonic-sensor.h b/drivers/include/srf02-ultrasonic-sensor.h
index 95ab003a0b7e6fa39a76f8f54a2760f54760999f..0af64596ce8d2bb525dd3b48ff972fc0bb8b704c 100644
--- a/drivers/include/srf02-ultrasonic-sensor.h
+++ b/drivers/include/srf02-ultrasonic-sensor.h
@@ -3,13 +3,13 @@
  *
  * This source code is licensed under the LGPLv2 license,
  * See the file LICENSE for more details.
- */ 
+ */
 
 /**
  * @defgroup    srf02 SRF02
  * @ingroup     drivers
  * @brief       Driver for the SRF02 ultrasonic range sensor
- * 
+ *
  * The connection between the MCU and the SRF08 is based on the i2c-interface.
  *
  * @{
diff --git a/drivers/include/srf08-ultrasonic-sensor.h b/drivers/include/srf08-ultrasonic-sensor.h
index eab68fd2ab69ddfbca683ef4a6bba6c94818ac05..4371d1a719534ec7e6c835f39730e82012f1d757 100644
--- a/drivers/include/srf08-ultrasonic-sensor.h
+++ b/drivers/include/srf08-ultrasonic-sensor.h
@@ -4,14 +4,14 @@
  * This source code is licensed under the LGPLv2 license,
  * See the file LICENSE for more details.
  */
- 
+
 /**
  * @defgroup    srf08 SRF08
  * @ingroup     drivers
  * @brief       Driver for the SRF08 ultrasonic range sensor
- * 
+ *
  * The connection between the MCU and the SRF08 is based on the i2c-interface.
- * 
+ *
  * @{
  *
  * @file
@@ -64,8 +64,8 @@ bool srf08_init(uint8_t i2c_interface, uint32_t baud_rate);
  *              range-finder.
  *              The ranging results are given over the RS232-Interface.
  *
- * @param[in] ranging_mode  there are three real ranging modes, which return 
- *                          the result in inches, centimeters or microseconds. 
+ * @param[in] ranging_mode  there are three real ranging modes, which return
+ *                          the result in inches, centimeters or microseconds.
  *                          Another set of three fake ranging modes do the same
  *                          but without transmitting the burst.
  *
@@ -111,10 +111,10 @@ uint8_t srf08_get_gain(void);
 
 
 /**
- * @brief       Get all distances measured from the SRF08 ultrasonic sensor. 
- *              The results of a ranging can be returned in inches, centimeters 
- *              or microseconds. The SRF08 can detect up to targets. 
- *              This function prints the distance values over the rs232 
+ * @brief       Get all distances measured from the SRF08 ultrasonic sensor.
+ *              The results of a ranging can be returned in inches, centimeters
+ *              or microseconds. The SRF08 can detect up to targets.
+ *              This function prints the distance values over the rs232
  *              interface
  *
  * @param[in] range_array   a pointer to a buffer holding the ranging results.
diff --git a/drivers/lm75a/Makefile b/drivers/lm75a/Makefile
index b9c7862ef585013c57b237f04f6463df360e0019..f96cb2a3d60e1da96f52d83e4de3543617028b4e 100644
--- a/drivers/lm75a/Makefile
+++ b/drivers/lm75a/Makefile
@@ -1,3 +1,2 @@
 MODULE =lm75a
 include $(MAKEBASE)/Makefile.base
-
diff --git a/drivers/lm75a/lm75a-temp-sensor.c b/drivers/lm75a/lm75a-temp-sensor.c
index 557ee845b31f3a5012bb71eed3e1f85a6c4b7790..ff5a8cbd02c8c2e8c9e1136aca0965e63487a815 100644
--- a/drivers/lm75a/lm75a-temp-sensor.c
+++ b/drivers/lm75a/lm75a-temp-sensor.c
@@ -317,4 +317,3 @@ void lm75A_start_sensor_sampling(void (*handler)(void))
         hwtimer_wait(HWTIMER_TICKS(100000));
     }
 }
-
diff --git a/drivers/ltc4150/Makefile b/drivers/ltc4150/Makefile
index c87af4187d4d566777bd95cdaccc64c0a9d5a40b..29b91b361afda077b498dec684956b3221ea4d40 100644
--- a/drivers/ltc4150/Makefile
+++ b/drivers/ltc4150/Makefile
@@ -1,3 +1,2 @@
 MODULE =ltc4150
 include $(MAKEBASE)/Makefile.base
-
diff --git a/drivers/sht11/Makefile b/drivers/sht11/Makefile
index 71ca4388be1e554322b1680d667825cd82a3a9ef..1f88712aa4da5aa4d6d34a6e673ba7291ed0b495 100644
--- a/drivers/sht11/Makefile
+++ b/drivers/sht11/Makefile
@@ -1,3 +1,2 @@
 MODULE =sht11
 include $(MAKEBASE)/Makefile.base
-
diff --git a/drivers/srf02/Makefile b/drivers/srf02/Makefile
index 55d8977687f95bf61c9b9220d4853b4c408c5972..31ac029367330b7c4175086c8086f6eaa97fb506 100644
--- a/drivers/srf02/Makefile
+++ b/drivers/srf02/Makefile
@@ -1,3 +1,2 @@
 MODULE =srf02
 include $(MAKEBASE)/Makefile.base
-
diff --git a/drivers/srf08/Makefile b/drivers/srf08/Makefile
index 7980d3ed2b517583da6ea643ab38dedc5abd8641..92e653175490155d5f4813c6e27023da05009765 100644
--- a/drivers/srf08/Makefile
+++ b/drivers/srf08/Makefile
@@ -1,3 +1,2 @@
 MODULE =srf08
 include $(MAKEBASE)/Makefile.base
-
diff --git a/drivers/srf08/srf08-ultrasonic-sensor.c b/drivers/srf08/srf08-ultrasonic-sensor.c
index ab35e62421ef4e65492d58d360df4e9637455d0f..5a6f71521c6f7f1c25147f11693c51451a1c6a88 100644
--- a/drivers/srf08/srf08-ultrasonic-sensor.c
+++ b/drivers/srf08/srf08-ultrasonic-sensor.c
@@ -160,4 +160,3 @@ void srf08_start_ranging(uint8_t ranging_mode)
         }
     }
 }
-
diff --git a/examples/ccn-lite-client/HOWTO b/examples/ccn-lite-client/HOWTO
index 3de42cf767173a9690ae803be642f043da0fbf3c..5c8bd19f6899e126dcbdc041748d77068fc6ccd8 100644
--- a/examples/ccn-lite-client/HOWTO
+++ b/examples/ccn-lite-client/HOWTO
@@ -29,7 +29,7 @@ SHELL 1                                                                        |
 advanced forward (needs three [four] shells)
 ====================================================
 
-SHELL 1                                                                     | SHELL 2                                    | SHELL 3                               
+SHELL 1                                                                     | SHELL 2                                    | SHELL 3
 ----------------------------------------------------------------------------------------------------------------------------------------------------------------
 0. create tap devices: *./cpu/native/tapsetup.sh create 3*                  |                                            |
 1. build ccn-lite-client: *make -B clean all*                               |                                            | build ccn-lite: make clean all
diff --git a/examples/rpl_udp/Makefile b/examples/rpl_udp/Makefile
index f6c82e3e294e1deb4cbb480e895e98dbe46aa458..13048094da85d4451ebb4df6b3315b8932b01c7c 100644
--- a/examples/rpl_udp/Makefile
+++ b/examples/rpl_udp/Makefile
@@ -40,8 +40,8 @@ USEMODULE += auto_init
 USEMODULE += shell
 USEMODULE += shell_commands
 USEMODULE += posix
-USEMODULE += ps 
-USEMODULE += vtimer 
+USEMODULE += ps
+USEMODULE += vtimer
 ifeq ($(strip $(BOARD)),native)
 	USEMODULE += nativenet
 else
diff --git a/examples/rpl_udp/README.md b/examples/rpl_udp/README.md
index e40f006549e19fedbddc6c558fe2448576fa63e8..afb0aa0c36f913891d008e9c75a0012a6c221ffb 100644
--- a/examples/rpl_udp/README.md
+++ b/examples/rpl_udp/README.md
@@ -1,7 +1,7 @@
 #tl;dr
 
 command order:
-	
+
 	set <node-id>
 	init [r|n]
 	server
@@ -20,17 +20,17 @@ Set up a bridge for *two* tap devices to communicate over
 # rpl init
 
 Run the first node
-	
+
 	sudo ./bin/native/rpl_udp.elf tap0
 
-Type ``help`` to see the commands available.  
+Type ``help`` to see the commands available.
 Now you need set the node ID. This ID will be used by other nodes to address this node.
 
 	> set 1
     set 1
     Set node ID to 1
 
-Init your rpl node as either a root or a node router. 
+Init your rpl node as either a root or a node router.
 
 	> init n
 	init n
@@ -38,9 +38,9 @@ Init your rpl node as either a root or a node router.
 	6LoWPAN and RPL initialized.
 	Channel set to 10
 	Destiny initialized
-	
+
 or
-	
+
 	> init r
 	init r
 	INFO: Initialize as root on address 1
@@ -51,8 +51,8 @@ or
 (It is advised to start all nodes before running the root node, because the interval for sending DIOs from the root increases over time)
 A few seconds withing running, setting and initializing your second node, the nodes will automatically start to exchange control traffic. You should be seeing output similar to the following:
 
-	41 CC FC 34 12 36 12 00 FF FE 00 00 02 36 12 00 FF FE 00 00 01 7A 33 3A 9B 03 F9 90 00 00 04 00 00 80 
-	IPv6 datagram received (next header: 3A) from fe80:0000:0000:0000:3612:00ff:fe00:0001 	 ICMP type: 5A 	 ICMP code: 08 
+	41 CC FC 34 12 36 12 00 FF FE 00 00 02 36 12 00 FF FE 00 00 01 7A 33 3A 9B 03 F9 90 00 00 04 00 00 80
+	IPv6 datagram received (next header: 3A) from fe80:0000:0000:0000:3612:00ff:fe00:0001 	 ICMP type: 5A 	 ICMP code: 08
 	Received packet from ID 1
 		Length:	34
 		Src:	1
diff --git a/examples/rpl_udp/demo.h b/examples/rpl_udp/demo.h
index 2b831011b4612ccfafb1478bc5297b97cb6c51ae..1c14977e2bc2e02a17dd1a504e2ca118a78d405f 100644
--- a/examples/rpl_udp/demo.h
+++ b/examples/rpl_udp/demo.h
@@ -40,7 +40,7 @@ void rpl_udp_loop(char *unused);
 void rpl_udp_table(char *unused);
 
 /**
- * @brief   Shows the dodag 
+ * @brief   Shows the dodag
  *
  * @param[in] unused  Guess what
  */
diff --git a/examples/rpl_udp/udp.c b/examples/rpl_udp/udp.c
index c604c8fe4bf556e50d8df6e910dc21fd79b42e48..0515faebb7adeaaa65a15821c9606dbced269038 100644
--- a/examples/rpl_udp/udp.c
+++ b/examples/rpl_udp/udp.c
@@ -125,5 +125,3 @@ void udp_send(char *str)
 
     destiny_socket_close(sock);
 }
-
-
diff --git a/pkg/PORTING b/pkg/PORTING
index 773a5206fba834472c5fd4d490fe4ee3ff9a493f..3a535146dff26693f33319b9799109a08df513db 100644
--- a/pkg/PORTING
+++ b/pkg/PORTING
@@ -1,5 +1,5 @@
 This directory provides some porting information for libraries and programs to
-use with RIOT (to build an external module). If you'd like to add a package to 
+use with RIOT (to build an external module). If you'd like to add a package to
 RIOT you need to add a directory with the name of your package to this directory.
 Your directory should contain at least two files:
  * patch.txt    - Your patch of the upstream project of the package to make it
diff --git a/pkg/libcoap/Makefile b/pkg/libcoap/Makefile
index 1c1ba3921166d0de0be4b4d74d0920404acfa3d1..089d1c223036232e7d3b4248344c48a79fc94af4 100644
--- a/pkg/libcoap/Makefile
+++ b/pkg/libcoap/Makefile
@@ -13,11 +13,11 @@ endif
 
 .PHONY: all clean patch reset
 
-all: patch 
+all: patch
 	make -C $(CURDIR)/$(PKG_NAME)
 
 patch: $(CURDIR)/$(PKG_NAME)/Makefile
-	
+
 $(CURDIR)/$(PKG_NAME)/Makefile: $(CURDIR)/$(PKG_NAME)
 	cd $< && git apply ../patch.txt
 
diff --git a/release-2013.08.txt b/release-2013.08.txt
index 18fb07e0d05efc50dbd0b3106325c02826e2e710..11e50f20625802d277c32025a6a9dcd367e59d19 100644
--- a/release-2013.08.txt
+++ b/release-2013.08.txt
@@ -49,7 +49,7 @@ Hardware Support
     * ARM7 Freescale MC13224v (preliminary)
     * ARM Cortex-M4 STM32f407vgt6 (preliminary)
     * ARM Cortex-M3 STM32f103rey6 (preliminary)
-- radio drivers 
+- radio drivers
     * TI CC1100 and CC1101
     * TI CC2420
     * Atmel AT86RF231
@@ -59,7 +59,7 @@ Hardware Support
 
 Known Issues
 ============
-#21: Deal with stdin in bordermultiplex.c 
+#21: Deal with stdin in bordermultiplex.c
     Not all supported platforms provide a stdin in the current release.
     However, the implementation of the 6LoWPAN border router won't work
     without stdin.
@@ -99,5 +99,5 @@ License
   Free Software Foundation.
 * Some external sources, especially files developed by SICS are published under
   a separate license.
-  
+
 All code files contain licensing information.
diff --git a/sys/Makefile b/sys/Makefile
index 95cbae2d592db1c4dbc39e1893dc19a6bf324e53..f87aff2e080c2db4ce00aa5db9bc879c9d04bf96 100644
--- a/sys/Makefile
+++ b/sys/Makefile
@@ -94,7 +94,7 @@ ifneq (,$(findstring ccn_lite_client,$(USEMODULE)))
     DIRS += net/ccn_lite/util
 endif
 
-all: $(BINDIR)$(MODULE).a 
+all: $(BINDIR)$(MODULE).a
 	@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;
 
 include $(RIOTBASE)/Makefile.base
@@ -102,4 +102,3 @@ include $(RIOTBASE)/Makefile.base
 # remove compilation products
 clean::
 	@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
-
diff --git a/sys/auto_init/Makefile b/sys/auto_init/Makefile
index 8b2b20a9fd5b86299c0a8e74cf2fb3d7119dd516..dc73b225e9b74e6d10730de15d9373c8b0556936 100644
--- a/sys/auto_init/Makefile
+++ b/sys/auto_init/Makefile
@@ -1,4 +1,3 @@
 MODULE = auto_init
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/sys/bloom/Makefile b/sys/bloom/Makefile
index 998fbc6c3705c5ff1ec463744afd04ec3f401d36..67d89889255a990ad5f9e1535ee579590c96d0fe 100644
--- a/sys/bloom/Makefile
+++ b/sys/bloom/Makefile
@@ -1,4 +1,3 @@
 MODULE = bloom
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/sys/bloom/bloom.c b/sys/bloom/bloom.c
index 02faf46eec8b9dc14c2a0fded13ffa9b4b338c6f..e8be005f63b553d100958334646cecc3ee30bb02 100644
--- a/sys/bloom/bloom.c
+++ b/sys/bloom/bloom.c
@@ -100,4 +100,3 @@ bool bloom_check(struct bloom_t *bloom, const uint8_t *buf, size_t len)
 
     return true; /* ? */
 }
-
diff --git a/sys/config/Makefile b/sys/config/Makefile
index 93a842ac894d48d7e2c856736b3d54eae01bdce0..6e6ccce0dde3c3c4414e00de6be974787a3d46cb 100644
--- a/sys/config/Makefile
+++ b/sys/config/Makefile
@@ -1,4 +1,3 @@
 MODULE =config
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/sys/crypto/3des/3des.c b/sys/crypto/3des/3des.c
index 37a7ccaba13d7c33557f981c38f0ddfe2eeb261c..09426a0169fbba2b72f837a55508f8af42615cf4 100644
--- a/sys/crypto/3des/3des.c
+++ b/sys/crypto/3des/3des.c
@@ -529,4 +529,3 @@ static uint8_t des3_key_setup(const uint8_t *key, struct des3_key_s *dkey)
     deskey(key + 16, 1, dkey->dk[0]);
     return 1;
 }
-
diff --git a/sys/crypto/3des/Makefile b/sys/crypto/3des/Makefile
index f44efaed998d6eae2cf985ee7b716a74fe90a65a..d049bc5d83b9bc0e84e52061cc9595060aa8ba75 100644
--- a/sys/crypto/3des/Makefile
+++ b/sys/crypto/3des/Makefile
@@ -6,4 +6,3 @@ DEP = $(SRC:%.c=$(BINDIR)%.d)
 MODULE = crypto_3des
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/sys/crypto/aes/Makefile b/sys/crypto/aes/Makefile
index 867aaf1c28b199bfcd67e24a7d8ee1cb821ffe1c..f387f13b0223ed0fa02149939a2b60459c705951 100644
--- a/sys/crypto/aes/Makefile
+++ b/sys/crypto/aes/Makefile
@@ -6,4 +6,3 @@ DEP = $(SRC:%.c=$(BINDIR)%.d)
 MODULE = crypto_aes
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/sys/crypto/rc5/Makefile b/sys/crypto/rc5/Makefile
index 3ae9c079bdb88e22eb5404d6cf9458767891873a..38207c4cc33a3033ad17b7c3117e113971bbff0f 100644
--- a/sys/crypto/rc5/Makefile
+++ b/sys/crypto/rc5/Makefile
@@ -6,4 +6,3 @@ DEP = $(SRC:%.c=$(BINDIR)%.d)
 MODULE = crypto_rc5
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/sys/crypto/sha256/Makefile b/sys/crypto/sha256/Makefile
index 3642252a8f5e4818d79639207bc8dc70b0007dd5..9794942fc1b9de565129d6154c81ff8f2bdc773b 100644
--- a/sys/crypto/sha256/Makefile
+++ b/sys/crypto/sha256/Makefile
@@ -6,4 +6,3 @@ DEP = $(SRC:%.c=$(BINDIR)%.d)
 MODULE = crypto_sha256
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/sys/crypto/sha256/sha256.c b/sys/crypto/sha256/sha256.c
index 1c915f53868f59e3af6ed327259623a113a31d0f..89f81f6213dc5cbdce5e4ea9587a4cef07d79560 100644
--- a/sys/crypto/sha256/sha256.c
+++ b/sys/crypto/sha256/sha256.c
@@ -37,7 +37,7 @@
  * @author      Colin Percival
  * @author      Christian Mehlis
  * @author      Rene Kijewski
- * 
+ *
  * @}
  */
 
diff --git a/sys/crypto/skipjack/Makefile b/sys/crypto/skipjack/Makefile
index 9f71e323691d3e5ddc30e7e70d3ab844041d34e3..87f66d593ef683df9fa0d7afe8a0f82389cfd703 100644
--- a/sys/crypto/skipjack/Makefile
+++ b/sys/crypto/skipjack/Makefile
@@ -6,4 +6,3 @@ DEP = $(SRC:%.c=$(BINDIR)%.d)
 MODULE = crypto_skipjack
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/sys/crypto/twofish/Makefile b/sys/crypto/twofish/Makefile
index 00cf5cccd8582535851e83cdd51e111eddd1ca38..7cfdd35787790978b2cdf9ccafaa58998ed92ae4 100644
--- a/sys/crypto/twofish/Makefile
+++ b/sys/crypto/twofish/Makefile
@@ -6,4 +6,3 @@ DEP = $(SRC:%.c=$(BINDIR)%.d)
 MODULE = crypto_twofish
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/sys/include/crypto/aes.h b/sys/include/crypto/aes.h
index eb58112a6bb751a7b9452833689b3111a450c334..e5ccd67f5045388123e2c86d8f5e0ccf45e01629 100644
--- a/sys/include/crypto/aes.h
+++ b/sys/include/crypto/aes.h
@@ -8,7 +8,7 @@
 /**
  * @ingroup     sys_crypto
  * @{
- * 
+ *
  * @file        aes.h
  * @brief       Headers for the implementation of the AES cipher-algorithm
  *
diff --git a/sys/include/crypto/cbcmode.h b/sys/include/crypto/cbcmode.h
index 088f1b6036e8d9452b9ef3ceede1f9cb6cf05d91..22a86ad9d90caeff0759ac9590f08d549a4e8e4a 100644
--- a/sys/include/crypto/cbcmode.h
+++ b/sys/include/crypto/cbcmode.h
@@ -8,7 +8,7 @@
 /**
  * @ingroup     sys_crypto
  * @{
- * 
+ *
  * @file        cbcmode.h
  * @brief       Headers of the implementation of the CBC Mode of Operation
  *
diff --git a/sys/include/crypto/sha256.h b/sys/include/crypto/sha256.h
index 3aa0ec8858b67739737c8ffc661c2eef6ffe781d..62bbbdeaf45745ec249a1db5e6a06eb7e9e8fc6e 100644
--- a/sys/include/crypto/sha256.h
+++ b/sys/include/crypto/sha256.h
@@ -26,8 +26,8 @@
  *
  * $FreeBSD: src/lib/libmd/sha256.h,v 1.1.2.1 2005/06/24 13:32:25 cperciva Exp $
  */
- 
- 
+
+
 /**
  * @defgroup    sys_sha256 SHA264
  * @ingroup     sys
diff --git a/sys/include/crypto/skipjack.h b/sys/include/crypto/skipjack.h
index 9191053241560a87c78c37465c664e35a13ba40e..cf68cb4e50e910620b989de9c21cb4e2cb41fb31 100644
--- a/sys/include/crypto/skipjack.h
+++ b/sys/include/crypto/skipjack.h
@@ -8,7 +8,7 @@
 /**
  * @ingroup     sys_crypto
  * @{
- * 
+ *
  * @file        skipjack.h
  * @brief       Headers for the implementation of the SkipJack cipher-algorithm
  *
@@ -62,7 +62,7 @@
     w3 = tmp;                                \
     counter--;                               \
     skey -= 4; }                             \
- 
+
 // B-RULE:
 #define RULE_B(skey, w1, w2, w3, w4, counter, tmp, bLeft, bRight ) { \
     tmp = w1;                                \
diff --git a/sys/include/ps.h b/sys/include/ps.h
index 824bd9949bd2655002f1623d0eaf205e8cfc46f1..2b755dc184fe6d722603168a8a901f9a40c888f8 100644
--- a/sys/include/ps.h
+++ b/sys/include/ps.h
@@ -4,7 +4,7 @@
  * @ingroup     sys
  * @brief       Show list with all threads
  */
- 
+
 #ifndef __PS_H
 #define __PS_H
 
diff --git a/sys/include/random.h b/sys/include/random.h
index 6bebda748daa8cc4afd6186ae6cef238a08a5ad6..53199d4b2097817012e39e812251d37144996be5 100644
--- a/sys/include/random.h
+++ b/sys/include/random.h
@@ -4,7 +4,7 @@
  * @ingroup     sys
  * @brief       Random number generator
  */
- 
+
 #include <inttypes.h>
 
 #ifndef PRNG_FLOAT
diff --git a/sys/include/ringbuffer.h b/sys/include/ringbuffer.h
index 0146abe3755f5359679d1ab9f1cec09dc069967e..17c120946d17e4d42213d384a428fc18f8ba612e 100644
--- a/sys/include/ringbuffer.h
+++ b/sys/include/ringbuffer.h
@@ -1,5 +1,5 @@
 /**
- * Ringbuffer header 
+ * Ringbuffer header
  *
  * Copyright (C) 2013 Freie Universität Berlin
  * Copyright (C) 2013 INRIA
diff --git a/sys/lib/Makefile b/sys/lib/Makefile
index 59bee59b8aeeade95442edfc34ea4d7a73a0bc7e..e4a10a72c7a4284aaaa451bc9394c133751d3159 100644
--- a/sys/lib/Makefile
+++ b/sys/lib/Makefile
@@ -1,4 +1,3 @@
 MODULE =lib
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/sys/net/link_layer/ieee802154/ieee802154_frame.c b/sys/net/link_layer/ieee802154/ieee802154_frame.c
index 031ef66cfa4db9f84e7f9158b13a3da6314ac063..866cb457da1b2449e95989990b11cd57620546f5 100644
--- a/sys/net/link_layer/ieee802154/ieee802154_frame.c
+++ b/sys/net/link_layer/ieee802154/ieee802154_frame.c
@@ -1,5 +1,5 @@
 /**
- * implementation for the IEEE 802.15.4 frame format 
+ * implementation for the IEEE 802.15.4 frame format
  *
  * Copyright (C) 2013  INRIA.
  *
@@ -10,7 +10,7 @@
  * @ingroup sixlowpan
  * @{
  * @file    ieee802154_frame.c
- * @brief   IEEE 802.14.4 framing operations 
+ * @brief   IEEE 802.14.4 framing operations
  * @author  Stephan Zeisberg <zeisberg@mi.fu-berlin.de>
  * @author  Oliver Hahm <oliver.hahm@inria.fr>
  * @}
diff --git a/sys/net/link_layer/protocol-multiplex/protocol-multiplex.c b/sys/net/link_layer/protocol-multiplex/protocol-multiplex.c
index 83bd20c22fa734cb76483d725c9ab539c89cdc21..f83ed599f97357306d23f78b4ee1e527fab18621 100644
--- a/sys/net/link_layer/protocol-multiplex/protocol-multiplex.c
+++ b/sys/net/link_layer/protocol-multiplex/protocol-multiplex.c
@@ -101,7 +101,7 @@ int pm_set_handler(const pm_table_t *table, protocol_t protocol,
     return index;
 }
 /*---------------------------------------------------------------------------*/
-void pm_remove_handler(const pm_table_t *table, protocol_t protocol, 
+void pm_remove_handler(const pm_table_t *table, protocol_t protocol,
                        packet_handler_t handler)
 {
     int i;
diff --git a/sys/net/network_layer/sixlowpan/icmp.c b/sys/net/network_layer/sixlowpan/icmp.c
index 8c35bb0f6953b566f7f347d39b8a626674870d0f..0125430ea2fe2ec3625e89a826e1a4e11b081ba1 100644
--- a/sys/net/network_layer/sixlowpan/icmp.c
+++ b/sys/net/network_layer/sixlowpan/icmp.c
@@ -62,7 +62,7 @@
 #define OPT_STLLAO_MIN_LEN             	(8)
 #define OPT_STLLAO_MAX_LEN             	(16)
 /* prefix info option rfc 4.6.2 */
-#define OPT_PI_LIST_LEN                	(5) //TODO: initalwert suchen        
+#define OPT_PI_LIST_LEN                	(5) //TODO: initalwert suchen
 #define OPT_PI_TYPE                    	(3)
 #define OPT_PI_LEN                     	(4)
 #define OPT_PI_HDR_LEN                 	(32)
diff --git a/sys/net/network_layer/sixlowpan/ip.c b/sys/net/network_layer/sixlowpan/ip.c
index fb890185515d83fd86eaf2a42a00a862bbc528de..d0e46d472c211532c6ac57be3cf39b214905bd1d 100644
--- a/sys/net/network_layer/sixlowpan/ip.c
+++ b/sys/net/network_layer/sixlowpan/ip.c
@@ -151,7 +151,7 @@ uint8_t ipv6_register_packet_handler(int pid)
 {
     uint8_t i;
 
-    for (i = 0; ((i < SIXLOWIP_MAX_REGISTERED) && (sixlowip_reg[i] != pid) && 
+    for (i = 0; ((i < SIXLOWIP_MAX_REGISTERED) && (sixlowip_reg[i] != pid) &&
                  (sixlowip_reg[i] != 0)); i++) {
         ;
     }
diff --git a/sys/net/network_layer/sixlowpan/lowpan.c b/sys/net/network_layer/sixlowpan/lowpan.c
index 30b254efc47858e7c5f92208a6f522e53f2572a1..8c7201cd0647d0b8cb497747bf4ee71882563e48 100644
--- a/sys/net/network_layer/sixlowpan/lowpan.c
+++ b/sys/net/network_layer/sixlowpan/lowpan.c
@@ -1734,4 +1734,3 @@ void sixlowpan_lowpan_bootstrapping(void)
 
     icmpv6_send_router_sol(OPT_SLLAO);
 }
-
diff --git a/sys/net/routing/rpl/rpl.c b/sys/net/routing/rpl/rpl.c
index f27cfc4f95cddc49cb6bbe0a836c75e60aeed115..24b42d5fb64ce016c52397d7e38f565f7a190885 100644
--- a/sys/net/routing/rpl/rpl.c
+++ b/sys/net/routing/rpl/rpl.c
@@ -937,7 +937,7 @@ void rpl_send(ipv6_addr_t *destination, uint8_t *payload, uint16_t p_len, uint8_
     packet_length = IPV6_HDR_LEN + p_len;
 
     if (ipv6_addr_is_multicast(&ipv6_send_buf->destaddr)) {
-        sixlowpan_lowpan_sendto((ieee_802154_long_t *) &(ipv6_send_buf->destaddr.uint16[4]), 
+        sixlowpan_lowpan_sendto((ieee_802154_long_t *) &(ipv6_send_buf->destaddr.uint16[4]),
                                 (uint8_t *)ipv6_send_buf,
                                 packet_length);
     }
@@ -960,7 +960,7 @@ void rpl_send(ipv6_addr_t *destination, uint8_t *payload, uint16_t p_len, uint8_
             }
         }
 
-        sixlowpan_lowpan_sendto((ieee_802154_long_t *) &(next_hop->uint16[4]), 
+        sixlowpan_lowpan_sendto((ieee_802154_long_t *) &(next_hop->uint16[4]),
                                 (uint8_t *)ipv6_send_buf,
                                 packet_length);
     }
diff --git a/sys/ping/Makefile b/sys/ping/Makefile
index 037060005c38802b08144bdf27627032fbef114d..35193836e3d4a48ec953e9300e4cdb91e3a92ee3 100644
--- a/sys/ping/Makefile
+++ b/sys/ping/Makefile
@@ -1,4 +1,3 @@
 MODULE =ping
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/sys/posix/Makefile b/sys/posix/Makefile
index 883763c56e33c76ff1ec0fe076853fcec1523c14..f6159ae25e3886f4ed9bbede44aef4f11cb172bb 100644
--- a/sys/posix/Makefile
+++ b/sys/posix/Makefile
@@ -1,4 +1,3 @@
 MODULE =posix
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/sys/ps/Makefile b/sys/ps/Makefile
index 9fec450f4c9b874fd6d31bbb4af8cdfe5bbdc962..ea15576f57c8465cb485cd059f07ba8676a8b938 100644
--- a/sys/ps/Makefile
+++ b/sys/ps/Makefile
@@ -1,4 +1,3 @@
 MODULE =ps
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/sys/random/Makefile b/sys/random/Makefile
index 750c7bf1b26eaf87ecf876ad3c5f415ac478e5c4..5a6627f82b898154120328392aeea23433d3a47c 100644
--- a/sys/random/Makefile
+++ b/sys/random/Makefile
@@ -2,4 +2,3 @@ INCLUDES = -I../include -I$(RIOTBASE)/core/include
 MODULE = random
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/sys/semaphore/Makefile b/sys/semaphore/Makefile
index 923609e5c9bb77f2f644b168a36de17f8bc70f0c..bbca845b2c6db5c46fc824a9a99e30a65c9b096a 100644
--- a/sys/semaphore/Makefile
+++ b/sys/semaphore/Makefile
@@ -1,4 +1,3 @@
 MODULE = semaphore
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/sys/shell/Makefile b/sys/shell/Makefile
index f2cdb04897dfabb74c1e2f4d0609cc3cee00b251..131cbdfd15e585114fd3a9187cb39dbb2e77a017 100644
--- a/sys/shell/Makefile
+++ b/sys/shell/Makefile
@@ -19,4 +19,3 @@ $(BINDIR)%.o: %.c
 # remove compilation products
 clean::
 	@rm -f $(BINDIR)$(MODULE).a $(OBJ) $(DEP) $(ASMOBJ)
-	
diff --git a/sys/shell/commands/Makefile b/sys/shell/commands/Makefile
index 4792e1aee32c82818cf3e0c27fde1d66a8ee5ddc..13beb78fefe1fc09ec1019dd2007f5da05253235 100644
--- a/sys/shell/commands/Makefile
+++ b/sys/shell/commands/Makefile
@@ -36,4 +36,3 @@ DEP = $(SRC:%.c=$(BINDIR)%.d)
 MODULE =shell_commands
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/sys/shell/commands/sc_disk.c b/sys/shell/commands/sc_disk.c
index 69d2a8b5daf81135e357a96ae07a4708c58cd810..cebe67f85b61b6e82faa4005f75502c786e9da62 100644
--- a/sys/shell/commands/sc_disk.c
+++ b/sys/shell/commands/sc_disk.c
@@ -1,5 +1,5 @@
 /**
- * Shell commands for accessing storage 
+ * Shell commands for accessing storage
  *
  * Copyright (C) 2013  INRIA.
  *
@@ -10,7 +10,7 @@
  * @ingroup shell_commands
  * @{
  * @file    sc_disk.c
- * @brief   provides shell commands to access storage (like mmc) 
+ * @brief   provides shell commands to access storage (like mmc)
  * @author  Oliver Hahm <oliver.hahm@inria.fr>
  * @}
  */
diff --git a/sys/shell/commands/sc_heap.c b/sys/shell/commands/sc_heap.c
index 7cc9f7a9c3d4ca32852f0f3e894e22c1069fc8dc..233d862a80378a54ec76b0a9518f6dc2fed6d63f 100644
--- a/sys/shell/commands/sc_heap.c
+++ b/sys/shell/commands/sc_heap.c
@@ -25,4 +25,3 @@ void _heap_handler(char *unused)
     (void) unused;
     heap_stats();
 }
-
diff --git a/sys/shell/commands/sc_id.c b/sys/shell/commands/sc_id.c
index 765e190647bbe94040ee9ff5d3bfdedc4541af95..863c1a94873c255f447cf17c58e0382403c8d9a4 100644
--- a/sys/shell/commands/sc_id.c
+++ b/sys/shell/commands/sc_id.c
@@ -1,5 +1,5 @@
 /**
- * Shell commands for configuring the node id 
+ * Shell commands for configuring the node id
  *
  * Copyright (C) 2013  INRIA.
  *
@@ -10,7 +10,7 @@
  * @ingroup shell_commands
  * @{
  * @file    sc_id.c
- * @brief   provides shell commands to configure node id 
+ * @brief   provides shell commands to configure node id
  * @author  Oliver Hahm <oliver.hahm@inria.fr>
  * @}
  */
diff --git a/sys/shell/commands/sc_ltc4150.c b/sys/shell/commands/sc_ltc4150.c
index 0ae7ad9ff197a88be3fb30b90b1c4fae7a97f21c..7acf7f25cedc594ac9be6efbd8064187799c1ac6 100644
--- a/sys/shell/commands/sc_ltc4150.c
+++ b/sys/shell/commands/sc_ltc4150.c
@@ -1,5 +1,5 @@
 /**
- * Shell commands for coulomb counter 
+ * Shell commands for coulomb counter
  *
  * Copyright (C) 2013  INRIA.
  *
diff --git a/sys/shell/commands/sc_ps.c b/sys/shell/commands/sc_ps.c
index c6afeabac5a387f8f77ac75ab0f14ad499f42445..f076b78f690451e6edee1887fb068123d7f57f26 100644
--- a/sys/shell/commands/sc_ps.c
+++ b/sys/shell/commands/sc_ps.c
@@ -10,7 +10,7 @@
  * @ingroup shell_commands
  * @{
  * @file    sc_ps.c
- * @brief   shows all thread information 
+ * @brief   shows all thread information
  * @author  Oliver Hahm <oliver.hahm@inria.fr>
  * @}
  */
@@ -23,4 +23,3 @@ void _ps_handler(char *unused)
 
     thread_print_all();
 }
-
diff --git a/sys/shell/commands/sc_rtc.c b/sys/shell/commands/sc_rtc.c
index 2b7d1bb315a930efd2e9b456bdae36b1802ea349..56db40fbc672553607e7518ee7ffefb36b16cd4e 100644
--- a/sys/shell/commands/sc_rtc.c
+++ b/sys/shell/commands/sc_rtc.c
@@ -1,5 +1,5 @@
 /**
- * Shell commands for real time clock 
+ * Shell commands for real time clock
  *
  * Copyright (C) 2013  INRIA.
  *
@@ -10,7 +10,7 @@
  * @ingroup shell_commands
  * @{
  * @file    sc_rtc.c
- * @brief   provides shell commands to access the rtc 
+ * @brief   provides shell commands to access the rtc
  * @author  Oliver Hahm <oliver.hahm@inria.fr>
  * @}
  */
diff --git a/sys/shell/commands/sc_sht11.c b/sys/shell/commands/sc_sht11.c
index 80c196ebfe647a015312d41a7795103febe02dcd..ce088ec562f24b1861ab41189c212345ca29f679 100644
--- a/sys/shell/commands/sc_sht11.c
+++ b/sys/shell/commands/sc_sht11.c
@@ -1,5 +1,5 @@
 /**
- * Shell commands for temperature and humidity sensor 
+ * Shell commands for temperature and humidity sensor
  *
  * Copyright (C) 2013  INRIA.
  *
@@ -10,7 +10,7 @@
  * @ingroup shell_commands
  * @{
  * @file    sc_sht11.c
- * @brief   provides shell commands to poll sht11 sensor 
+ * @brief   provides shell commands to poll sht11 sensor
  * @author  Oliver Hahm <oliver.hahm@inria.fr>
  * @}
  */
diff --git a/sys/shell/commands/shell_commands.c b/sys/shell/commands/shell_commands.c
index a2aa5f038bb93b8a20a4d4f0b883d6391c509cca..9762af945ab393be48f96be1acc2eeefe9a34be0 100644
--- a/sys/shell/commands/shell_commands.c
+++ b/sys/shell/commands/shell_commands.c
@@ -165,4 +165,3 @@ const shell_command_t _shell_command_list[] = {
 #endif
     {NULL, NULL, NULL}
 };
-
diff --git a/sys/timex/Makefile b/sys/timex/Makefile
index 76b21cf14d04c0b633e7b5ed8775286e45ef45c2..fa37c25bf96411e6a97057e15387f33340decf76 100644
--- a/sys/timex/Makefile
+++ b/sys/timex/Makefile
@@ -1,4 +1,3 @@
 MODULE = timex
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/sys/timex/timex.c b/sys/timex/timex.c
index 0878b54695312a8a06de450d46877fbfd1137e78..1a1b9d982f5470705e2405dab533d806fdab1b46 100644
--- a/sys/timex/timex.c
+++ b/sys/timex/timex.c
@@ -8,7 +8,7 @@
  * Public License. See the file LICENSE in the top level directory for more
  * details.
  */
- 
+
 /**
  * @file
  * @author Kaspar Schleiser <kaspar@schleiser.de>
diff --git a/sys/transceiver/Makefile b/sys/transceiver/Makefile
index 4fcf17425df365148bd1d0a90dfc592a0b64d327..3c18dcb478421bdc38261b9aacc47ed63c8434b1 100644
--- a/sys/transceiver/Makefile
+++ b/sys/transceiver/Makefile
@@ -1,5 +1,3 @@
 MODULE =transceiver
 
 include $(MAKEBASE)/Makefile.base
-
-
diff --git a/sys/transceiver/transceiver.c b/sys/transceiver/transceiver.c
index e5bd66b43de784b4094d15638109087dae1d4015..fe05b648d72d076c7d94bf97c5a5a0177e00c271 100644
--- a/sys/transceiver/transceiver.c
+++ b/sys/transceiver/transceiver.c
@@ -389,13 +389,13 @@ static void receive_packet(uint16_t type, uint8_t pos)
          * received */
         if (type == RCV_PKT_CC1100) {
 #ifdef MODULE_CC110X_NG
-            receive_cc110x_packet(trans_p); 
+            receive_cc110x_packet(trans_p);
 #elif MODULE_CC110X
             receive_cc1100_packet(trans_p);
 #else
             trans_p = NULL;
 #endif
-        } 
+        }
         else if (type == RCV_PKT_MC1322X) {
 #ifdef MODULE_MC1322X
             receive_mc1322x_packet(trans_p);
@@ -529,12 +529,12 @@ void receive_mc1322x_packet(radio_packet_t *trans_p) {
     memcpy((void*) &(data_buffer[transceiver_buffer_pos * PAYLOAD_SIZE]), maca_pkt->data, MACA_MAX_PAYLOAD_SIZE);
     maca_free_packet( maca_pkt );
     eINT();
-    
+
     trans_p->data = (uint8_t*) &(data_buffer[transceiver_buffer_pos * MACA_MAX_PAYLOAD_SIZE]);
 }
 #endif
 
- 
+
 #ifdef MODULE_NATIVENET
 void receive_nativenet_packet(radio_packet_t *trans_p) {
     unsigned state;
@@ -742,7 +742,7 @@ static int32_t get_channel(transceiver_type_t t)
 #endif
 #ifdef MODULE_MC1322X
         case TRANSCEIVER_MC1322X:
-            ///< TODO:implement return maca_get_channel(); 
+            ///< TODO:implement return maca_get_channel();
             return -1;
 #endif
 #ifdef MODULE_NATIVENET
diff --git a/sys/vtimer/Makefile b/sys/vtimer/Makefile
index 35f0910438bdd4dc358d62000cee614b8b201796..cae67acc0dd78b1e6c4b2279465a213c9cd0a307 100644
--- a/sys/vtimer/Makefile
+++ b/sys/vtimer/Makefile
@@ -1,4 +1,3 @@
 MODULE =vtimer
 
 include $(RIOTBASE)/Makefile.base
-
diff --git a/sys/vtimer/vtimer.c b/sys/vtimer/vtimer.c
index 6f7751b62c430df9562d217bd424361cc13bba37..ea1c368b6e32b15393968429cb3dea7874c1f450 100644
--- a/sys/vtimer/vtimer.c
+++ b/sys/vtimer/vtimer.c
@@ -329,9 +329,9 @@ int vtimer_sleep(timex_t time)
     t.action = (void(*)(void *)) mutex_unlock;
     t.arg = (void *) &mutex;
     t.absolute = time;
-    
+
     ret = vtimer_set(&t);
-    mutex_lock(&mutex);    
+    mutex_lock(&mutex);
     return ret;
 }
 
diff --git a/tests/test_hwtimer/tests/test_hwtimer b/tests/test_hwtimer/tests/test_hwtimer
index f9f4a92e13cad6b6b82ae20d5ba2387900d9c182..b746455437a15875af5e84c18982edc4d3a7f1ab 100755
--- a/tests/test_hwtimer/tests/test_hwtimer
+++ b/tests/test_hwtimer/tests/test_hwtimer
@@ -4,45 +4,44 @@ set timeout 5
 
 spawn pseudoterm $env(PORT)
 
-expect { 
-    "OK" {} 
+expect {
+    "OK" {}
     timeout { exit 1 }
 }
 
-expect { 
-    "set callback  1" {} 
+expect {
+    "set callback  1" {}
     timeout { exit 1 }
 }
 
-expect { 
-    "set callback  2" {} 
+expect {
+    "set callback  2" {}
     timeout { exit 1 }
 }
 
-expect { 
-    "set callback  3" {} 
+expect {
+    "set callback  3" {}
     timeout { exit 1 }
 }
 
-expect { 
-    "callback  1" {} 
+expect {
+    "callback  1" {}
     timeout { exit 1 }
 }
 
-expect { 
-    "callback  3" {} 
+expect {
+    "callback  3" {}
     timeout { exit 1 }
 }
 
-expect { 
-    "callback  2" {} 
+expect {
+    "callback  2" {}
     timeout { exit 1 }
 }
 
-expect { 
-    "hwtimer set." {} 
+expect {
+    "hwtimer set." {}
     timeout { exit 1 }
 }
 
 puts "\nTest successful!\n"
-
diff --git a/tests/test_irq/Makefile b/tests/test_irq/Makefile
index aadfbd61d3b65a60036b0f3ef7dd610a0e1e7618..4fc604b6ff7fc822d2ae75fddcdc4bf411816f85 100644
--- a/tests/test_irq/Makefile
+++ b/tests/test_irq/Makefile
@@ -14,7 +14,7 @@ ifeq (,$(findstring native,$(BOARD)))
 	include $(RIOTBASE)/Makefile.unsupported
 else
 
-## Modules to include. 
+## Modules to include.
 
 USEMODULE += auto_init
 USEMODULE += hwtimer
diff --git a/tests/test_nativenet/Makefile b/tests/test_nativenet/Makefile
index a69baf40e4a8e7d164e1fded30797c511bfbe324..161280568be448f394d438c0ac4ee414540e5432 100644
--- a/tests/test_nativenet/Makefile
+++ b/tests/test_nativenet/Makefile
@@ -14,7 +14,7 @@ ifeq (,$(findstring native,$(BOARD)))
 include $(RIOTBASE)/Makefile.unsupported
 else
 
-## Modules to include. 
+## Modules to include.
 
 USEMODULE += auto_init
 USEMODULE += hwtimer
diff --git a/tests/test_pnet/Makefile b/tests/test_pnet/Makefile
index 628e1f5f23eec860b0528352a3bcbbb68b8ab733..652a395c4aef026e92f56506344a68118a142fdb 100644
--- a/tests/test_pnet/Makefile
+++ b/tests/test_pnet/Makefile
@@ -3,9 +3,9 @@
 ####
 #### The Sample Filesystem Layout is:
 #### /this makefile
-#### ../../RIOT 
+#### ../../RIOT
 #### ../../boards   for board definitions (if you have one or more)
-#### 
+####
 
 # name of your project
 export PROJECT =test_pnet
@@ -23,7 +23,7 @@ ifeq ($(BOARD),stm32f4discovery)
 	include Makefile.$(BOARD)
 endif
 
-## Modules to include. 
+## Modules to include.
 
 USEMODULE += auto_init
 USEMODULE += posix
diff --git a/tests/test_semaphore/Makefile b/tests/test_semaphore/Makefile
index 993f5687ede62bf6041c71aefebd7100840c8e28..4303b7324d442e008f7107dd78d66143684e711f 100644
--- a/tests/test_semaphore/Makefile
+++ b/tests/test_semaphore/Makefile
@@ -7,7 +7,7 @@ export BOARD ?= native
 # this has to be the absolute path of the RIOT-base dir
 export RIOTBASE = $(CURDIR)/../..
 
-## Modules to include. 
+## Modules to include.
 USEMODULE += semaphore
 
 include $(RIOTBASE)/Makefile.include
diff --git a/tests/test_semaphore/main.c b/tests/test_semaphore/main.c
index 8d782120ca157c5fcf6a0940a21a78de016f01c8..cbef1ff7488d45f480d9f966f280a03482265fba 100644
--- a/tests/test_semaphore/main.c
+++ b/tests/test_semaphore/main.c
@@ -161,4 +161,3 @@ int main(void)
     test2();
     puts("#########################");
 }
-
diff --git a/tests/test_shell/Makefile b/tests/test_shell/Makefile
index d09f7efc12d53482ff26d46c916d57cfa2e07e81..1328f4d7320ec1f7a785839529cf0f8c477b9c0a 100644
--- a/tests/test_shell/Makefile
+++ b/tests/test_shell/Makefile
@@ -7,7 +7,7 @@ export BOARD ?= native
 # this has to be the absolute path of the RIOT-base dir
 export RIOTBASE = $(CURDIR)/../..
 
-## Modules to include. 
+## Modules to include.
 
 USEMODULE += shell
 USEMODULE += shell_commands
diff --git a/tests/test_shell/ReadMe.txt b/tests/test_shell/ReadMe.txt
index 55266ba4938ad05b9053c6409e5e4bce6c0eef9e..a44c1216d8a3896b4b6d27deb07f51bf81b65788 100644
--- a/tests/test_shell/ReadMe.txt
+++ b/tests/test_shell/ReadMe.txt
@@ -1,15 +1,15 @@
-This project shows how to use own or the system shell commands. In order to use 
+This project shows how to use own or the system shell commands. In order to use
 the system shell commands:
 
-1. Additionally to the module: shell, shell_commands and posix, 
-   the module for the corresponding system command is to include, e.g. 
-   module ps for the ps command (cf. the Makefile in the project root 
-   directory). 
+1. Additionally to the module: shell, shell_commands and posix,
+   the module for the corresponding system command is to include, e.g.
+   module ps for the ps command (cf. the Makefile in the project root
+   directory).
 2. The shell must be initialized as follows:
         2.1 shell_t sys_shell;
-        2.2 shell_init(&shell, shell_commands, shell_bufsize, shell_readc, 
-                       shell_putchar); 
+        2.2 shell_init(&shell, shell_commands, shell_bufsize, shell_readc,
+                       shell_putchar);
             or shell_init(&sys_shell, NULL, shell_bufsize,
-                          shell_readc, shell_putchar); 
+                          shell_readc, shell_putchar);
             /* to initialize without the built-in shell commands */
         2.3 shell_run(&sys_shell);
diff --git a/tests/test_shell/main.c b/tests/test_shell/main.c
index e4e88071e06877f3e2fca765f67550e0d70be54c..0f036cd71f5b287e0f8ed02bc42897fa34d93078 100644
--- a/tests/test_shell/main.c
+++ b/tests/test_shell/main.c
@@ -83,4 +83,3 @@ int main(void)
 
     return 0;
 }
-
diff --git a/tests/test_shell/tests/01-basic b/tests/test_shell/tests/01-basic
index fd3bf5d993d2ad1659efe4ca574981a04d02542c..db0961ab8961ed9b9bb6a536fadf0d9484ca4cf8 100755
--- a/tests/test_shell/tests/01-basic
+++ b/tests/test_shell/tests/01-basic
@@ -5,25 +5,25 @@ set timeout 5
 spawn pseudoterm $env(PORT)
 
 sleep 1
-send "\n" 
-send "\n" 
-expect { 
-    ">" {} 
+send "\n"
+send "\n"
+expect {
+    ">" {}
     timeout { exit 1 }
 }
 
-send "start_test\n" 
+send "start_test\n"
 expect {
     "\[TEST_START\]" {}
     timeout { exit 1 }
 }
 
-expect { 
-    ">" {} 
+expect {
+    ">" {}
     timeout { exit 1 }
 }
 
-send "end_test\n" 
+send "end_test\n"
 expect {
     "\[TEST_END\]" {}
     timeout { exit 1 }
diff --git a/tests/test_shell/tests/02-inputlength-regression b/tests/test_shell/tests/02-inputlength-regression
index a93e3526acea59d30af39af58d2e50c6f554ea3c..96ec787ec184175bdbbe5919ae912fcafee10950 100755
--- a/tests/test_shell/tests/02-inputlength-regression
+++ b/tests/test_shell/tests/02-inputlength-regression
@@ -2,61 +2,61 @@
 
 set timeout 1
 
-spawn pseudoterm $env(PORT) 
+spawn pseudoterm $env(PORT)
 
 sleep 1
-send "\n" 
-send "\n" 
-expect { 
-    ">" {} 
+send "\n"
+send "\n"
+expect {
+    ">" {}
     timeout { exit 1 }
 }
 
 send "123456789012345678901234567890123456789012345678901234567890\n"
-expect { 
-    "shell: command not found." {} 
+expect {
+    "shell: command not found." {}
     timeout { exit 1 }
 }
 
 send "123456789012345678901234567890123456789012345678901234567890\n"
-expect { 
-    "shell: command not found." {} 
+expect {
+    "shell: command not found." {}
     timeout { exit 1 }
 }
 
 send "123456789012345678901234567890123456789012345678901234567890\n"
-expect { 
-    "shell: command not found." {} 
+expect {
+    "shell: command not found." {}
     timeout { exit 1 }
 }
 
 send "123456789012345678901234567890123456789012345678901234567890\n"
-expect { 
-    "shell: command not found." {} 
+expect {
+    "shell: command not found." {}
     timeout { exit 1 }
 }
 
 send "123456789012345678901234567890123456789012345678901234567890\n"
-expect { 
-    "shell: command not found." {} 
+expect {
+    "shell: command not found." {}
     timeout { exit 1 }
 }
 
 send "123456789012345678901234567890123456789012345678901234567890\n"
-expect { 
-    "shell: command not found." {} 
+expect {
+    "shell: command not found." {}
     timeout { exit 1 }
 }
 
 send "123456789012345678901234567890123456789012345678901234567890\n"
-expect { 
-    "shell: command not found." {} 
+expect {
+    "shell: command not found." {}
     timeout { exit 1 }
 }
 
 send "123456789012345678901234567890123456789012345678901234567890\n"
-expect { 
-    "shell: command not found." {} 
+expect {
+    "shell: command not found." {}
     timeout { exit 1 }
 }
 
@@ -67,12 +67,12 @@ expect {
     timeout { exit 1 }
 }
 
-expect { 
-    ">" {} 
+expect {
+    ">" {}
     timeout { exit 1 }
 }
 
-send "end_test\n" 
+send "end_test\n"
 
 expect {
     "\[TEST_END\]" {}
diff --git a/tests/test_shell/tests/02-unknown-command b/tests/test_shell/tests/02-unknown-command
index d47c20cf55459fa698f8a8f31583b35b1e9aaf15..2e682838e35e1ecd1e9c53cffdd7f5016fd30c3d 100755
--- a/tests/test_shell/tests/02-unknown-command
+++ b/tests/test_shell/tests/02-unknown-command
@@ -2,19 +2,19 @@
 
 set timeout 2
 
-spawn pseudoterm $env(PORT) 
+spawn pseudoterm $env(PORT)
 
 sleep 1
-send "\n" 
-send "\n" 
-expect { 
-    ">" {} 
+send "\n"
+send "\n"
+expect {
+    ">" {}
     timeout { exit 1 }
 }
 
 send "some_definately_unknown_command\n"
-expect { 
-    "shell: command not found." {} 
+expect {
+    "shell: command not found." {}
     timeout { exit 1 }
 }
 
diff --git a/tests/test_thread_basic/tests/test_thread.py b/tests/test_thread_basic/tests/test_thread.py
index 40df9e651e79dbffcb5231d550ace278f65c4821..691d3a640fadd9e5a293c2838a5be50619428441 100755
--- a/tests/test_thread_basic/tests/test_thread.py
+++ b/tests/test_thread_basic/tests/test_thread.py
@@ -12,4 +12,3 @@ subprocess.call(['jam', 'reset'], stdout=null)
 child.expect ('first thread\r\n')
 child.expect ('second thread\r\n')
 print("Test successful!")
-
diff --git a/tests/test_thread_exit/tests/hello-world b/tests/test_thread_exit/tests/hello-world
index 6f4a6ca8114811b10ab0ba8bd7193769aab5f889..e7ab2a7c315cda77501efbbadc0a118d8b33b75d 100755
--- a/tests/test_thread_exit/tests/hello-world
+++ b/tests/test_thread_exit/tests/hello-world
@@ -2,12 +2,11 @@
 
 set timeout 5
 
-spawn board/msba2/tools/bin/pseudoterm $env(PORT) 
+spawn board/msba2/tools/bin/pseudoterm $env(PORT)
 
-expect { 
-    "Hello World!" {} 
+expect {
+    "Hello World!" {}
     timeout { exit 1 }
 }
 
 puts "\nTest successful!\n"
-