Cascoda / ca821x-posix

Library for posix systems to connect the ca821x-api to an available interface (usb/kernel driver)
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Solidify Deinitialisation #8

Closed CiaranWoodward closed 6 years ago

CiaranWoodward commented 6 years ago

The deinitialisation of the exchanges is in need of a rework.

Currently, the generic static deinitialisation is a bit mixed up with the p[latform-specific. This would mean deinitialising a kernel exchange would kill the resources that the usb-exchange is using.

The usb deinitialisation has been in need of a rework for a while, as it doesn't wait for the deinit to be completed, which seems to have implication for program restarting.

CiaranWoodward commented 6 years ago

Fixed usb & refactored deinit