| 5 | * Src: |
| 6 | * [http://orbit-lab.org/browser/USBNoiseGenreator/trunk/firmware/src/commands.c commands.c]: includes the commands.h header file which is located right below it on the list of files. These are a bunch of hook definitions. The first few seem to be user defined code. |
| 7 | *There is one that is incomplete: DR_GetStatus. |
| 8 | *The two functions below that (Clear feature and set feature) are simply defined as return true, this could be a problem, i'm guessing the function definition should be more than just that. |
| 9 | *DR_VendorCmnd: what is the array SetUpDat and where is it defined? What is being stored in it becuase the only things mentioned in the comments are only relevent for SetUpDat[2 and 3]. The function is a switch structure based off of the value in SETUPDAT[1] |
| 10 | * [http://orbit-lab.org/browser/USBNoiseGenreator/trunk/firmware/src/commands.h commands.h]: defines all the variables that are used in commands.c but none of the functions are prototyped here. Do they need to be prototyped? no files are included |
| 11 | * [http://orbit-lab.org/browser/USBNoiseGenreator/trunk/firmware/src/eeprom_init.c eeprom_init.c]: includes usrp_commons.h, usrp_commands.h, and spi.h |
| 12 | *write_byte_msb takes in unsigned char v and circular shifts it 8 times each time outputting the msb |
| 13 | *eeprom_init configures the IO ports |
| 14 | * [http://orbit-lab.org/browser/USBNoiseGenreator/trunk/firmware/src/eeprom_io.c eeprom_io.c]: includes eeprom_io.h, i2c.h, delay.h. and has a read and write function defined within it |
| 15 | * [http://orbit-lab.org/browser/USBNoiseGenreator/trunk/firmware/src/eeprom_io.h eeprom_io.h]: prototypes the two functions used in eeprom_io.c |
| 16 | * [http://orbit-lab.org/browser/USBNoiseGenreator/trunk/firmware/src/error_no.h error_no.h]: defines a lot of errors |
| 17 | * [http://orbit-lab.org/browser/USBNoiseGenreator/trunk/firmware/src/fpga.c fpga.c]: includes noisegen_regs.h, error_no.h, fpga.h |
| 18 | *possible typo: ConfigSatate |
| 19 | *fpga_done only has a return true definition, perhaps more code is required |
| 20 | * [http://orbit-lab.org/browser/USBNoiseGenreator/trunk/firmware/src/fpga.h fpga.h]: defines the states of the xilinx state machine. prototypes the functions used in fpga.c |
| 21 | * [http://orbit-lab.org/browser/USBNoiseGenreator/trunk/firmware/src/fpga_specific.c fpga_specific.c]: include fpga_specific.h |
| 22 | *return types are all false on these functions |
| 23 | *functions to read and write various configuration bits and send rf data |
| 24 | * [http://orbit-lab.org/browser/USBNoiseGenreator/trunk/firmware/src/fpga_specific.h fpga_specific.h]: defines the ports used but doesn't prototype the functions used in fpga_specific.c |
| 25 | * [http://orbit-lab.org/browser/USBNoiseGenreator/trunk/firmware/src/gpif.c gpif.c]: configures the general purpose interface for fx2, most of code has do not edit warnings |
| 26 | *gpifinit function is added after a line that says "you may add additional code below" |
| 27 | *all the do not edit sections have been commented out |
| 28 | * [http://orbit-lab.org/browser/USBNoiseGenreator/trunk/firmware/src/init_gpif.c init_gpif.c]: include usrp_common.h |
| 29 | *some very strange comments in this file, not sure if they are alerting to current problems or ones that were already addressed previously |
| 30 | * [http://orbit-lab.org/browser/USBNoiseGenreator/trunk/firmware/src/led.c led.c]: includes fx2regs.h, noisegen_regs.h, led.h |
| 31 | *all functions (except for the switch) return 0 |
| 32 | *not entirely sure what the switch structure is trying to accomplish, nor what the error blink fnc above it is doing |
| 33 | * [http://orbit-lab.org/browser/USBNoiseGenreator/trunk/firmware/src/led.h led.h]: defines the cases for the switch and also all the functions used in led.c |