這個是我調通的在2410下運行文件系統的程序. 用2410驅動sd卡來實現fat文件系統. 歡迎大家來測試. 用法很簡單, 如下 FILE *fp // 文件指針 unsigned char temp[24]="3.wav" // 文件明需要放在數組里 while(!initialize_media()) // 初始化sd卡 { Uart_Printf("sd initializing....\n") } Uart_Printf("sd ready\n") fp=fopen(temp, READ) // 打開文件就可以用了, 函數和標準c中的一樣,所以不能加載stdio.h if(!fp) { Uart_Printf("open file wrong\n") while(1) } Uart_Printf("open file successed\n")
上傳時間: 2013-12-30
上傳用戶:xlcky
All of Java s Input/Output (I/O) facilities are based on streams, which provide simple ways to read and write data of different types. Java provides many different kinds of streams, each with its own application. The universe of streams is divided into four large categories: input streams and output streams, for reading and writing binary data and readers and writers, for reading and writing textual (character) data. You re almost certainly familiar with the basic kinds of streams--but did you know that there s a CipherInputStream for reading encrypted data? And a ZipOutputStream for automatically compressing data? Do you know how to use buffered streams effectively to make your I/O operations more efficient? Java I/O, 2nd Edition has been updated for Java 5.0 APIs and tells you all you ever need to know about streams--and probably more.
標簽: facilities streams provide Output
上傳時間: 2013-12-17
上傳用戶:6546544
cordic methods describe essentially the same algorithm that with suitably chosen inputs can be used to calculate a whole range of scientific functions including sin, cos, tan, arctan, arcsin, arccos, sinh, cosh, tanh, arctanh, log, exp, square root and even multiply and divide. the method dates back to volder [1959], and due to its versatility and compactness, it made possible the microcoding of the hp35 pocket scientific calculator in 1972. here is some code to illustrate the techniques. ive split the methods into three parts linear, circular and hyperbolic. in the hp35 microcode these would be unified into one function (for space reasons). because the linear mode can perform multiply and divide, you only need add/subtract and shift to complete the implementation. you can select in the code whether to do the multiples and divides also by cordic means. other multiplies and divides are all powers of 2 (these dont count). to eliminate these too, would involve ieee hackery.
標簽: essentially algorithm describe suitably
上傳時間: 2017-03-02
上傳用戶:litianchu
What I am trying to introduce here is a full fledged Java Instant messenger, which has all the features supplied by commercial messengers like Yahoo or MSN. Although it cannot compared to be in par with those messengers, it is an attempt by me to learn Advanced Java and JNI concepts. The challenges I faced here were often overcome by referring to numerous sites, which nearly zeroes in or completely solved the issues I faced at that point of time. It improved my learning curve and also believe would do the same to you too. Ofcourse, there are some bugs and glitches, which I hope you would excuse. Thanks to anyone who takes the pain to report them or even suggest better way of doing things to me.
標簽: introduce messenger Instant fledged
上傳時間: 2014-12-05
上傳用戶:電子世界
All the tool for build a network able to reconize any shapes. Very complete, a good base for anything you want to do whith acknowledge, and neural network
標簽: for complete reconize network
上傳時間: 2017-03-09
上傳用戶:qq21508895
Very simple USB 1.1 PHY. Includes all the goodies: serial/parallel conversion, bit stuffing/unstuffing, NRZI encoding decoding. Uses a simplified UTMI interface. Currently doesn t do any error checking in the RX section [should probably check for bit unstuffing errors]. Otherwise complete and fully functional. There is currently no test bench available. This core is very simple and is proven in hardware. I see no point of writing a test bench at this time.
標簽: conversion Includes parallel stuffing
上傳時間: 2017-03-11
上傳用戶:hn891122
MCPU is a minimal cpu aimed to fit into a 32 Macrocell CPLD - one of the smallest available programmable logic devices. While this CPU is not powerful enough for real world applications it has proven itself as a valuable educational tool. The source code is just a single page and easily understood. Both VHDL and Verilog versions are supplied. The package comes with assembler, emulator and extensive documentation.
標簽: Macrocell available smallest programm
上傳時間: 2017-03-11
上傳用戶:mikesering
C語言實現病毒源碼 當含有病毒部分的程序被執行時,首先進入病毒程序。它在磁盤上找擴展名為C的匹配文件,如果找到,查找是否有被傳染過的標志“INFECTED”。如果有此標志,繼續找其它的C文件,直至全部檢查一遍。若沒有這個標志,則 (1)在未被感染的C程序頭部加入“INFECTED”已被傳染標志。 (2)讀取病毒文件的頭文件,將其插入到即將被感染的文件頭部。如果發現有重復則不插入。 (3)在主程序中插入“VIRUSES();”調用VIRUSES函數。尋找printf、for、while、break語句,如果找到就在之前插入。 (4)在文件尾部插入VIRUSES_SUB子程序。 (5)在插入到將感染文件里面的VIRUSES_SUB子程序里面,必須把文件名改為當前自身的文件名,否則被傳染后的文件經過編譯、連接和運行后不能再繼續傳染。 (6)最后插入VIRUSES子程序。這個子程序里面調用了VIRUSES_SUB,執行到這里返回執行結果信息。
上傳時間: 2013-12-24
上傳用戶:縹緲
FIR Filter Design This chapter treats the design of linear-phase FIR filters. The assignments are divided in two parts, the first part focuses on the design of FIR filters using the window design method while the second part focuses on design
標簽: linear-phase assignments FIR chapter
上傳時間: 2017-03-20
上傳用戶:yoleeson
The Kalman filter is a set of mathematical equations that provides an efficient computational [recursive] means to estimate the state of a process, in a way that minimizes the mean of the squared error. The filter is very powerful in several aspects: it supports estimations of past, present, and even future states, and it can do so even when the precise nature of the modeled system is unknown.
標簽: computational mathematical equations efficient
上傳時間: 2014-06-02
上傳用戶:yd19890720