Atmel Start Sleep Manager Documentation for SAMD21?

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,
I'm trying to create a simple code to blink a LED and then sleep, and when I push a button to create an external interrupt to wake up the microcontroller to blink the led again and back to sleep.

 

I'm using a SAMD21G18A and created a project using the Atmel Start.

 

First I tried to create just a external interrupt with callback function using the External Interrupt driver to blink the led faster and worked well.

But when I added the sleep manager, I realized that it isn't the Sleep Manager that most of the people on the foruns are using. It's and sleep manager based on events.

 

I tried to find any documentation about this sleep manager and can't find anything, I just find the sleep manager for ASF3. 
Does anyone know where I can find the correct documentation? I don't know if I'm doing the correct sleep, I don't know how to select the type of sleep (IDLE 1 or 2, standby) and I don't know how to make the SAMD21 wakeup again.

 

Help!

Last Edited: Mon. Apr 6, 2020 - 02:26 PM