cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
3,725 Views
Registered: ‎04-02-2009

problem in using 'cat' command

Hi All,

 

I written an led device driver for linux running on PowerPC (XUPV2P board).

I'm able to send data to led device using following command

 

    ]$ echo -ne $'\x10\x10\x10\x15' > /dev/led

 

But, when I run 'cat' command as below, it always read 0x00000000.

    ]$ cat /dev/led

 

 

Can anyone through some light on this problem?

 

-rdpatel 

0 Kudos
1 Reply
Highlighted
Xilinx Employee
Xilinx Employee
3,713 Views
Registered: ‎09-10-2008

Is your GPIO that is connected to the LED configured to be bi-directional so that it can be an input and output?

 

-- John

0 Kudos