引言之前,曾经在orpsoc的平台上,测试验证过其sd card controller的linux的驱动,但是并不是很完美,经过努力,终于在eCos下完成了其全部功能的验证,包括驱动层验证,文件系统的挂载,应用层的创建文件,打开文件,复制文件,源文件与复制文件的比较等,此外,还有创建目录,切换目录等操作。本小节就分享一下整个验证过程。关于基于orpsoc+linux下的sd card controller验证,请参考:http://blog.csdn.net/rill_zhen/article/details/9111213 1,硬件部分1>基本信息本次验证,采用的是最初的orpsoc的 Read More
posted @ 2013-07-18 18:24
javawebsoa
Views(566)
Comments(0)
Diggs(0)
扩展问题:编写一个函数,给定一个链表的头指针,要求只遍历一次,将单链表中的元素顺序反序。#include #include #include #include using namespace std;struct node{ int data; node *next;};void reverselist(node* &head){ node *p,*q; p=head->next; q=head->next->next; if(q==NULL)return; //若链表只有一个元素,则不操作 p->next=NULL; while(q->next!=NUL Read More
posted @ 2013-07-18 18:22
javawebsoa
Views(258)
Comments(0)
Diggs(0)
题目地址:http://poj.org/problem?id=3892 题目大意:RSA分解。 这儿的N比较大,要用高精度,如果一般的肯定分解不了,但是这儿有一个限制 |q-kp|T*T 那么T++ 如果V*V+4kn<T*T 那么V++ 如果V*V+4kn==T*T 就解方程。 然后就剩下高精度了。。。。 Read More
posted @ 2013-07-18 18:20
javawebsoa
Views(204)
Comments(0)
Diggs(0)
Problem Description Mo and Larry have devised a way of encrypting messages. They first decide secretly on the number of columns and write the message (letters only) down the columns, padding with extra random letters so as to make a rectangular array of letters. For example, if the message is “There Read More
posted @ 2013-07-18 18:19
javawebsoa
Views(253)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号