R. Steve McKown [Fri, 23 Apr 2010 22:39:53 +0000 (16:39 -0600)]
Don't hard-code for ncc in mig and ncg scripts.
The rationalization for this change is that nesc shouldn't really know where
tinyos-tools is installed, since they are separate packages. The pragmatic
reason for this change is that it allows using ncc from tinyos-tools before
installation to allow a single debian tinyos source package to build both
tinyos-tools and tinyos-source-VERSION packages.
R. Steve McKown [Mon, 19 Apr 2010 22:13:15 +0000 (16:13 -0600)]
Fix possible overwrite of state changes make in a component's Init.init()
If a component using State and providing Init is wired to MainC.SoftwareInit,
the component cannot reliably call State.forceState() inside its Init.init().
If ncc renders MainC.SoftwareInit.Init()'s fanout calling the component's
Init.init() before StateImplP's Init.init(), the latter sets the state[] array
members all to zero (S_IDLE), undoing any state change the component may have
attempted.
The easy fix is to remove the extra initiation of state[] in StateImplP's
Init.init(). Becuase state[] is a static, its elements are guaranteed to have
values of zero (S_IDLE).
R. Steve McKown [Thu, 8 Apr 2010 19:50:41 +0000 (13:50 -0600)]
Teach tos-storage-stm25p to derive NUM_SECTORS and SECTOR_SIZE.
The stm25p driver is suitable for different sizes of flash parts, such as the
commonly used 8Mb M25P80 and the less commonly used 1Mb M25P10A. The driver
defines the flash configuration in Stm25p.h. By having tos-storage-stm25p walk
the @includes for the platform, as found in the .platform file, each platform
can ensure that a Stm25p.h with correct content for its flash part is found
for use by the driver and this script.
Add a BusyWait interface for controlling SHT1X timing requirements.
The default implementation, which does nothing, is probably suitable for all
processors running at about 10 MHz or less. Implement a platform specific
version to enforce the 5 us timing requirements as per the data sheet.
R. Steve McKown [Wed, 2 Dec 2009 17:46:08 +0000 (10:46 -0700)]
MSP430 clock enhancements.
* DCO frequency selection using TinyOS semantics.
* Support for Basic Clock + (clock2).
* Correctly sets SMCLK divider for 1 MiHz if DCO is 1, 2, 4, or 8 MiHz
Supports UART, SPI (slave and master), and I2C modes.
Current I2C limitations and features:
* Master mode only.
* No multi-master bus configurations.
* Will automatically reset a hung bus, if for example the master reset in the
middle of a transaction and a slave currently is driving SDA low.
* Repeated starts are supported and can be very time efficient.
* An I2C transactions may be processed with multiple I2CPacket.read() or
I2CPacket.write() commands, as appropriate. The first must include I2C_START
and the last must include I2C_STOP.
* Conditions exist during read where the hardware may clock out an extra byte
from the slave before stop. This byte is not passed to the user.
Support for newer msp430's using newer msp430 compiler.
* Resistor enable feature (switchable pull up/down)
* Fuller definition of ports and pins using new compiler defines
* Support larger parts with ports 7 and/or 8
* Tested with MSP430 models F1611, F2417 and F2617
klueska [Mon, 15 Feb 2010 03:16:14 +0000 (03:16 +0000)]
Changed the default to be that all platforms #include stdio.h unless specifically set to include something else, and added support for imote2, hopefully...
mmaroti [Sat, 13 Feb 2010 22:50:09 +0000 (22:50 +0000)]
fix uin16_t alignment bug for the msp430
Committed on the Free edition of March Hare Software CVSNT Server.
Upgrade to CVS Suite for more features and support:
http://march-hare.com/cvsnt/
mmaroti [Fri, 12 Feb 2010 21:52:45 +0000 (21:52 +0000)]
Fix the time stamping correction code
Committed on the Free edition of March Hare Software CVSNT Server.
Upgrade to CVS Suite for more features and support:
http://march-hare.com/cvsnt/
janhauer [Thu, 4 Feb 2010 16:31:15 +0000 (16:31 +0000)]
- bugfix: empty data frame sent in response to a datarequest (somtimes) had wrong header size
- updated signature of dummy component NoPromiscuousModeP
gnawali [Thu, 4 Feb 2010 07:31:46 +0000 (07:31 +0000)]
get rid of +5 for rounding, change arg name in functions in CtpInfo to match the arg names in the implementation, fix bug reported by Faisal Aslam - VERY_LARGE_EETX was set to 0xff
andreaskoepke [Wed, 27 Jan 2010 14:42:10 +0000 (14:42 +0000)]
in newer mspgcc/nesc(?) sizeof(message_header_t) > sizeof(message_radio_header_t),
leading to an off by one error. In addition, the message_header_t is aligned on the LSBs.
This fixes all the issues.
andreaskoepke [Sun, 24 Jan 2010 23:01:32 +0000 (23:01 +0000)]
use the same data structure to calculate lengths in transmit and in receive
(removes a bug with newer msp-gcc versions)
check truth in C styls
resource allocation is initialization
razvanm [Sat, 16 Jan 2010 10:02:29 +0000 (10:02 +0000)]
Workaround the erase problems with AT45DB
The previous commit did not take in consideration that STM45P
requires the erase operation. The new strategy is to make the
FlashVolumeManager refuse the erase for AT45DB, and make the
tos-deluge attempt to overwrite of the metadata only when the
erase fails.
ayer1 [Wed, 13 Jan 2010 15:08:56 +0000 (15:08 +0000)]
adjusting wait time for powercycle based upon wider testing of sd card
brands for successful transition between spi and raw data modes; many
fail at 20ms.