[En-Nut-Discussion] Nutos 5.1 on Ethernut 1.3g with multiple threads: network freezes

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Thu Jul 2 15:50:50 CEST 2015


>>>>> "Harald" == Harald Kipp <harald.kipp at egnite.de> writes:

    Harald> If, however, your driver needs to handle additional GPIO signals
    Harald> and possibly run an additional timer interrupt, nobody would
    Harald> expect, that you are able to write this driver for all supported
    Harald> platforms. In this case nut/arch/avr/dev would be the right
    Harald> place.
GPIO signals should be portable via
extern int GpioRegisterIrqHandler(GPIO_SIGNAL * sig, int bit, void (*handler) (void *), void *arg);
extern int GpioIrqEnable(GPIO_SIGNAL * sig, int bit);
extern int GpioIrqDisable(GPIO_SIGNAL * sig, int bit);

If a pure additional timer signal runing at sub-NUTTICK speed is needed, a
portable API should not be hard to do. 

Bye
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------


More information about the En-Nut-Discussion mailing list