IAR
左氏浮夸
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
printf函数
/*************************************************************************** Function name: printf Parameter : *fmt : 数据显示的格式 Description : 根据提供的格式显示变量的数值 Return : void Autor & date :...转载 2018-01-17 10:06:34 · 255 阅读 · 0 评论 -
IAR中实现内联函数 inline
IAR中实现内联函数 inline 在IAR中的写法如下: #pragma inline int GetTwoByte(const char *cmd,int pos) { return ((((int)*(cmd+pos)) } 在Keil中的写法如下: __inline int GetTwoByte(const char *cmd,int pos)转载 2018-01-17 10:08:30 · 3130 阅读 · 0 评论 -
IAR中内嵌汇编指令
IAR中内嵌汇编指令方式如下: volatile char UART1_SR; #pragma required=UART1_SR char sFlag = 0; int main(void) { while (!sFlag) { asm(" ldr r2,[pc,#0] \n" /* r2 = address of sFlag转载 2018-01-17 10:44:05 · 3510 阅读 · 1 评论
分享