1、【移除】CMSIS API 调用。
Signed-off-by: armink <armink.ztl@gmail.com>
This commit is contained in:
parent
3128c01433
commit
ea358452a2
|
|
@ -38,7 +38,6 @@
|
|||
#include "modmachine.h"
|
||||
|
||||
#include <rthw.h>
|
||||
#include <board.h>
|
||||
|
||||
#define PYB_RESET_SOFT (0)
|
||||
#define PYB_RESET_POWER_ON (1)
|
||||
|
|
@ -101,7 +100,8 @@ STATIC mp_obj_t machine_unique_id(void) {
|
|||
MP_DEFINE_CONST_FUN_OBJ_0(machine_unique_id_obj, machine_unique_id);
|
||||
|
||||
STATIC mp_obj_t machine_reset(void) {
|
||||
NVIC_SystemReset();
|
||||
//TODO
|
||||
MP_RTT_NOT_IMPL_PRINT;
|
||||
return mp_const_none;
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_0(machine_reset_obj, machine_reset);
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ MP_DEFINE_CONST_FUN_OBJ_0(mod_os_sync_obj, os_sync);
|
|||
|
||||
STATIC mp_obj_t mp_os_mount(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
|
||||
//TODO
|
||||
rt_kprintf("NOT implement, Please add for your board!\n");
|
||||
MP_RTT_NOT_IMPL_PRINT;
|
||||
return mp_const_none;
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_KW(mp_os_mount_obj, 2, mp_os_mount);
|
||||
|
|
|
|||
Loading…
Reference in New Issue