periph_low_power
Low Power Modes (sleep, deep sleep, power-down) 
This example allows the user to enter the low power modes and wake-up using general purpose port pin. 

Compile and run

Please see application note for further details.