Look in the generated files around synergy\ssp\src\driver\r_riic\hw\common\hw_riic_common.h. Not only could you insert code into some of these, but they have true/false return functions to check if the pin state is low or high. Note that when you modify the generated code, make a backup of it and set the file to read only, so you don't lose the code when it regenerates.
↧