Move some declarations to hmi_msg.c file

This commit is contained in:
Arti Zirk 2016-12-01 14:39:17 +02:00
parent f1fe589942
commit 2706180dac
2 changed files with 11 additions and 9 deletions

11
src/hmi_msg.c Normal file
View File

@ -0,0 +1,11 @@
#include <avr/pgmspace.h>
#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};

View File

@ -1,4 +1,3 @@
#include <avr/pgmspace.h>
#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_ */