b.liu | 1c74d69 | 2024-08-14 17:43:59 +0800 | [diff] [blame] | 1 | #include <stdlib.h>
|
| 2 | #include "ql/ql_common.h"
|
b.liu | bcf86c9 | 2024-08-19 19:48:28 +0800 | [diff] [blame] | 3 | #include "mbtk_log.h"
|
b.liu | 1c74d69 | 2024-08-14 17:43:59 +0800 | [diff] [blame] | 4 |
|
| 5 | void Ql_Powerdown(int mode)
|
| 6 | {
|
| 7 | switch (mode)
|
| 8 | {
|
| 9 | case 1:
|
| 10 | system("halt");
|
| 11 | break;
|
| 12 | case 2:
|
| 13 | system("reboot");
|
| 14 | break;
|
| 15 | default:
|
| 16 | printf("mode error");
|
| 17 | }
|
| 18 |
|
| 19 | return ;
|
| 20 |
|
| 21 | }
|
| 22 |
|
b.liu | bcf86c9 | 2024-08-19 19:48:28 +0800 | [diff] [blame] | 23 | void ql_lib_info_print()
|
| 24 | {
|
| 25 | MBTK_SOURCE_INFO_PRINT("ql_lib");
|
| 26 | }
|
| 27 |
|