From 2706180dacdbc24d47c846378adc26e96588a422 Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Thu, 1 Dec 2016 14:39:17 +0200 Subject: [PATCH] Move some declarations to hmi_msg.c file --- src/hmi_msg.c | 11 +++++++++++ src/hmi_msg.h | 9 --------- 2 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 src/hmi_msg.c diff --git a/src/hmi_msg.c b/src/hmi_msg.c new file mode 100644 index 0000000..49cf0f3 --- /dev/null +++ b/src/hmi_msg.c @@ -0,0 +1,11 @@ +#include +#include "hmi_msg.h" + +static const char m1[] PROGMEM = "January"; +static const char m2[] PROGMEM = "February"; +static const char m3[] PROGMEM = "March"; +static const char m4[] PROGMEM = "April"; +static const char m5[] PROGMEM = "May"; +static const char m6[] PROGMEM = "June"; + +extern PGM_P const months[] PROGMEM = {m1,m2,m3,m4,m5,m6}; diff --git a/src/hmi_msg.h b/src/hmi_msg.h index f3818fd..2913a42 100644 --- a/src/hmi_msg.h +++ b/src/hmi_msg.h @@ -1,4 +1,3 @@ -#include #ifndef _HMI_MSG_H_ #define _HMI_MSG_H_ @@ -8,12 +7,4 @@ #define GET_MONTH_MSG "Enter Month name first letter >" #define UPTIME_MSG "Uptime: %lu s" -const char m1[] PROGMEM = "January"; -const char m2[] PROGMEM = "February"; -const char m3[] PROGMEM = "March"; -const char m4[] PROGMEM = "April"; -const char m5[] PROGMEM = "May"; -const char m6[] PROGMEM = "June"; - -PGM_P const months[] PROGMEM = {m1,m2,m3,m4,m5,m6}; #endif /* _HMI_MSG_H_ */