From 8dc39ed882ab61817ebc36c70c3345db7e0b8064 Mon Sep 17 00:00:00 2001
From: Timothe Jost <timothe.jost@wanadoo.fr>
Date: Thu, 4 Jul 2024 18:54:55 +0200
Subject: [PATCH] constants.c created

---
 sources/inc/constants.h | 2 +-
 sources/src/constants.c | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
 create mode 100644 sources/src/constants.c

diff --git a/sources/inc/constants.h b/sources/inc/constants.h
index 5b3f0a9..af6749c 100644
--- a/sources/inc/constants.h
+++ b/sources/inc/constants.h
@@ -69,7 +69,7 @@ typedef uint32_t mcu_actuator;
 
 #define MCU_SYSTEM_ACT_MAX_COUNT 4 // total : 4 actuators
 
-const mcu_actuator actuators[MCU_SYSTEM_ACT_MAX_COUNT] = {ACTUATOR_0, ACTUATOR_1, ACTUATOR_2, ACTUATOR_3};
+extern const mcu_actuator actuators[MCU_SYSTEM_ACT_MAX_COUNT];
 
 #define ACTUATOR_FIRST 0
 #define ACTUATOR_LAST (MCU_SYSTEM_ACT_MAX_COUNT - 1)
diff --git a/sources/src/constants.c b/sources/src/constants.c
new file mode 100644
index 0000000..a98af9c
--- /dev/null
+++ b/sources/src/constants.c
@@ -0,0 +1,3 @@
+#include "constants.h"
+
+const mcu_actuator actuators[MCU_SYSTEM_ACT_MAX_COUNT] = {ACTUATOR_0, ACTUATOR_1, ACTUATOR_2, ACTUATOR_3};
\ No newline at end of file
-- 
GitLab