cc2538: spi: Do not call SPI_WAITFOREORx() at end of init

If the SSI has never been used and spi_init() is called, then the SSI receive
FIFO is empty and remains so, so calling SPI_WAITFOREORx() at the end of
spi_init() waits endlessly for SSI_SR.RNE to be set. Hence, this call must be
removed in order to avoid a deadlock.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
cc2538: spi: Include spi-arch.h before dev/spi.h

spi-arch.h configures dev/spi.h, so it must be #included first. Luckily, this
mistake did not have any consequence here, but fix it in order to avoid possible
future issues.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Allow payload len to be larger than 256 bytes
Allow the 6lowpan code to handle packets larger than 256 bytes
Added the const keyword to IP address arguments that are not (and should not be) changed by the callee
Added the const keyword to functions that use the tcpip_set_outputfunc(), which now takes a const argument
Merge pull request #431 from adamdunkels/push/ipv6-const

Make IP addresses const
cc2538: spi: Add format configuration options

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
cc2538: spi: Add enable and disable functions

This makes it possible to reduce the power consumption when the SPI is unused.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Merge pull request #432 from adamdunkels/push/154-len

Allow the 802.15.4/6lowpan code to operate on packets larger than 256 bytes
Add 6502 tests to travis
Merge pull request #443 from g-oikonomou/6502-travis

Add 6502 tests to travis
Merge pull request #409 from ADVANSEE/cc2538-spi

cc2538: spi: Bug fix and various improvements
renamed main Java class of Cooja from GUI to Cooja.

se.sics.cooja.GUI -> se.sics.cooja.Cooja

this commit does not contain any functional changes, but may require external scripts to be updated
such as Makefiles.
renamed getGUI() method to getCooja(), to better reflect its purpose
Renamed Java packages to match our contiki-os.org domain. Note that this commit does not affect external dependencies
like /tools/mspsim.

This is a very simple modification that affects a very large number of files in Contiki: Cooja,
/platform/cooja, Collect-view, Coffe-manager, and Cooja simulation files (.csc).

I've gone through Contiki to update all references I could find. Nevertheless, this commit will likely
break external dependencies, like saved Cooja simulation files.
Cooja backwards compatibility with simulation files that uses non-Contiki Java package names
Merge pull request #439 from fros4943/feature-contiki-org-refactoring

Cooja cleanup
Changed handling of predefined macros in cc65 allows for simplification.
Merge pull request #444 from oliverschmidt/master

Changed handling of predefined macros in cc65 allows for simplification.