📄 sysasm.s
字号:
;=============================================================================; ; FILE: sysasm.s ; ; DESCRIPTION: VeriSuite Syscon driver assembly helper functions.; ; DATE: 03/04/2002; ; Copyright(c) Cirrus Logic Corporation, All Rights Reserved ;;=============================================================================;==============================================================================; EXPORTED Functions.;============================================================================== EXPORT SetAsyncMode EXPORT SetSynchMode EXPORT SetFastBusMode;==============================================================================; Read-only code area.;============================================================================== AREA |Assembly$$Code|, CODE, READONLY;------------------------------------------------------------------------------; SetAsyncMode;------------------------------------------------------------------------------; Enter asynchronous mode;------------------------------------------------------------------------------SetAsyncMode ; ; Set clocking mode to Asynchronous ; mrc p15, 0, r0, c1, c0, 0 orr r0, r0, #0xc0000000 mcr p15, 0, r0, c1, c0, 0 mov pc, lr ;------------------------------------------------------------------------------; SetSynchMode;------------------------------------------------------------------------------; Enter synchronous mode;------------------------------------------------------------------------------SetSynchMode ; ; Set the clocking mode to Sychronous ; mrc p15, 0, r0, c1, c0, 0 bic r0, r0, #0xc0000000 orr r0, r0, #0x40000000 mcr p15, 0, r0, c1, c0, 0 mov pc, lr ;------------------------------------------------------------------------------;;------------------------------------------------------------------------------; Enter asynchronous mode;------------------------------------------------------------------------------SetFastBusMode ; ; Se the clocking mode to fast bus. ; mrc p15, 0, r0, c1, c0, 0 bic r0, r0, #0xc0000000 mcr p15, 0, r0, c1, c0, 0 mov pc, lr END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -