RE: [uClinux-dev] function write in char driver (ARM - AT91)

2007-06-25 Thread rflores
-dev] function write in char driver (ARM - AT91) Hi Ramon, rflores wrote: [snip] The code in the application side is: /int fd;/ /char buf[80];/ /fd = open (“/dev/swspi”,”rw”);/ Not an appropriate argument type for this field. The flags field of open

Re: [uClinux-dev] function write in char driver (ARM - AT91)

2007-06-24 Thread Greg Ungerer
Hi Ramon, rflores wrote: [snip] The code in the application side is: /int fd;/ /char buf[80];/ /fd = open (“/dev/swspi”,”rw”);/ Not an appropriate argument type for this field. The flags field of open() is an int. Read the open manual page for details.

[uClinux-dev] function write in char driver (ARM - AT91)

2007-06-22 Thread rflores
Hi all, I’m writing a char driver, my platform is an arm nommu (AT91). The init function executes correctly in the uClinux startup. In the application the device is opened and closed correctly, but when I try to use the write function, the kernel doesn’t execute my write function and the

Re: [uClinux-dev] function write in char driver (ARM - AT91)

2007-06-22 Thread juanba romance
Hi Ramon this is Juanba what's going on? I see don't explain me anything else.. Uhmm could you supply us the node the* ls -al /dev/swspi *results of your system, ehhh the -9 errno code value means that the file descriptor returned from the kernel side is not valid one to perform read/write