ovidiucp / TinyWebServer

Small web server for Arduino, fits in 10KB ROM, less than 512 bytes RAM
http://www.webweavertech.com/ovidiu/weblog/archives/000484.html
GNU Lesser General Public License v2.1
245 stars 65 forks source link

Multiple changes in various commits #6

Closed Hardcore-fs closed 12 years ago

Hardcore-fs commented 12 years ago

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)

  1. 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)
  2. Multiple fixes for malloc returning NULL and being ignored......
  3. '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.
  4. 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.