Hi Experts,
Customer plans to use the same firmware code for both CPU1 and CPU2, and they would like to change peripheral configuration as follows. Therefore, customer would like to know how CPUx itself is able to know if it is CPU1 or CPU2. I mean, is there any useful flags/parameters for this ?
Can I have your Expert’s advice/comments on this, please?
If( “This firmware is running on CPU1” ){
InitGpio1(); // Initialize the shared GPIO pins (FILE: Gpio.c)
InitAdca1(); // Initialize the ADC-A (FILE: Adc.c)
InitEPwm1(); // Initialize the DAC-B (File: Dac.c)
InitDacb1(); // Initialize the EPwm (FILE: EPwm.c)
}
Else{
InitGpio2(); // Initialize the shared GPIO pins (FILE: Gpio.c)
InitAdca2(); // Initialize the ADC-A (FILE: Adc.c)
InitEPwm2(); // Initialize the DAC-B (File: Dac.c)
InitDacb2(); // Initialize the EPwm (FILE: EPwm.c)
}
Best regards,
Miyazaki