📄 atm270.c
字号:
/*
DM270 ARM Evaluation Software
(c)Texas Instruments 2003
*/
/**
\file atm270.c
\brief Address trace module related APIs
*/
#include <atm270.h>
Uint16 *ATM_addr=(Uint16*)ATM_ADDR(ATM00); ///< Pointer to addresses stored in 0x30D04-0x30D7E
/**
\brief Set address trace module mode
Selects, if all 32-bits of the ARM instruction address,
or only lower 16-bits of the ARM instruction address will be stored
\param addressSize 0:store 32-bit address (ATM_32BIT_ADDR), 1:store 16-bit address (ATM_16BIT_ADDR)
\return if success, \c E_PASS, else error code
\par Example:
\code
#include <system/atm270.h>
...
ATM_STOP(); // stop storing ARM instruction address
ATM_setMode(1); // store only lower 16-bits of ARM instruction address
ATM_START(); // start storing ARM instruction address
...
ATM_STOP(); // stop storing ARM instruction address, address trace can be seen in registers 0x30D04-0x30D7E
\endcode
*/
STATUS ATM_setMode( Uint8 addressSize){
ATM_FSET( ATMCTRL, LOW16, addressSize);
return E_PASS;
}
/**
\brief Get address trace module mode
\return 0: 32-bit address is stored (ATM_32BIT_ADDR), \n 1: 16-bit address is stored (ATM_16BIT_ADDR)
\see ATM_setMode()
*/
Uint8 ATM_getMode(){
return ATM_FGET( ATMCTRL, LOW16);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -