Jelline Old Blogjelline.blog.chinaunix.net
已从Contiki转到网络编码。我的独立博客:http://sparkandshine.net,感谢您的访问。
我目前在INPT攻读博士,研究方向为网络编码在无线挑战网络中的理论与应用,欢迎交流。 个人独立博客:http://sparkandshine.net
发布时间:2012-04-06 20:10:15
本文给出了移植Contiki内核到MSP-EXP430G2的一些细节,并给出工程源文件。......【阅读全文】
发布时间:2012-03-30 20:21:49
本文回答了为什么需要内核模块动态加载LKM,通过一个简单实例描述了插入、卸载模块过程,接着以实例讲述模块间调用问题及应用程序怎样调用模块内函数,最后给出一些关于模块学习资料。......【阅读全文】
发布时间:2012-03-29 11:54:01
本文讲述了Coffee文件系统移植重要一步--宏映射,分析了COFFEE_READ、COFFEE_WRITE和COFFEE_ERASE宏映射的源码,给出一个测试例子。最后给出个人对Coffee的一些看法。......【阅读全文】
发布时间:2012-03-29 11:45:47
文讲述了Contiki\core\cfs\目录下的文件关系,理清这些关系,有助于移植、应用开发。......【阅读全文】
发布时间:2012-03-24 21:13:47
本文详细记录了Contiki内核在IAR+MSP430下移植步骤,遇到的问题,分析解决,最后附上工程源码。......【阅读全文】
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;
}
该怎么解决呢?