Host driver/HAL to build a LoRa Picocell Gateway which communicates through USB with a concentrator board based on Semtech SX1308 multi-channel modem and SX1257/SX1255 RF transceivers.

Revision:
0:102b50f941d0
diff -r 000000000000 -r 102b50f941d0 lora_indent.sh
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lora_indent.sh	Wed Apr 11 14:38:42 2018 +0000
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# Convert file encoding type from dos 2 unix
+find . -regex '.*\.\(cpp\|h\|c\)' -exec dos2unix {} \;
+
+# Remove trailing spaces from source files
+find . -regex '.*\.\(cpp\|h\|c\)' -exec sed -i 's/[ \t]*$//g' {} \;
+
+# Replace tabs with 4-spaces in all source files
+find . -regex '.*\.\(cpp\|h\|c\)' -exec sed -i 's/\t/    /g' {} \;
+
+# indent code
+find . -regex '.*\.\(cpp\|h\|c\)' -exec astyle --indent-switches --indent-cases --pad-oper --pad-comma --add-brackets --indent=spaces=4 -A2 --mode=c  {} \;