missinglinkelectronics / libuio

UserspaceIO helper library
GNU Lesser General Public License v2.1
30 stars 28 forks source link

Added search by base address helper function #5

Closed asm2750 closed 6 years ago

asm2750 commented 9 years ago

Added a helper function that searches the memory map members of each UIO instance based on a given base address and returns the first UIO info structure that has the matching base address.

asm2750 commented 9 years ago

Should be helpful for FPGA based and other embedded systems. Most custom peripherals are accessed through a base address already but the device tree that gets generated by tools tend to not use unique names for the field that UIO uses making it hard to know if the correct peripheral is being used.

manut commented 6 years ago

Looks good, but please fold the changes to one commit and don't use camelcase for variable names.

asm2750 commented 6 years ago

Ah ok, so just change the variable names and submit it as one pull request then?