I am altering the devc-ser8250 driver. At the end of the
ser_intr() function it returns a event which eventually unblocks
the while(1) loop found in ttc.c. I am interested in triggering
this event outside the interrupt handler using MsgDeliverEvent()
but I need a rcvid. What should I use? The altered devc-ser8250
has two threads, one thread doing most of what the original
driver does, and a new thread sending some extra characters
to /dev/ser1 every 10 seconds by calling tti().
The only idea I have is to create a ChannelCreate(), but that does
not really give me a rcvid.
I have looked more closely at the ttc.c code and realized a timer is being
used.
Unfortunatly I am also using a timer in the 2-thread devc-ser8250. How can
I have two timers under one process running at different time intervals?
I am altering the devc-ser8250 driver. At the end of the
ser_intr() function it returns a event which eventually unblocks
the while(1) loop found in ttc.c. I am interested in triggering
this event outside the interrupt handler using MsgDeliverEvent()
but I need a rcvid. What should I use? The altered devc-ser8250
has two threads, one thread doing most of what the original
driver does, and a new thread sending some extra characters
to /dev/ser1 every 10 seconds by calling tti().
The only idea I have is to create a ChannelCreate(), but that does
not really give me a rcvid.
I have looked more closely at the ttc.c code and realized a timer is being
used.
Unfortunatly I am also using a timer in the 2-thread devc-ser8250. How can
I have two timers under one process running at different time intervals?
Create two timers, give them different time intervals, probably give them
different events.
That is, call timer_create() a second time. You can have lots of timers
in one process.
I am altering the devc-ser8250 driver. At the end of the
ser_intr() function it returns a event which eventually unblocks
the while(1) loop found in ttc.c. I am interested in triggering
this event outside the interrupt handler using MsgDeliverEvent()
but I need a rcvid. What should I use? The altered devc-ser8250
has two threads, one thread doing most of what the original
driver does, and a new thread sending some extra characters
to /dev/ser1 every 10 seconds by calling tti().
The only idea I have is to create a ChannelCreate(), but that does
not really give me a rcvid.
Assuming you want a pulse:
coid = ConnectAttach(chid, …) to your Channel, then MsgSendPulse(coid, …);