Re: Questions about low level programming.



Diego Jacobi ha scritto lo scorso 29/03/2008 16:58:
[...]
> Just to say some of this devices are 8085, 8086, freescale(motorola)
> microcontrollers, etc.
[...]
> 
> I expect to be able to used things like MainLoop, idle_add, timeout_add,
> basic ansi string manipulation, lists, encoding to communicate with a
> PC, etc. to replace harder tasks.
> If i need a rutine to turn on a pin or to write a word to a port
> sincronously (like turn on/off a LED every 2 seconds) i have to take
> into account the amount of clocks in the routine wasting a lot of
> processing time doing lots of sleep(..), if i use timeout_add it will be
> much more efficient. But in some cases an sleep like routine is required
> on this kind of processes, i dont know why there isnt one on glib to be
> able to do a sleep and pause a function execution but continue doing
> MainLoop stuff and not break the event system.

Usually this task is accomplished by using hw counter callbacks.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]