1. Which part of RX driver code, fills the Interrupt Vector Table with all the vectors? For example, when CMI0 interrupt happens, CPU will fetch the vector from (IntBase + 0070h). But who actually fill this table location with the vector?
2. How many different "standard" or usual ways can the vector table be filled?
3. If an interrupt is not used in the program, e.g CMI1 is not used, then what would be the vector value in (IntBase + 0074h)?
In reply to FrankL:
In reply to osmonn:
Enumerations permit the declaration of named constants in a more convenient and structured fashion than does #define.
The enums you show can be used as vector number in interrupt definitions.
Smart Configurator uses it as index to handle the call of interrupt callback functions. In Smart Configurator all interrupt vectors are fixed. The interrupt routines call interrupt callback routines via an user defined array of pointers to callback functions. This makes it possible for users to modify the pointer to the callback function at run time and use different callback functions depending on the actual function.