本文整理汇总了Python中cortex_m.CortexM.reset方法的典型用法代码示例。如果您正苦于以下问题:Python CortexM.reset方法的具体用法?Python CortexM.reset怎么用?Python CortexM.reset使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cortex_m.CortexM
的用法示例。
在下文中一共展示了CortexM.reset方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: resetn
# 需要导入模块: from cortex_m import CortexM [as 别名]
# 或者: from cortex_m.CortexM import reset [as 别名]
def resetn(self):
"""
reset a core. After a call to this function, the core
is running
"""
#Regular reset will kick NRF out of DBG mode
logging.debug("target_nrf52.reset: enable reset pin")
self.writeMemory(RESET, RESET_ENABLE)
#reset
logging.debug("target_nrf52.reset: trigger nRST pin")
CortexM.reset(self)
示例2: reset
# 需要导入模块: from cortex_m import CortexM [as 别名]
# 或者: from cortex_m.CortexM import reset [as 别名]
def reset(self, software_reset=False):
# Always use software reset for LPC4330 since the hardware version
# will reset the DAP.
CortexM.reset(self, True)
示例3: reset
# 需要导入模块: from cortex_m import CortexM [as 别名]
# 或者: from cortex_m.CortexM import reset [as 别名]
def reset(self):
# halt processor
self.halt()
# not remap 0x0000-0x0020 to anything but the flash
self.writeMemory(0x400FC040, 1)
CortexM.reset(self)
示例4: reset
# 需要导入模块: from cortex_m import CortexM [as 别名]
# 或者: from cortex_m.CortexM import reset [as 别名]
def reset(self, software_reset=False):
CortexM.reset(self, False)
示例5: resetn
# 需要导入模块: from cortex_m import CortexM [as 别名]
# 或者: from cortex_m.CortexM import reset [as 别名]
def resetn(self):
"""
reset a core. After a call to this function, the core
is running
"""
CortexM.reset(self)