STANDBY Mode for ATsamd21G18

Hello,

I am currently using a sparkfun samd21 mini dev board that utilizes the ATsamd21G18 Microcontroller. I need to get this board into a STANDBY power save Mode. I have tried to use the AVR/sleep.h library but it is not compatible with this microcontroller. I was wondering if anyone had any examples or advice on how to accomplish this?

Guidance would be greatly appreciated!

Thank you

Some background links for the samd21 mini dev board and ATsamd21G18 microcontroller.

https://www.sparkfun.com/products/13664?_ga=1.216133333.298992615.1456150415

https://cdn.sparkfun.com/datasheets/Dev/Arduino/Boards/Atmel-42181-SAM-D21_Datasheet.pdf

Don't think there is a library for sleep yet for that controller. But you still can put it to sleep if you read page 125 (starting at the bottom) of the datasheet.