ovidiucp/TinyWebServer — pull request #6 by Hardcore-fs (2012-01-26 01:35:13+00:00)
Title: Multiple changes in various commits

Hi,
I've been over the code and cleaned up a few more things including that damned SPI_FULL_SPEED thing.
The last memory leak was not the cause, but that SPI bug is FINALLY dead.... it is full speed ahead.

1.In ALL the demo's it is better to disable BOTH the SD Card & ethernet chip selects(CS) before starting.
(I had a logic analyzer on it), problems in which library is called first SPI or Ethernet they don't play well together, have asked the Arduino team to look into it (fat chance)

2. The SS pin for the SPI is now dependent on the platform and pulled from the correct library when the board is selected (no more madness checking for the physical platform)
3. Multiple fixes for malloc returning NULL and being ignored......
4. 'Major' change to get_field , really there is no need to be passing in the size, it reduces down stack requirements, thereby less chance of crashes in low memory situations.
5. Some minor cleanup in the 'test files'

Overall the code should be far less platform specific now (Just requires the SDcard CS hard coded),

Un-related
There is a serious bug in the ethernet library........, it seems that the routine for dealing with "16 bit words' only deals with 8 bit words...., it will be fixed in IDE 1.0.1.
This results in random hangs.