#ifndef LBT_AL_CONFIG_H
#define LBT_AL_CONFIG_H

#define CLOCK_FREQ		19660800

#define SWTIMER_2
#define SWTIMER_COUNT		3

#define UART_BAUDRATE		19200
//#define UART_RX_FIFO_DEPTH	32
//#define UART_TX_FIFO_DEPTH	32

#define SMD_A3977
#define SMD_PORT_CLK		PORTB
#define SMD_DDR_CLK		DDRB
#define SMD_BIT_CLK		5
#define SMD_PORT_DIR		PORTB
#define SMD_DDR_DIR		DDRB
#define SMD_BIT_DIR		4
#define SMD_PORT_RESET		PORTC
#define SMD_DDR_RESET		DDRC
#define SMD_BIT_RESET		0
#define SMD_PORT_MS1		PORTB
#define SMD_DDR_MS1		DDRB
#define SMD_BIT_MS1		2
#define SMD_PORT_MS2		PORTB
#define SMD_DDR_MS2		DDRB
#define SMD_BIT_MS2		3
#define SMD_PIN_BEG_LSW		PIND
#define SMD_DDR_BEG_LSW		DDRD
#define SMD_BIT_BEG_LSW		5
#define SMD_LSW_DEPTH		8

/*
#define SMD_PIN_BEG_LSW		PIND
#define SMD_DDR_BEG_LSW		DDRD
#define SMD_BIT_BEG_LSW		6
#define SMD_PIN_END_LSW		PIND
#define SMD_DDR_END_LSW		DDRD
#define SMD_BIT_END_LSW		5
#define SMD_LSW_DEPTH		12
*/

#define SMD_MOVE_TIMER_0
#define SMD_MOVE_TIMER_DIV	256
#define SMD_CURCTRL_OC1A

#endif

