Dear NXP Hello,
I am using the NXP "adc_swtrigger_mpc5748g" project to debug and learn the ADC peripheral and how it works.
I have a question about the pin_mux.c generated file. In this file there is a structure called "g_pin_mux_InitConfigArr". This buffer resemble lot to json file structure and each key start with ".", this a little bit new for me because I come from Texas Instrument MCUs.
Could someone please clarity how this buffer is used and the data filled in corresponds to what ?
Thank you in advance,
S.Tarik
Solved! Go to Solution.
Hi,
g_pin_mux_InitConfigArr is array of structures of type pin_settings_config_t.
A designated initialization of structures is used here, using ‘.fieldname =’ before the element value.
Designated Initialization allows structure members to be initialized in any order. This feature has been added in C99 standard.
Refer for example to https://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html
BR, Petr
Hi,
g_pin_mux_InitConfigArr is array of structures of type pin_settings_config_t.
A designated initialization of structures is used here, using ‘.fieldname =’ before the element value.
Designated Initialization allows structure members to be initialized in any order. This feature has been added in C99 standard.
Refer for example to https://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html
BR, Petr