mirror of
https://github.com/apache/nuttx.git
synced 2026-08-20 21:18:23 +00:00
risc-v: Add WFI to up_idle and fix compile issue
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
parent
d426875fcf
commit
6f18747dc2
1 changed files with 9 additions and 0 deletions
|
|
@ -53,4 +53,13 @@ void up_idle(void)
|
|||
*/
|
||||
|
||||
nxsched_process_timer();
|
||||
#else
|
||||
|
||||
/* 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("WFI");
|
||||
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue