blob: 2ffade9193cfbbbabad18c1092fdb4d1d405c520 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/*
* Code generated from Atmel Start.
*
* This file will be overwritten when reconfiguring your Atmel Start project.
* Please copy examples or other code you want to keep to a separate file or main.c
* to avoid loosing it when reconfiguring.
*/
#include "atmel_start.h"
#include "sleep_manager_main.h"
static struct sleepmgr_ready_to_sleep_cb sleepmgr_cb;
static void sleep_cb(struct sleepmgr_ready_to_sleep *const ready)
{
ready->ready = false;
}
void sleep_manager_init(void)
{
sleepmgr_init();
sleepmgr_cb.cb = sleep_cb;
sleepmgr_register_ready_to_sleep_callback(&sleepmgr_cb);
}
|