arch: xtensa: Call the waiti instruction in up_idle()
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
parent
c85cb17f3a
commit
da3fb9c94f
@ -92,4 +92,11 @@ void up_idle(void)
|
|||||||
leave_critical_section(flags);
|
leave_critical_section(flags);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* This would be an appropriate place to put some MCU-specific logic to
|
||||||
|
* sleep in a reduced power mode until an interrupt occurs to save power
|
||||||
|
*/
|
||||||
|
|
||||||
|
asm("waiti 0");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user