The
stm_dspace_init()
function parses the pin names and splits them into tokens. For example, “IOP 1-3” is a valid reference for an array of pins on the DS1103 board. The name is interpreted in the following way:
● IOP - The type of the signal
● “1” and “3” - The boundaries of the bit arrayAfter pin name processing is performed, the function
stm_dspace_global_initialize()
is called. This function calls the initialization function of the special part of the driver.The
stm_dspace_get_driver_func()
function selects the appropriate I/O access function. The function pointer is saved in the Rational Statemate element data structure and is used by the driver function.