Move some declarations to hmi_msg.c file
This commit is contained in:
parent
f1fe589942
commit
2706180dac
11
src/hmi_msg.c
Normal file
11
src/hmi_msg.c
Normal 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};
|
@ -1,4 +1,3 @@
|
|||||||
#include <avr/pgmspace.h>
|
|
||||||
#ifndef _HMI_MSG_H_
|
#ifndef _HMI_MSG_H_
|
||||||
#define _HMI_MSG_H_
|
#define _HMI_MSG_H_
|
||||||
|
|
||||||
@ -8,12 +7,4 @@
|
|||||||
#define GET_MONTH_MSG "Enter Month name first letter >"
|
#define GET_MONTH_MSG "Enter Month name first letter >"
|
||||||
#define UPTIME_MSG "Uptime: %lu s"
|
#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_ */
|
#endif /* _HMI_MSG_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user