本文整理匯總了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)