Commit graph

7927 commits

Author SHA1 Message Date
Niclas Finne e25226f01e Use the directory of the source file as initial directory when opening file browser 2012-10-19 14:07:22 +02:00
simonduq 74baca91b1 Added sanity check to avoid deleting DS6 neighbor table entry for a default route 2012-10-05 17:55:45 +02:00
simonduq dbd4f1c579 Force call of subscriber_callback when the ETX of a link is estimated for the first time. Otherwise, it was not called in case of NO_ACK. 2012-10-05 17:24:23 +02:00
Joakim Eriksson 621790f156 fixed read loop to be slightly less CPU speed dependent 2012-10-01 13:14:47 +02:00
George Oikonomou d84a97103f cc2x3x stack debugging macro fix 2012-09-20 15:12:02 +01:00
George Oikonomou fde1510653 Added definitions for cc2530 DMA-related SFR bits 2012-09-20 15:09:15 +01:00
George Oikonomou 3b0e92168b Copied cc2530 stack functions to the cc2430 port 2012-09-20 15:09:15 +01:00
George Oikonomou b292e02012 Sensinode putdec() debugging 2012-09-20 15:09:15 +01:00
George Oikonomou 95b9d4ee29 Sensinode/cc2430 stack depth optimisation
This replicates the method used by the cc2530 port
2012-09-20 15:09:15 +01:00
George Oikonomou 067fabe0f9 Sensinode main variable optimsations:
r is now uint8_t, allocated to registers
len is uint16_t for more efficent arithmetic

(Changes replicated from the 253x port, originally
contributed by Philippe Retornaz - EPFL)
2012-09-20 15:09:15 +01:00
George Oikonomou cb168da729 Changed the cc2430 sleep_flag to uint8_t 2012-09-20 15:09:15 +01:00
George Oikonomou fa5a38666b Removed redundant #else blocks 2012-09-20 15:09:15 +01:00
George Oikonomou 88c6689e38 cc2430: Build with --fomit-frame-pointer 2012-09-20 15:09:15 +01:00
Niclas Finne 767e8bb551 Default value for _DATA20_HEAP_SIZE when using the IAR compiler on MSP430 platforms 2012-09-20 14:01:56 +02:00
Niclas Finne 4630945475 Made the stack and heap size configurable when using the IAR compiler on the MSP430 platforms 2012-09-19 22:49:19 +02:00
Niclas Finne 919ddfbf09 Added delay at startup to let things stabilize before writing to the uart 2012-09-19 22:47:48 +02:00
Niclas Finne 8053e2c353 Workaround for an odd type inference problem associated with the IAR compiler. Patch by Vilhelm Jutvik. 2012-09-12 14:46:19 +02:00
George Oikonomou ee7af77ca9 Reworked the cc2530 stack debugging facilities:
- Moved to their own file
  (so we can later copy the entire thing over to cc2430)
- Renamed the functions
  (for naming convention reasons)
- The entire thing can be enabled/disabled
- Added a couple more macros
- Hooked into main()
2012-09-07 17:40:17 +01:00
Philippe Rétornaz 9a63e8c027 cc253x: Add stack monitoring helpers 2012-09-07 17:32:54 +01:00
Philippe Rétornaz 780e62d7e8 cc253x: add putdec debug function 2012-09-07 17:32:54 +01:00
Philippe Rétornaz 48d99f15c8 cc253x: fix dma interrupt enable flag 2012-09-07 17:32:54 +01:00
George Oikonomou c6ec22c4c8 cc2530: Added a method to maximise stack depth
This was oringinally contributed/reported/discussed/patched by
Philippe Retornaz (EPFL) but it's implemented
in a more configurable fashion here.
2012-09-07 17:32:53 +01:00
Philippe Rétornaz a0d2988846 cc253x: Don't force __data usage
SDCC optimize "r" and put it in a register.
Don't force len to be in __data.
2012-09-07 17:32:10 +01:00
Philippe Rétornaz 666ff6ca55 cc253x: use a uint8_t for sleep_flag
__bit variables must be located after the 0x20 address
This force the stack to start after 0x20, thus decrease
the stack size by a considerable amount.
2012-09-07 17:32:10 +01:00
Philippe Rétornaz 44bcabe89c cc253x: Change CFLAGS
This add -fomit-frame-pointer by default, it decrease sliglty the
stack usage when several function call are nested.
On some specific case 30 bytes could be saved on the stack.
2012-09-07 17:32:10 +01:00
George Oikonomou 8699f7741d Fixed typos and a stray printf. Adjusted comments 2012-09-07 17:31:25 +01:00
Ivan Delamer b43dad00b0 Cleaned up RF230BB, and refactored FRAME_RETRIES and CSMA_RETRIES
#defines.
2012-09-04 11:12:18 -06:00
Ivan Delamer 2e72ec3594 Place ATmega1281 define in correct section (it does have compare C
unit, avoid duplicate define and compiler warning).
2012-09-01 15:22:13 -06:00
Ivan Delamer 5636357243 Fix RF230 transition: RX_AACK_ON -> TX_ARET_ON (go through PLL_ON,
as per datasheet). Tested on RF230 and 128RFA1 (RF231).
2012-09-01 15:20:00 -06:00
simonduq 1bb055bae6 Fixed the udp-stream example: use the new RPL interface, reduce RAM usage 2012-08-30 13:22:27 +02:00
Niclas Finne c425e51911 Added support for nested quotes in arguments when calling external commands from Cooja 2012-08-22 14:14:55 +02:00
simonduq 24dba740e2 Added support for quote-delimited arguments when calling external commands from Cooja 2012-08-22 13:32:20 +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
Antonio Lignan 73e7f25cbc Simple phidget-like relay driver for the Z1 mote with basic functionalities 2012-07-30 11:27:13 +02:00
Adam Dunkels a3e56371a5 Bumped version number 2012-07-12 11:33:12 +02:00
Adam Dunkels 08d854f782 Updated README with new website and shorter text 2012-07-12 11:30:21 +02:00
Adam Dunkels dd148e1d12 Bumped version number 2012-07-12 11:30:05 +02:00
George Oikonomou 26a87ee9cb Improved handling of cc2x3x rf_flags 2012-07-11 10:53:14 +01:00
George Oikonomou 43f2790357 Added channel_get() to the cc2x3x RF drivers 2012-07-11 10:53:14 +01:00
George Oikonomou d66241fd97 Bugfixed the cc2530 LOW_POWER_RX configuration
Report and fix by Tom Xiao
2012-07-11 10:53:14 +01:00
George Oikonomou 62fbd389d8 Renamed a cc253x SFRX to stop namespace conflicts
The TR0 SFRX can not use the name TR0 because it
conflicts with TCON.TR0 on the default 8051.

See SDCC bug 3513300
2012-07-11 10:53:14 +01:00
George Oikonomou 4b73b48f60 Fixed the cc2530 RSSI adjustment 2012-07-11 10:53:14 +01:00
Ivan Delamer 17a62a649c ATmega128RFA1 bug fix: no interrupt pin used (embedded radio).
Enabling interrupt caused MCU reset if using pin as GPIO.
2012-07-10 14:36:47 -06:00
Nicolas Tsiftes 86115a392e Include string.h 2012-06-27 15:44:53 +02:00
Nicolas Tsiftes 0ba83a10df Merge branch 'master' of ssh://contiki.git.sourceforge.net/gitroot/contiki/contiki 2012-06-27 15:42:51 +02:00
Joakim Eriksson 51b73127e9 * Simple JSON parser and generator.
* Simple HTTP webservice with support for both receiving and sending HTTP requests.
* json-ws example that optionally push sensor data to COSM over IPv6.
2012-06-12 16:42:16 +02:00
Niclas Finne f177284a73 Added option to specify the IPv6 prefix 2012-06-12 16:32:05 +02:00
Fredrik Osterlind 947f3322ba removed unused ipdistributor code: was previously used to assign IP addresses to simulated motes,
a decision better made by Contiki
2012-06-11 15:52:20 +02:00
Fredrik Osterlind 8947c7a3bb reverted previous plugin name changes, instead build displayed names when menu is created 2012-06-11 15:31:39 +02:00
Nicolas Tsiftes 21f2b42090 Merge branch 'master' of ssh://contiki.git.sourceforge.net/gitroot/contiki/contiki 2012-06-11 08:01:03 +02:00