Jelline Old Blogjelline.blog.chinaunix.net
已从Contiki转到网络编码。我的独立博客:http://sparkandshine.net,感谢您的访问。
我目前在INPT攻读博士,研究方向为网络编码在无线挑战网络中的理论与应用,欢迎交流。 个人独立博客:http://sparkandshine.net
发布时间:2011-06-22 22:13:48
本文用另一种思路重新组织《图论及其应用》相关知识。首先,介绍了如何图论建模;接着,给出各种典型图论模型;再者,介绍相关知识对模型进行解答;最后,补充一些图论其他知识。......【阅读全文】
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;
}
该怎么解决呢?