cc2540: Add clock module support

This patch adds support for clock module to CC2540 SoC.

Since clock_wait(), clock_delay_usec() and clock_fine_max() are
only used in platform specific code, we don't implement them by
now. We might support them when they are needed.

The deprecated function clock_fine() is lacking a proper
documentation so we define it as an empty function. Some other
SoC clock implementations don't even define this function.

Moreover, clock_set_seconds(), seems not to be used by anyone in
Contiki source tree so we don't implement it.

This patch also creates the isr.h header file. All interrupt
service routine prototypes must be declared in this file. This
header should be included by the file which defines the main()
function, otherwise SoC ISRs will not be registered.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
cc2540: Add support for etimer

This patch adds support for etimer library. As recommended in Contiki
documentation, we implement the etimer hooking in the system clock.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
cc2540mini: Initial support for CC2540 mini development kit

This patch adds the initial files for supporting CC2540 mini
development kit from TI. Since clock module and etimer library
is already supported by the SoC, we initialize etimer and ctimer
processes, as well as autostart process.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
cc2540: rtimer module initial support

Since the SoC dependent file rtimer-arch.h is required to build
Contiki, we add the inital support for rtimer module. By now,
we use the system clock module to implement the rtimer module.
Nevertheless, the rtimer module will be properly support in future.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
cc2540: Add mtarch.h header

This patch adds the mtarch.h header which defines a dummy struct
mtarch_thread in order we are able to build Contiki for cc2540mini
platform.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
cc2540mini: Add LED support

This patch adds the LED support for cc2540mini platform. The
cc2540mini platform has only two LEDs (green and red).

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
cc2540: Change linker options

This patch changes the linker --xram-loc option so the start location
of the external RAM is 0x0001. This way we prevent the NULL address
to be used as a valid memory address.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
examples: Add blink example

This patch adds a simple blink example which inverts the green led
each second.

Signed-off-by: Paulo Borges <paulo.borges@openbossa.org>
Add cscope files to .gitignore

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Add cc2540mini build files to .gitignore

Signed-off-by: Paulo Borges <paulo.borges@openbossa.org>