aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-01-03 21:39:35 +0000
committerDimitri Sokolyuk <demon@dim13.org>2016-01-03 21:39:35 +0000
commit42e82167772947ff023c4fa496813820618bf0f4 (patch)
tree6374d90c5aa1c21bd136a2e550103293c681b32d
parent3f43c1ea8ee72d5dd195eaf463fb5a42cdddbc18 (diff)
Sanitize includes
-rw-r--r--kernel/adc.c4
-rw-r--r--kernel/clock.c5
-rw-r--r--kernel/ctrl.c4
-rw-r--r--kernel/dmx.c8
-rw-r--r--kernel/heartbeat.c4
-rw-r--r--kernel/kernel.c8
-rw-r--r--kernel/lcd3.c6
-rw-r--r--kernel/ppm.c6
-rw-r--r--kernel/rgb.c4
-rw-r--r--kernel/uart.c6
10 files changed, 37 insertions, 18 deletions
diff --git a/kernel/adc.c b/kernel/adc.c
index 0eeadf1..d055cba 100644
--- a/kernel/adc.c
+++ b/kernel/adc.c
@@ -15,9 +15,11 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <avr/io.h>
+
#include <stdint.h>
#include <stdio.h>
-#include <avr/io.h>
+
#include "kernel.h"
#include "tasks.h"
diff --git a/kernel/clock.c b/kernel/clock.c
index 8e83cbe..6d49a63 100644
--- a/kernel/clock.c
+++ b/kernel/clock.c
@@ -15,11 +15,12 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <stdint.h>
-#include <stdio.h>
#include <avr/io.h>
+
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
+
#include "kernel.h"
#include "tasks.h"
diff --git a/kernel/ctrl.c b/kernel/ctrl.c
index 46b4b7a..8722448 100644
--- a/kernel/ctrl.c
+++ b/kernel/ctrl.c
@@ -15,9 +15,11 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <stdint.h>
#include <avr/io.h>
+
+#include <stdint.h>
#include <stdio.h>
+
#include "kernel.h"
#include "tasks.h"
diff --git a/kernel/dmx.c b/kernel/dmx.c
index 6ee28c0..5864a32 100644
--- a/kernel/dmx.c
+++ b/kernel/dmx.c
@@ -15,12 +15,14 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <stdint.h>
-#include <stdio.h>
-#include <string.h>
#include <avr/io.h>
#include <avr/sleep.h>
#include <avr/cpufunc.h>
+
+#include <stdint.h>
+#include <stdio.h>
+#include <string.h>
+
#include "kernel.h"
#include "tasks.h"
diff --git a/kernel/heartbeat.c b/kernel/heartbeat.c
index d91863a..1a0de89 100644
--- a/kernel/heartbeat.c
+++ b/kernel/heartbeat.c
@@ -15,9 +15,11 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <avr/io.h>
+
#include <stdint.h>
#include <stdio.h>
-#include <avr/io.h>
+
#include "kernel.h"
#include "tasks.h"
diff --git a/kernel/kernel.c b/kernel/kernel.c
index 6361218..47b08e5 100644
--- a/kernel/kernel.c
+++ b/kernel/kernel.c
@@ -19,13 +19,15 @@
* http://www.control.lth.se/Publication/hen+04t.html
*/
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/power.h>
#include <avr/wdt.h>
+
+#include <stdint.h>
+#include <stdlib.h>
+#include <string.h>
+
#include "kernel.h"
#include "stack.h"
#include "queue.h"
diff --git a/kernel/lcd3.c b/kernel/lcd3.c
index 3b4e459..96e5f7c 100644
--- a/kernel/lcd3.c
+++ b/kernel/lcd3.c
@@ -15,11 +15,13 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <stdint.h>
-#include <stdio.h>
#include <avr/io.h>
#include <avr/cpufunc.h>
#include <util/delay.h>
+
+#include <stdint.h>
+#include <stdio.h>
+
#include "kernel.h"
#include "tasks.h"
diff --git a/kernel/ppm.c b/kernel/ppm.c
index 3d22ac1..72bbcb9 100644
--- a/kernel/ppm.c
+++ b/kernel/ppm.c
@@ -15,10 +15,12 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <stdint.h>
-#include <stdio.h>
#include <avr/io.h>
#include <avr/interrupt.h>
+
+#include <stdint.h>
+#include <stdio.h>
+
#include "kernel.h"
#include "tasks.h"
diff --git a/kernel/rgb.c b/kernel/rgb.c
index eb3d409..fcfef63 100644
--- a/kernel/rgb.c
+++ b/kernel/rgb.c
@@ -15,9 +15,11 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <avr/io.h>
+
#include <stdint.h>
#include <stdio.h>
-#include <avr/io.h>
+
#include "kernel.h"
#include "tasks.h"
diff --git a/kernel/uart.c b/kernel/uart.c
index 92952ae..38e895c 100644
--- a/kernel/uart.c
+++ b/kernel/uart.c
@@ -19,11 +19,13 @@
#define BAUD 9600
#endif
-#include <stdint.h>
-#include <stdio.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/setbaud.h> /* depends on BAUD and F_CPU */
+
+#include <stdint.h>
+#include <stdio.h>
+
#include "kernel.h"
#include "tasks.h"