List Info

Thread: ts 7260 Coding Help




ts 7260 Coding Help
country flaguser name
United States
2008-05-21 13:12:51

Hi,

I am new to the Linux environment and the Arm area, but I think I have
been able to make some progress.

I am working with the Ts-7260 through a windows xp computer. I have
been to compile a simple hello world program in eclipse, send it over
to the ts 7260 and execute it.

However, I am trying to use the lcd and ic-104 ports on the device.

I've looked through the sample code that TS provides, especially the
one with the LCD message (lcdmesg.c), but I do not understand (how and
why) the functions that they use such as: open, mmap, and all the
variables that they define.

I guess I do not how to go from the helloworld code to a the lcd code,
apart from using it as it is.

If someone can direct to how the coding process for the ts-7260 works
or any references, I would really appreciate it!

Thanks,
- PB

__._,_.___
.

__,_._,___
Re: ts 7260 Coding Help
country flaguser name
United States
2008-05-21 14:08:41

On Wed, May 21, 2008 at 3:12 PM, sweetkruzy16 < sweetkruzy16%40yahoo.com">sweetkruzy16yahoo.com> wrote:
&gt; Hi,
>
> I am new to the Linux environment and the Arm area, but I think I have
>; been able to make some progress.
>
&gt; I am working with the Ts-7260 through a windows xp computer. I have
>; been to compile a simple hello world program in eclipse, send it over
>; to the ts 7260 and execute it.
>
> However, I am trying to use the lcd and ic-104 ports on the device.
>
> I've looked through the sample code that TS provides, especially the
> one with the LCD message (lcdmesg.c), but I do not understand (how and
> why) the functions that they use such as: open, mmap, and all the
> variables that they define.

This is more general stuff on Linux programming than TS7260 specific.
You should search for some info on file/devices handling with
Linux/Unix. It would be nice to get some Linux distro, it would be
enough to type "man open" or "man mmap" on a terminal.

> I guess I do not how to go from the helloworld code to a the lcd code,
&gt; apart from using it as it is.
>
> If someone can direct to how the coding process for the ts-7260 works
&gt; or any references, I would really appreciate it!
>
> Thanks,
> - PB
>

__._,_.___
.

__,_._,___
Re: ts 7260 Coding Help
country flaguser name
United Kingdom
2008-05-21 15:21:12


>&gt; However, I am trying to use the lcd and ic-104 ports on the device.
>>
>> I've looked through the sample code that TS provides, especially the
>> one with the LCD message (lcdmesg.c), but I do not understand (how and
>> why) the functions that they use such as: open, mmap, and all the
>> variables that they define.
>
> This is more general stuff on Linux programming than TS7260 specific.
> You should search for some info on file/devices handling with
>; Linux/Unix. It would be nice to get some Linux distro, it would be
> enough to type "man open" or "man mmap" on a terminal.

I agree with this - using Windows environment for Linux coding, IMNSHO, is
...bizarre.

But... lot's of us are bizarre, and there's no law against it.

You can check out the relevant linux man pages on the web, type

linux man mmap

into google and you'll find lots of sites with man(ual) pages online, for
those crippled by working on a Windows system

__._,_.___
.

__,_._,___
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )