#ifndef _DEV_LS_H_
#define _DEV_LS_H_


/*
 * ラインセンサの制御に用いるポートの定義
 */
#define PE_IOR0		((volatile unsigned short int *)(0xFFFE3892))
#define PE_DR0		((volatile unsigned short int *)(0xFFFE3896))

/*
 * センサの定義
 */
#define LS_LEFT		0
#define LS_CENTER	1
#define LS_RIGHT	2
#define ERROR 255

#define LINE_ON 1
#define LINE_OFF 0

extern void ls_initialize(void);
extern unsigned int ls_read(unsigned char ls);


#endif