Quote:
There are other ways, but one of the simplest is to use a semaphore:



Got it. thanks for the tip.

Next question. I was planning to use the DTR output as the pullup resistor +5V source. But it looks like it's deasserted (-5V). Most rs-232 DTEs assert DTR. I can turn it on in my driver, but is it used for something else?

Thanks,

-Techtom

Status: the driver and the ISR are returning good samples. So the kernel work is finished. I've parsed/plotted the samples collected on my empeg by the driver in excel (see attached). Now the hard part... need to write the user program to parse the samples and extract the button codes...


Attachments
301830-Wallboxdata.PNG (1277 downloads)