#ifndef __DEVICE_H__
#define __DEVICE_H__

#ifdef __cplusplus
 extern "C" {
#endif

#include "stm32f4xx.h"

/******************* device data *******************/
struct device_data_s {
    uint16_t peak[4];
    uint16_t freq[4];
    uint8_t button;
    uint8_t sd;
};

extern const uint8_t * const modbus_map_ro[];
extern struct device_data_s device_data;

#ifdef __cplusplus
}
#endif

#endif /* __DEVICE_H__ */
