1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu: lpc1768: correct number of modes.

This commit is contained in:
Bas Stottelaar 2018-04-04 11:37:42 +02:00
parent 16ff8a51bd
commit 6f99dce581
2 changed files with 2 additions and 3 deletions

View File

@ -71,7 +71,7 @@ typedef enum {
/**
* @brief Power management configuration
*/
#define PM_NUM_MODES (3U)
#define PM_NUM_MODES (2U)
#ifdef __cplusplus
}

View File

@ -33,11 +33,10 @@ void pm_set(unsigned mode)
LPC_SC->PCON = 0x00;
cortexm_sleep(1);
break;
case 2:
default:
/* enter sleep mode */
LPC_SC->PCON = 0x00;
cortexm_sleep(0);
break;
}
}