> I almost have all the tools I require. One of the big outstanding items is
> documentation or examples for peripheral initialization and control in C.
> You have given me an example for the IO control but I still need info on the
> following:
>
> - Serial (UART)
> - Ethernet
> - Timers
> - Delays (builtin if any)
> - Threads
> - Interrupts for all peripheral events

I guess the better approach is to have a thorough look at the linux kernel drivers and their infrastructure. PTXdist is meant for building an embedded _linux_ system, where linux means you have an os kernel that handles this stuff for you and provides an abstract, stable interface to it.

For example taking the UARTs:
they get provided as /dev/tty* nodes. You just use them like any other file, no need to do some initialization/control stuff like in the embedded market (where you obviously come from).

The already existing device drivers will probably make up ~99.5% of all your hardware handling code, and for the rest there's things like UIO, for example.

But it's really essential to get your head around the OS kernel thing and stop thinking embedded.

Greetz Sepp

Dipl-Ing. (FH) J. Holzmayr
Entwicklung Embedded Devices / Software

Telefon: (08444) 9204-48
Telefax: (08444) 9204-50

R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
85301 Schweitenkirchen
Germany


Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548



--
ptxdist mailing list
[email protected]

Reply via email to