/** 
 * \file lcd_cfg.h
 * \brief lcd configuration file
 * \details File contains configuration constants for LCD
 *
 * \author Juraj Golej
 * \version 1.0
 */


#ifndef LCD_CFG_H_
#define LCD_CFG_H_

#define LCD_SPI				SPI0			///< SPI periphery
#define LCD_SPI_CHANNEL		SPI_CHANNEL_0	///< SPI slave channel
#define LCD_SPI_SLAVEID		0				///< SPI slave ID
#define LCD_SPI_SPCK		540000UL		///< SPI SPCK frequency [Hz]
#define LCD_SPI_MODE		SPI_MODE_0		///< SPI mode
#define LCD_SPI_BITS		SPI_BITS_8		///< Number of bits in one packet

#define LCD_TIMER			TC3				///< Timer (TC) periphery
#define LCD_TIMER_CHANNEL	TIMER_CHANNEL_2	///< Timer channel
#define LCD_TIMER_CLK		TIMER_CLK_MCK32	///< Timer increment clock source

#define LCD_DATA_BUFFSIZE	256				///< Internal buffer size
#define LCD_EXEC_TIME		80				///< Execution time for normal instructions (see data sheet)
#define LCD_EXEC_TIME_CLRI	2000			///< Execution time for CLEAR instruction (see data sheet)

#endif /* LCD_CFG_H_ */