Hi,
You need to add Power Manager Component into your project.
After the component is added, please configure it to have HSRUN mode and call:
/* Initialize Power Manager */
POWER_SYS_Init(&powerConfigsArr, POWER_MODES, &powerStaticCallbacksConfigsArr, 0);
/* Set power mode to HSRUN */
POWER_SYS_SetMode(configurationIndex, POWER_MANAGER_POLICY_AGREEMENT);
, where configurationIndex needs to be replaced by the index of the PowerManager configuration which is selected to HSRUN.
You can also see power_mode_switch example or the Documentation for usage scenarios.
Best regards,
Rares