[ECOS] Setting tty device interrupt priority, spltty()
Andrew Lunn
andrew.lunn@ascom.ch
Fri Sep 7 02:32:00 GMT 2001
> #define SPL_IMP 0x01
> #define SPL_NET 0x02
> #define SPL_CLOCK 0x04
> #define SPL_SOFTNET 0x08
> #define SPL_INTERNAL 0x10
>
> I am not sure on which priority to the tty device (the choices are 0x03 or
> 0x05-0x07 or to simply
> rearrange the prioritys)
> Any suggestions??
The OpenBSD stack uses priorites. The eCos implementation there is no
prioritisation. These are just bits in a flag and are used in
combination of a mutex to provide mutual exclusion. So define you
SPL_TTY as 0x20 and add all the other function/macros as needed.
Andrew
More information about the Ecos-discuss
mailing list