Skip to content

Commit

Permalink
fe310: fix power management configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
nmeum committed Jan 30, 2020
1 parent 0d3180d commit bd2f5fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 7 additions & 0 deletions cpu/fe310/include/periph_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
extern "C" {
#endif

/**
* @name Power management configuration
* @{
*/
#define PROVIDES_PM_SET_LOWEST
/** @} */

/**
* @brief Length of the CPU_ID in octets
*/
Expand Down
4 changes: 0 additions & 4 deletions cpu/fe310/periph/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ void pm_set_lowest(void)
__asm__ volatile ("wfi");
}

void pm_off(void)
{
}

void pm_reboot(void)
{
AON_REG(AON_WDOGKEY) = AON_WDOGKEY_VALUE;
Expand Down

0 comments on commit bd2f5fe

Please sign in to comment.