Compiling Embedded C Code : Input Mapping

Input Mapping

You must build a tree-like structure of functions to perform input mapping. In the example, there is only one module other than main, so it looks like this:

r2main.c:
void do_inputs()
{
m1_do_inputs();
}
 
m1.c:
void m1_do_inputs()
{
input_mapf(&rep_X_IN1);
input_mapf(&rep_X_IN2);
}
 

The input_mapf() function does the following: