irq: threaded: fixed a trigger frequency bug

Fixed a bug which would cause threaded IRQ's which were triggered once
to be triggered continuously due to a bug in the handling of the event
counter. Fixed by decrementing the event counter upon waking the IRQ
thread.

Signed-off-by: Michel Megens <dev@michelmegens.net>
kconfig: kernel: moved debugging options down.

Moved the debugging options down in the config option list, as they are
usually the less important options.

Signed-off-by: Michel Megens <dev@michelmegens.net>
ETA/OS 2.0.4

Signed-off-by: Michel Megens <dev@michelmegens.net>