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:
parent
16ff8a51bd
commit
6f99dce581
@ -71,7 +71,7 @@ typedef enum {
|
||||
/**
|
||||
* @brief Power management configuration
|
||||
*/
|
||||
#define PM_NUM_MODES (3U)
|
||||
#define PM_NUM_MODES (2U)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user