I am working on programming a TI MSP432. We have 4 different devices on a single I2C line.
In order to keep our codebase legible we keep the functions pertaining to different devices in different C files. The files were originally developed with only one device on the I2C line, and therefore the I2C interrupts are in the individual files.
What is the proper way to integrate these files? Do we just put the I2C interrupt in the main file, and have it call a function in each file? Or somehow dynamically change what interrupt is called, or something else?