Jelline Old Blogjelline.blog.chinaunix.net
已从Contiki转到网络编码。我的独立博客:http://sparkandshine.net,感谢您的访问。
我目前在INPT攻读博士,研究方向为网络编码在无线挑战网络中的理论与应用,欢迎交流。 个人独立博客:http://sparkandshine.net
发布时间:2012-01-07 14:32:58
本文将Linux中find、grep、xargs整理下,包括单个命令用法及混合命令用法。......【阅读全文】
发布时间:2011-12-15 08:47:05
在填写一些资料时,有时需要在方括号打勾√或者在数字上打勾√,本文介绍了Word 2003在方括号打勾√及在数字上打勾√的方法。......【阅读全文】
发布时间:2011-11-18 20:13:07
本文介绍了小软件Launchy(用于快速打开程序及文档,可以很大程度从鼠标解放出来,极大增加效率),Launchy配置,最后给开始-运行下快捷命令。......【阅读全文】
发布时间:2011-10-19 21:11:20
Adobe Acrobat 9 Pro运行一段时间,提示序列号失效。本文给出解决方法,即先删除文件Cache.db,再输入序列号。......【阅读全文】
Jelline2014-09-14 09:24
vosamo007:Jelline大神,有个问题请教你啊。我在cc2538上移植contiki,下面这段程序报错
unsigned long __attribute__((naked)) //Error[Pe079]: expected a type specifier,Error[Pe141]: unnamed prototyped parameters not allowed when body is present
cpu_cpsid(void) //Error[Pe130]: expected a "{"
{
unsigned long ret;
/* Read PRIMASK and disable interrupts */
__asm(" mrs r0, PRIMASK\n"
" cpsid i\n"
" bx lr\n"
: "=r" (ret));
/* The inline asm returns, we never reach here.
* We add a return statement to keep the compiler happy */
return ret;
}
该怎么解决呢?
vosmo007,你好。我很长一时间没弄Contiki,手头也没有源码,你的问题,对现在的我很陌生,很抱歉。
回复 | 举报vosamo0072014-03-27 22:29
Jelline大神,有个问题请教你啊。我在cc2538上移植contiki,下面这段程序报错
unsigned long __attribute__((naked)) //Error[Pe079]: expected a type specifier,Error[Pe141]: unnamed prototyped parameters not allowed when body is present
cpu_cpsid(void) //Error[Pe130]: expected a "{"
{
unsigned long ret;
/* Read PRIMASK and disable interrupts */
__asm(" mrs r0, PRIMASK\n"
" cpsid i\n"
" bx lr\n"
: "=r" (ret));
/* The inline asm returns, we never reach here.
* We add a return statement to keep the compiler happy */
return ret;
}
该怎么解决呢?