[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua on ARM7
- From: David Given <dg@...>
- Date: Mon, 15 May 2006 18:00:11 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Asko Kauppi wrote:
[...]
> I would consider doing an "event dispatch" interrupt handler (in C) that
> would sit in the other end of a FIFO queue, the other end being polled
> by Lua (can you run one instance, as the main loop?) to take in
> "commands".
[...]
A common technique is to have the interrupt handler set a bit to say
'this interrupt has happened'. Your userspace code then polls all the
various bits, does its work, and then clears them again. Getting the
logic right to ensure that all interrupts are properly serviced is a bit
challenging, and of course you lose any kind of real-time-ness, but it
does allow you to avoid having to allocate memory during your interrupt
handler.
- --
+- David Given --McQ-+ "Preacher, don't the Bible have some pretty
| dg@cowlark.com | specific things to say about killing?" "Quite
| (dg@tao-group.com) | specific. It is, however, somewhat fuzzier on the
+- www.cowlark.com --+ subject of kneecaps." --- Firefly, _War Stories_
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEaLObf9E0noFvlzgRAlGlAKCHJLWZEJLwpJc1dClRqsKv4peCpACbBVNC
ss1D++Qj01M4FYoe6g6DD5w=
=lHJf
-----END PGP SIGNATURE-----