Commit Graph

7 Commits

Author SHA1 Message Date
Doug Brown
145487d388 Added GPL header to all of my source files. 2012-05-25 20:21:04 -07:00
Doug Brown
6f24f97df5 Got rid of a few magic numbers, cleaned up more code 2012-05-13 17:48:35 -07:00
Doug Brown
540e04331a Fixed the ordering of the chips -- I had the bytes reversed. Now, when I write/read a continuous stream of data, the bytes will correspond with the correct chips. 2011-12-17 11:18:56 -08:00
Doug Brown
e0977a9339 Created read and write cycle functions, along with a block read function. I think this will look better...
I also changed the port module so it doesn't needlessly update the data direction register over SPI if it's being told to set the same value it had before.
2011-12-11 10:12:22 -08:00
Doug Brown
7db22e08af Fixed a few stupid bugs -- it's now reading data correctly. 2011-12-10 13:02:21 -08:00
Doug Brown
fc44d70c4f Finished writing the electrical test routine, and fixed a mistake in how I named a few functions in ports.c.
I'm not completely done with the electrical test because it only counts errors right now. So I need to implement a framework to determine which pins are shorted rather than just counting them.
2011-12-04 16:13:30 -08:00
Doug Brown
1595c69890 OK -- so I separated the actual port code from the external memory controller code. I think this makes more sense.
It does add some complexity to the code. I may be going through a chain of calls just to turn the CS pin on, for instance. Hopefully I'm not going too crazy with this.

Anyway, this means that I can control the ports from a SIMM electrical test routine using the same types of functions that the actual programming  controlling code would use, without having to duplicate a bunch of port definitions and bit manipulation. I made sure to add all the functions I can think of needing to the ports module. We'll see if I got them all!
2011-11-27 00:01:29 -08:00