Skip to content

Commit

Permalink
pm configuration fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyungsin committed Jul 4, 2017
1 parent 219ffb3 commit b6b1aed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpu/sam0_common/include/periph_cpu_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ typedef uint32_t gpio_t;
*/
#define PM_NUM_MODES (3)
/** @todo we block all modes per default, until PM is cleanly implemented */
#ifndef PM_BLOCKER_INITIAL
#define PM_BLOCKER_INITIAL { .val_u32 = 0x01010101 }
#endif
/** @} */

#ifndef DOXYGEN
Expand Down
2 changes: 2 additions & 0 deletions drivers/periph_common/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
#define ENABLE_DEBUG (0)
#include "debug.h"

#ifndef FEATURE_PERIPH_PM
void __attribute__((weak)) pm_set_lowest(void) {}

void __attribute__((weak)) pm_off(void)
{
irq_disable();
while(1) {};
}
#endif

0 comments on commit b6b1aed

Please sign in to comment.