/*
 * main.h
 *
 * Copyright 2015 Edward V. Emelianoff <eddy@sao.ru>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.
 */
#pragma once
#ifndef __MAIN_H__
#define __MAIN_H__

#include "stm8l.h"
/*
#define EEPROM_MAGICK  (0x1234)
#define DEFAULT_ADU_TO_MV  (35840)
#define DEFAULT_MAX_ADU  (119800)

typedef struct{
	U16 magick;
	U32 ADU_to_mV;
	U32 max_ADU;
}eeprom_data;
*/
#define CONCAT(a,b)		a##_##b
#define PORT(a,b)		CONCAT(a,b)

#endif // __MAIN_H__
