What is the FlagStatus

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

What is the FlagStatus

1,890 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by blasiis on Wed Apr 21 05:15:03 MST 2010
What is the __IO FlagStatus definition ?
Where can I find a manual for this syntax ?

Thanks
0 项奖励
回复
3 回复数

1,849 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by blasiis on Wed Apr 21 05:57:08 MST 2010
Thanks all
0 项奖励
回复

1,849 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed Apr 21 05:32:16 MST 2010
[FONT=Courier New]__I[/FONT], [FONT=Courier New]__O[/FONT] and [FONT=Courier New]__IO[/FONT] are defined in [FONT=Courier New]core_cm3.h[/FONT] (or[FONT=Courier New] core_cm0.h[/FONT] for LPC11) within the CMSIS library projects.

There is documentation on CMSIS in the docs subdirectory within the CMSIS projects.

For more general information on CMSIS and support for it within LPCXpresso, please see http://lpcxpresso.code-red-tech.com/LPCXpresso/node/21

Regards,
CodeRedSupport
0 项奖励
回复

1,849 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by igorsk on Wed Apr 21 05:28:09 MST 2010
__I, __O and __IO are defined in the core_cm3.h header. Basically, they add a volatile specifier for the compiler and provide a hint for the user.
/**
 * IO definitions
 *
 * define access restrictions to peripheral registers
 */

#ifdef __cplusplus
#define     __I     volatile                  /*!< defines 'read only' permissions      */
#else
#define     __I     volatile const            /*!< defines 'read only' permissions      */
#endif
#define     __O     volatile                  /*!< defines 'write only' permissions     */
#define     __IO    volatile                  /*!< defines 'read / write' permissions   */

I'm not sure where "FlagStatus" is from, but try searching your headers.
0 项奖励
回复