We would like to drive two ps/2 interfaces via nrf52840 gpio pins (i.e., reading the protocol bit by bit, via gpio interrupts). A trouble is that ps/2 is timing sensitive.
Namely, a proof of concept of the driver running with interrupt priority 4 is running fine only as long as bluetooth is disabled. Once bluetooth gets enabled, the driver is no longer usable.
Therefore we are thinking about implementing the driver with direct latency interrupts, running it at the same or higher interrupt priority as radio.
We fear that this (i.e., preempting radio interrupts) might easily introduce new issues that would be very hard to investigate or even detect, especially with bluetooth communication.
Questions:
- In your expert opinion, is the above a feasible idea?
- In your expert opinion, is the above a good idea?
- How safe is it?