Joakim Eriksson
621790f156
fixed read loop to be slightly less CPU speed dependent
2012-10-01 13:14:47 +02:00
Antonio Lignan
c5e9d688a5
Fixed sht11 driver, now ensures the i2c bus is disabled when initializing
2012-08-16 14:12:27 +02:00
Nicholas J Humfrey
372de7d08a
Converted u8_t to uint8_t and u16_t to uint16_t in the rest of core (specifically ctk/vnc, slip and the loader code)
2012-02-21 08:33:24 -05:00
Niclas Finne
8e59df78e2
Autoenable RX after TX + removed exception check
2012-01-09 14:55:34 +01:00
Niclas Finne
f4f35973d1
Fixed some configuration problems and support for AUTOACK
2012-01-09 14:55:31 +01:00
Niclas Finne
b6fd166155
Removed obsolete CRC checksum handling and debug leds
2012-01-09 14:41:48 +01:00
Niclas Finne
05b10eb9ce
Initial WiSMote port based on code from Arago Systems.
2012-01-09 12:25:06 +01:00
Joakim Eriksson
5b1d9617c4
moved io and signal and IAR-GCC checks from driver files into contiki include file
2011-09-26 10:38:41 +02:00
Joakim Eriksson
95dde73618
fixed Sky platform for IAR compiler
2011-09-11 17:18:02 +02:00
Nicolas Tsiftes
48e6e801c2
Removed redundant tokens at the end of preprocessor conditions
2011-06-10 17:44:48 +02:00
Joakim Eriksson
d980c0db16
added delays in CC2420 to avoid risk of configuring before CC2420 is powered on
2011-06-05 00:20:25 +02:00
Joakim Eriksson
e511c6a930
added debug to sht11 driver and made it more configurable
2011-06-05 00:15:53 +02:00
Joakim Eriksson
77ec0bfa0f
fixed the z1 platform and generic code used by z1 to work with IAR compiler
2011-05-25 17:21:51 +02:00
Joakim Eriksson
d8e54ca585
fixed for compilation with IAR compiler
2011-04-06 20:14:30 +02:00
Niclas Finne
e348cf7fc6
removed unnecessary include
2011-03-07 20:20:29 +01:00
Fredrik Osterlind
dd7cec737d
removed obsolete leds_[color]() functions, replaced by leds_{on,off}()
...
allow LEDS_[COLOR] to be configured by platform-conf
2011-03-03 17:48:32 +01:00
Mariano Alvira
a8f9119ace
pass up a RADIO_NOACK to the MAC layer.
2011-02-23 15:19:43 -08:00
Lionel Debroux
5cb49e8b07
Several compiler warning fixes:
...
* msp430: fix "implicit declaration of function" warnings in clock.c, by including watchdog.h;
* sky: fix a couple pointer target signedness warnings;
* core: fix several signed/unsigned comparison warnings;
* framer-802154: "const static" -> "static const" to fix compiler warnings;
* core: comment or remove unused variables and function definitions.
Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr>
Signed-off-by: Mariano Alvira <mar@devl.org>
2011-02-20 19:28:14 -05:00
Fredrik Osterlind
3bf99ca040
LEDS_ALL configurable
2011-02-09 15:29:41 +01:00
adamdunkels
cea299d79a
Call upper layers even if packet reception failed - this allows the RDC layer to shut off the radio even if a malformed packet was received.
2011-01-09 21:09:28 +00:00
dak664
8b5577eca2
Patch from Roger Larsson to answer mac address request, for testing autoconfigure.
2010-12-23 22:38:47 +00:00
adamdunkels
d267b5ca94
Re-added timestamp support for outbound packets that was removed when switching to the new radio API
2010-12-16 22:40:52 +00:00
adamdunkels
417c7f8c70
Added parenthesis around addresses to allow expressions as arguments
2010-12-16 22:39:50 +00:00
adamdunkels
433d42e170
Bugfix: if the cc2420_cca() function wasn't able to turn on the radio properly, it should turn it off again if it was off before.
2010-12-05 00:14:24 +00:00
adamdunkels
5585d72c86
A simple but substantial change: uIP used the htons()/HTONS() macro
...
functions for converting between host and network byte order. These
names are the de facto standard names for this functionality because
of the original BSD TCP/IP implementation. But they cause problems for
uIP/Contiki: some platforms define these names themselves (Mac OS,
most notably), causing compilation problems for Contiki on those
platforms.
This commit changes all htons to uip_htons instead. Same goes for
htonl, ntohs, and ntohl. All-caps versions as well.
2010-10-19 18:29:03 +00:00
nifi
e242fb28bf
Reverted radio API change in CC2420 (not yet fully integrated with Contiki core)
2010-09-23 08:26:06 +00:00
adamdunkels
40ee35e8c8
Rewrote all busy waits with a new macro, which has a built-in timeout to ensure that busy waits won't hang the CPU
2010-09-22 22:01:53 +00:00
nifi
d06a1ecc0c
corrected include path
2010-08-25 18:35:52 +00:00
nifi
3e6113be72
removed debug output
2010-06-30 09:03:20 +00:00
nifi
c44cf73e4f
Adapted to new SPI and CC2420 naming
2010-06-24 11:25:55 +00:00
nifi
f609cb0f7c
Added macro to read from CC2420 RAM
2010-06-24 11:25:07 +00:00
nifi
49a2ca6b1e
Fixed naming of CC2420 macros
2010-06-24 09:28:38 +00:00
nifi
fb3c2e75cf
removed obsolete definitions
2010-06-24 09:28:12 +00:00
nifi
c6b6b6625c
removed obsolete header file for CC2420
2010-06-24 09:20:28 +00:00
joxe
f7a82a9145
split SPI code into generic and CC2420-related and renamed constants in CC2420
2010-06-23 10:15:28 +00:00
joxe
bc398ca546
removed platform dependent loop-count from cc2420 - moved to platform config instead
2010-06-21 19:48:00 +00:00
joxe
a5d7b197eb
added support for the Z1 platform and its 8Mhz
2010-06-21 19:09:35 +00:00
adamdunkels
3fa8ffda1a
Moved the modules packetbuf, queuebuf, and packetqueue from net/rime to net/, since they are not Rime-specific
2010-06-14 19:19:16 +00:00
nifi
14b1bb9f57
Fixed to only use leds when DEBUG is set
2010-04-20 11:41:16 +00:00
adamdunkels
3670fac618
Bugfix: timing fixed
2010-04-08 18:23:24 +00:00
adamdunkels
be117afe04
After a lot of tweaking and twiddling with the timing of the ContikiMAC code and the mechanisms in the CC2420 driver, things seem to work somewhat stable now - knock on wood!
2010-04-04 07:49:30 +00:00
adamdunkels
a637ddaf4e
Flush the rxfifo when turning off the radio instead of when turning it on. This seems to fix a bug that was seen in mspsim and seemed to appear on real hardware too.
2010-04-03 16:01:00 +00:00
adamdunkels
c9ca5d61e2
Rewrote the pending_packet() function to check the FIFOP pin instead of the 'pending' variable - works must better on real hardware and is now supported by the latest mspsim
2010-03-31 19:08:56 +00:00
adamdunkels
4d5f112960
New return value for invidating a link-layer collision
2010-03-30 23:00:22 +00:00
adamdunkels
5e7f99a2c0
Reverted the removal of the code that checked the FIFOP pin before reading a packet - checking FIFOP is the correct way to do it. Also added TXONCCA for now, including new radio.h return values to indicate a link-layer collision.
2010-03-30 23:00:05 +00:00
adamdunkels
a3a8c0e179
Safety check: only try to read a packet if it was preceeded by an interrupt (which sets the pending flag)
2010-03-19 13:18:53 +00:00
nifi
ea090a60e6
Fixed to call the SLIP callback function also when using IPv6
2010-03-17 07:10:25 +00:00
adamdunkels
67b0170a43
Bugfix: don't care about FIFOP when reading a packet; if the radio rx had been turned off before a packet was read, FIFOP would be zero and the packet would be trashed
2010-03-16 18:10:09 +00:00
nifi
55e0fec37e
* Changed to write keys to CC2420 RAM big-endian order
...
* Fixed cc2420_aes_cipher() to wait for encryption to finish before reading result
2010-03-15 23:04:54 +00:00
nifi
e834562455
* Fixed FASTSPI_READ_RAM_LE to wait for tx end before reading
...
* Added FASTSPI_WRITE_RAM_BE to write to RAM (big-endian order)
2010-03-15 23:01:37 +00:00