We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e66498 commit 5f1a269Copy full SHA for 5f1a269
boards/arm/qemu/qemu-armv7a/src/qemu_boardinit.c
@@ -24,6 +24,7 @@
24
* Included Files
25
****************************************************************************/
26
27
+#include <nuttx/arch.h>
28
#include <nuttx/config.h>
29
#include <stdint.h>
30
#include <nuttx/board.h>
@@ -113,3 +114,13 @@ void board_late_initialize(void)
113
114
qemu_bringup();
115
}
116
#endif /* CONFIG_BOARD_LATE_INITIALIZE */
117
+
118
+#if defined(CONFIG_BOARDCTL_POWEROFF) && defined(CONFIG_ARM_PSCI)
119
+int board_power_off(int status)
120
+{
121
+ UNUSED(status);
122
123
+ up_systempoweroff();
124
+ return 0;
125
+}
126
+#endif
0 commit comments