我是照着《Mini2440 Linux移植开发实战指南》来移植触屏驱动的,把代码都摘录下来编译的时候,总提示如下:
drivers/input/touchscreen/s3c2410_ts.c:60: error: stray '\' in program
drivers/input/touchscreen/s3c2410_ts.c:67: error: stray '\' in program
drivers/input/touchscreen/s3c2410_ts.c:67: error: stray '\' in program
drivers/input/touchscreen/s3c2410_ts.c: In function 'stylus_action':
drivers/input/touchscreen/s3c2410_ts.c:107: error: stray '\' in program
drivers/input/touchscreen/s3c2410_ts.c:113: error: stray '\' in program
drivers/input/touchscreen/s3c2410_ts.c:113: error: stray '\' in program
drivers/input/touchscreen/s3c2410_ts.c: In function 's3c2410ts_init':
drivers/input/touchscreen/s3c2410_ts.c:138: error: stray '\' in program
drivers/input/touchscreen/s3c2410_ts.c:138: error: stray '\' in program
drivers/input/touchscreen/s3c2410_ts.c:147: warning: left shift count >= width o------
看源码,在60,67,107等这些地方,都是用到一个函数:iowrite32
如60行iowrite32(S3C2410_ADCTSC_PULL_UP_DISABLE | AUTOPST, base_addr+S3C2410_ADCTSC);
113行iowrite32(WAIT4INT(1), base_addr+S3C2410_ADCTSC);
我很不解呀,这是为什么呀