mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 18:13:49 +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
|
* @brief Power management configuration
|
||||||
*/
|
*/
|
||||||
#define PM_NUM_MODES (3U)
|
#define PM_NUM_MODES (2U)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,11 +33,10 @@ void pm_set(unsigned mode)
|
|||||||
LPC_SC->PCON = 0x00;
|
LPC_SC->PCON = 0x00;
|
||||||
cortexm_sleep(1);
|
cortexm_sleep(1);
|
||||||
break;
|
break;
|
||||||
case 2:
|
default:
|
||||||
/* enter sleep mode */
|
/* enter sleep mode */
|
||||||
LPC_SC->PCON = 0x00;
|
LPC_SC->PCON = 0x00;
|
||||||
cortexm_sleep(0);
|
cortexm_sleep(0);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user