Hi Eugene Hiihtaja,
If you want to use the LLWU_P7 as wakeup source, you need to configure the PTC3 as the GPIO pin, and enable the internal pull up.
You can refer to this configuration, this is the LLUW_P10 PTC6 configuration:
const port_pin_config_t portc6_pin78_config = {
kPORT_PullUp,
kPORT_FastSlewRate,
kPORT_PassiveFilterDisable,
kPORT_OpenDrainDisable,
kPORT_LowDriveStrength,
kPORT_MuxAsGpio,
kPORT_UnlockRegister};
PORT_SetPinConfig(PORTC, 6U, &portc6_pin78_config);
LLWU_SetExternalWakeupPinMode(LLWU, LLWU_WAKEUP_PIN_IDX, LLWU_WAKEUP_PIN_TYPE);
About details, you can refer to the K82 sdk, power_manager project, APP_SetWakeupConfig function.
Wish it helps you!
If you still have question about it, please kindly let me know.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------