- Add suspend action for user defined suspend behavior - Disable softpwm led when suspending
19 lines
342 B
C
19 lines
342 B
C
#ifndef SUSPEND_H
|
|
#define SUSPEND_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
|
|
void suspend_idle(uint8_t timeout);
|
|
void suspend_power_down(uint8_t timeout);
|
|
bool suspend_wakeup_condition(void);
|
|
void suspend_wakeup_init(void);
|
|
|
|
#ifdef SUSPEND_ACTION
|
|
void suspend_power_down_action(void);
|
|
void suspend_wakeup_init_action(void);
|
|
#endif
|
|
|
|
#endif
|