From 97dce13d5ef8fe3eecf416b21f891988bedb823e Mon Sep 17 00:00:00 2001
From: Rahix <rahix@rahix.de>
Date: Thu, 11 Jul 2019 11:21:14 +0200
Subject: [PATCH] chore(epicardium): Rename serial.h to modules.h

Signed-off-by: Rahix <rahix@rahix.de>
---
 epicardium/main.c            | 2 +-
 epicardium/modules/modules.h | 9 +++++++++
 epicardium/modules/serial.c  | 4 ++--
 epicardium/modules/serial.h  | 8 --------
 4 files changed, 12 insertions(+), 11 deletions(-)
 create mode 100644 epicardium/modules/modules.h
 delete mode 100644 epicardium/modules/serial.h

diff --git a/epicardium/main.c b/epicardium/main.c
index 7a24021b..2b0453c2 100644
--- a/epicardium/main.c
+++ b/epicardium/main.c
@@ -9,7 +9,7 @@
 #include "pmic.h"
 #include "leds.h"
 #include "api/dispatcher.h"
-#include "modules/serial.h"
+#include "modules/modules.h"
 
 #include "FreeRTOS.h"
 #include "task.h"
diff --git a/epicardium/modules/modules.h b/epicardium/modules/modules.h
new file mode 100644
index 00000000..cc779a5f
--- /dev/null
+++ b/epicardium/modules/modules.h
@@ -0,0 +1,9 @@
+#ifndef MODULES_H
+#define MODULES_H
+
+/* ---------- Serial ------------------------------------------------------- */
+#define SERIAL_READ_BUFFER_SIZE 128
+void vSerialTask(void *pvParameters);
+
+#endif /* MODULES_H */
+
diff --git a/epicardium/modules/serial.c b/epicardium/modules/serial.c
index c4492c2a..2efc4b92 100644
--- a/epicardium/modules/serial.c
+++ b/epicardium/modules/serial.c
@@ -1,8 +1,6 @@
 #include <stdint.h>
 #include <stdio.h>
 
-#include "serial.h"
-
 #include "max32665.h"
 #include "cdcacm.h"
 #include "uart.h"
@@ -12,6 +10,8 @@
 #include "task.h"
 #include "queue.h"
 
+#include "modules.h"
+
 /* Task ID for the serial handler */
 TaskHandle_t serial_task_id = NULL;
 
diff --git a/epicardium/modules/serial.h b/epicardium/modules/serial.h
deleted file mode 100644
index e944089c..00000000
--- a/epicardium/modules/serial.h
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef EPIC_SERIAL_H
-#define EPIC_SERIAL_H
-
-#define SERIAL_READ_BUFFER_SIZE 128
-
-void vSerialTask(void *pvParameters);
-
-#endif /* EPIC_SERIAL_H */
-- 
GitLab