강좌의 DIO는 8bit로 data를 주고 받는데..
16bit로 data를 주고 받고 싶습니다.
addr과 (unsigned char *)(0xf0000000);
부분을
unsigned short *addr으로 선언해주고
addr=(unsigned short *)(0xf0000000);
그리고,
ssize_t io_read(struct file *inode, short *gdata, size_t length, loff_t
*off_what)
read ,write함수의 gdata를 읽어오는 부분을 short로 바꾸어주엇습니다.

이렇게 바꾸어주면..
c171 :warning : initialization from incompatible pointer type
c172 :warning : initialization from incompatible pointer type

tatic struct file_operations io_fops =
{
open : io_open,
release : io_release,
read : io_read, (171 line)
write : io_write, (172 line)
ioctl : io_ioctl,
};
이런 에러가 나오면서 보드에서 스코프로 찍어봐도 data가 안나오네요..
그냥 char형으로 했을때는 하위 byte는 나오는데 상위쪽 data가 전혀 나오질 않아서
16bit로 처리해보려합니다.
조언부탁드립니다.



이 char 형이라서 8bit로 주고 받는데
16bit는 어찌해야 하나요?