George Oikonomou
67bf9ec10e
DOS EOL and indentation fixes (platform files)
...
- Removed some DOS EOLs
- Changed some tabs to spaces
- Removed some trailing whitespaces
Closes #6
2012-10-30 13:44:25 +00:00
Adam Dunkels
944537fccf
Removed all old RCS tags in the Contiki source tree. Those RCS tags are not used any more, as we are now using git to manage the Contiki source tree
2012-10-26 15:54:49 +02: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
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
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
780e62d7e8
cc253x: add putdec debug function
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
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
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
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
David Kopf
37c407b177
Patch from Landon Fuller adds const to PROGMEM, required for newer avr-gcc
2012-06-10 12:54:11 -04:00
Niclas Finne
d1bef2b68a
Bug fix: setup MAC address based on node id if no MAC address was restored from external flash
2012-06-07 10:45:05 +02:00
Adam Dunkels
fd2e238d99
The __delay_cycles() function in the latest mspgcc takes an unsigned long argument but does not allow it to be larger than 65536.
2012-06-04 17:41:12 +02:00
Fredrik Osterlind
d270e4943d
bugfix: slip must be initialized after ctimer, as it uses ctimers
2012-05-30 12:59:42 +02:00
Niclas Finne
b6ed988709
Allow node address to be set by COOJA when emulating.
2012-05-29 19:42:35 +02:00
Niclas Finne
2c460090e3
io and signal have been moved into contiki include file
2012-05-29 19:31:16 +02:00
David Kopf
e0dab7c2fc
Prefer UART0 for stdout; move DEBUFGLOW macro below definition of uint8_t
2012-05-28 13:08:30 -04:00
Fredrik Osterlind
8ebacd1a1a
reverted previous patch that broke compiling on Instant Contiki
2012-05-25 11:25:19 +02:00
Fredrik Osterlind
50caa3650c
new experimental feature: possibility to change mote types when loading a simulation
...
made compile dialogs only select mote interfaces specified in the loaded configuration
2012-05-23 14:59:41 +02:00
George Oikonomou
0fc5ec8d5c
Fixed an SDCC compile error when UIP_CONF_ROUTER is 0. UIP_CONF_ROUTER can be configured in project-conf.h
2012-05-16 15:22:31 +01:00
George Oikonomou
2f89f41b5a
cc2x3x RPL/non-RPL handling:
...
- Relevant examples explicitly request it in their Makefile
- Removed the definition of UIP_CONF_IPV6_RPL from
contiki-conf.h. If needed, it's defined through a -D
2012-05-16 15:22:31 +01:00
George Oikonomou
259b497122
Minor Sensinode build cleanup
2012-05-16 15:22:31 +01:00
George Oikonomou
1f7171f943
Adjust cc2x3x ports to the new clock API
2012-05-16 15:22:31 +01:00
George Oikonomou
fea95ae088
Easily configure B2 on the cc2531 USB stick as a General-Purpose or Reset button
2012-05-16 15:22:31 +01:00
George Oikonomou
cc76c649b1
The cc2530 button driver would fail to compile if the user disabled button support
2012-05-16 15:22:31 +01:00
Antonio Lignan
6df9ffb731
Zolertia's light sensor ziglet
2012-05-11 13:39:59 +02:00
Fredrik Osterlind
4cf4a48592
minor bugfix: did not compile with PROCESS_CONF_NO_PROCESS_NAMES=1
2012-05-09 15:07:51 +02:00
Antonio Lignan
3dde89971c
Add disable function to I2C driver
2012-05-09 10:54:21 +02:00
Niclas Finne
40595ad5c7
Support for serialdump on MacOS X. Patch by Laurent Deru.
2012-05-07 13:16:27 +02:00
Laurent Deru
cc863e7bd4
Sky motelist support for MacOS X
2012-05-07 11:18:09 +02:00
George Oikonomou
6a808053ce
cc2531 Button 2 driver
2012-04-26 16:28:04 +01:00
George Oikonomou
5662b1f37d
Platform cc2530dk now uses models.h to configure differences between the SmartRF and the 2531 USB stick
2012-04-26 16:28:04 +01:00
George Oikonomou
38a222e83c
Redefined LEDS_ALL for cc2531s
2012-04-26 16:25:04 +01:00
George Oikonomou
c95fc4f360
cc2531 B1 support. B2 to come
2012-04-26 15:28:43 +01:00
George Oikonomou
26ae56fcaf
cc2531 LED support
2012-04-26 15:28:43 +01:00
George Oikonomou
1db1649b6a
The cc2530dk Makefile was adding a source twice
...
Also, removed an obsolete comment
2012-04-26 15:28:43 +01:00
George Oikonomou
dd26accc07
We can now use SDCC's __nonbanked feature
...
This allows us to reduce CODE footprint of SDCC projects
built with --model-huge. Use carefully!
* Added a facility which allows us to enable/disable the
feature from the CPU dir (CC_CONF_NON_BANKED_OPTIMIZATION)
* Added the CC_NON_BANKED keyword to some platform files
(expands to __nonbanked)
* Started using this for some examples
2012-04-26 15:28:43 +01:00
Adam Dunkels
b4e7468b12
Set CCA threshold before starting, to make ContikiMAC more efficient. Fix compilation problem with non-IPv6 compiles. Various style fixes.
2012-04-22 20:54:02 +02:00
George Oikonomou
e95f94a9a8
Added support for reading MAC from the cc253x flash
...
We still use the primary location by default (Info Page) but
this is now configurable. This change is useful for users who
wish to specify their own MAC address. Since the Info Page is
read-only, they need to be able to use the secondary location
2012-04-20 16:03:38 +01:00
George Oikonomou
29090a3dda
The cc253x Makefile specifies SoC flavor
...
This will help us slowly add better support for smaller SoCs
instead of just assuming that all cc253x SoCs are F256
- We build for F256 by default but the project Makefile can override this
- We currently ignore this when passing --code-size. This is a ToDo
- The bank allocator always assumes 7 banks. Once we fix --code-size above this will be irrelevant
2012-04-20 16:03:38 +01:00
George Oikonomou
4a78021c62
Simplified the cc2530dk STARTUP_CONF_VERBOSE spaghetti and made it project-configurable
2012-04-20 16:03:37 +01:00