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 [Tue, 25 Aug 2009 03:13:21 +0000 (21:13 -0600)]
FTSP related updates from CVS head, after tag release_tinyos_2_1_0_0.
* Changes on CVS head through 8/23/09 for tos/lib/ftsp only.
* Upstream commits to tos/chips/cc2420, Aug 7 2008 thru Jul 16 2009, EXCEPT:
kusy <kusy> Wed Aug 13 07:37:05 2008 +0000
Fixing T32khz to TMilli conversion - coeficient 32 needs to be...
* Substitue for newest getTime32() by Miklos.
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
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
* Tested with MSP430 models F1611, F2417 and F2617
R. Steve McKown [Mon, 7 Dec 2009 15:50:36 +0000 (08:50 -0700)]
Update tools/release/tinyos.files for use also with debian/git builds.
* Separate the filename filters in tinyos.files into their own file,
tinyos.filter. Use tinyos.filter from an updated tinyos.files.
* Add additional filters for doing debian/git builds.
R. Steve McKown [Mon, 30 Nov 2009 21:48:12 +0000 (14:48 -0700)]
Update git tag release_tinyos_2_1_0_0 for consistency with CVS tag of same name.
Note that the CVS checkout at tag release_tinyos_2_1_0_0 was made without
any keyword expansion, since the git mirror of tinyos CVS also does no
expansion.
fixed a very subtle power drain bug that only showed up on some
devices in sleep, and cleaned up some other missed details on this
same subject.
main attraction: GIO0 was changed to an input to accomodate the fact
that it was attached to a pulldown, meant for a button on the external
connector.
when an output, some boards burned ~180 ua sleeping, the others 630
ua. as an input, we changed this reading on an example of the latter
to 180.
thanks to catalin caranfil at realtime oem for finding the problem and
pushing for a solution for the masses!
other changes:
- made onewire (data) input
- made the spi pins all gpio in appropriate directions for their
connections
- made bt_pio input, as appropriate for its connection
Switch boot_* calls to boot_*_safe. This restores the exact functionality of the boot.h that was used some time ago. Thanks to Aurelien Francillon for finding this.