[En-Nut-Discussion] NutEventPostFromIrq and C++

Harald Kipp harald.kipp at egnite.de
Sun Jul 30 20:59:53 CEST 2006


Matthias,

At 20:40 30.07.2006 +0200, you wrote:

>Your right, it might be faster with the inlined code, but at least we are
>talking about one more call of a pointer address that should'nt be such a
>problem also in the embedded world, but please forgive me when I am wrong,
>I am x86 specialist, but I work hard to get also a expert on embedded ;-)

The point is, that in interrupt context every single cycle
counts, because all other interrupts are blocked. Sometimes
a single cycle helps to double to UART baudrate, for example.


>OK, now I just claim a missing cast:
>
>           NUTTHREADINFO *tp = (NUTTHREADINFO *) *qp;    \

Good, that you get it working this way. I'll add the typecast.

Thanks,
Harald





More information about the En-Nut-Discussion mailing list