Hi Team
In PWM and ICU which is shared by HET module has pre defined configuration like HET[0] to HET[15] for PWM and HET[16] to HET[31] for ICU module.
In both MCAL modules ICU_HET.C and PWM_HET.C MODULE_HET_Init function will force the port Direction value with bellow code
HET_PRY(RegBaseAddress) = 0x0000FFFFU; /* Channels 0 to 15 are priority level 1, 16 to 31 priority level 2 */
HET_PFR(RegBaseAddress) = 0x00000700U;
HET_CGR(RegBaseAddress) = 0x00030001U;
HET_PDR(RegBaseAddress) = 0x00U;
HET_PULLDIS(RegBaseAddress) = 0xFFFF0000U;
HET_PSL(RegBaseAddress) = 0xFFFF0000U;
HET_DIR(RegBaseAddress) = 0x0000FFFFU;
Problem is, many application do not want to permit any changes to the port with Port_SetPinDirection as a safety critical requirement.
Requirement is to modify MCAL to accept the needed value during configuration stage itself.
Please suggest.
Thanks
Venkat