commit | 281ac461b7e33a1b6a333bf16976dafdb6e1e0b9 | [log] [tgz] |
---|---|---|
author | liubin <b.liu@mobiletek.cn> | Wed Jul 19 14:22:54 2023 +0800 |
committer | liubin <b.liu@mobiletek.cn> | Wed Jul 19 14:22:54 2023 +0800 |
tree | 54a38799b30d10f11e2e92060aa609576918cf59 | |
parent | 19cda4a15590ef1cbab045b955dfa67ed56ec009 [diff] [blame] |
Add toolchain and mbtk source Change-Id: Ie12546301367ea59240bf23d5e184ad7e36e40b3
diff --git a/mbtk/ql_lib/src/ql_common.c b/mbtk/ql_lib/src/ql_common.c new file mode 100755 index 0000000..70d0ad3 --- /dev/null +++ b/mbtk/ql_lib/src/ql_common.c
@@ -0,0 +1,21 @@ +#include <stdlib.h> +#include "ql/ql_common.h" + +void Ql_Powerdown(int mode) +{ + switch (mode) + { + case 1: + system("halt"); + break; + case 2: + system("reboot"); + break; + default: + printf("mode error"); + } + + return ; + +} +