]> oss.titaniummirror.com Git - tinyos-2.x.git/log
tinyos-2.x.git
13 years agoUpdate tos-bsl. cp210x driver ioctls now based on SIOCDEVPRIVATE (0x89f0). release/2.1.1-4.3
R. Steve McKown [Wed, 26 May 2010 19:30:38 +0000 (13:30 -0600)]
Update tos-bsl.  cp210x driver ioctls now based on SIOCDEVPRIVATE (0x89f0).

13 years agoMerge TinyOS 2.1.1 into master.
R. Steve McKown [Fri, 7 May 2010 20:42:29 +0000 (14:42 -0600)]
Merge TinyOS 2.1.1 into master.

How this merge was done:
* Rebase patchset/2.1.0-4.2 onto tinyos/2.1.1 as topic/patchup211
* cp topic/patchup211 tree to tmp dir
* Checkout master, rm all files, cp in from tmp dir, git add .

Future work on TinyOS 2.1.0 w/TMI enhancements via release/2.1.0.

13 years agoProper MSP_BSL_FLAGS for telosa and telosb based platforms using TMI modular tos...
R. Steve McKown [Thu, 6 May 2010 19:30:48 +0000 (13:30 -0600)]
Proper MSP_BSL_FLAGS for telosa and telosb based platforms using TMI modular tos-bsl.

14 years agoUse HOME instead of tilde. Consistent use of quotes around TOSCFG. release/2.1.0 release/2.1.0-4.2
R. Steve McKown [Sat, 24 Apr 2010 01:32:09 +0000 (19:32 -0600)]
Use HOME instead of tilde.  Consistent use of quotes around TOSCFG.

14 years agoThe previous TOSROOT was being writting to TOSCFG.
R. Steve McKown [Sat, 24 Apr 2010 01:31:22 +0000 (19:31 -0600)]
The previous TOSROOT was being writting to TOSCFG.

14 years agoDon't hard-code for ncc in mig and ncg scripts. release/2.1.0-4.1
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.

14 years agoGet rid of TOS and use TOSDIR like the other Makefiles in support/sdk/java.
R. Steve McKown [Fri, 23 Apr 2010 21:52:33 +0000 (15:52 -0600)]
Get rid of TOS and use TOSDIR like the other Makefiles in support/sdk/java.

14 years agoFix trailing spaces in cp210xrtmodule.c
R. Steve McKown [Fri, 23 Apr 2010 18:30:21 +0000 (12:30 -0600)]
Fix trailing spaces in cp210xrtmodule.c

14 years agoFix tmicore's PlatformSerialC to provide the conventional set of interfaces.
R. Steve McKown [Fri, 23 Apr 2010 18:24:41 +0000 (12:24 -0600)]
Fix tmicore's PlatformSerialC to provide the conventional set of interfaces.

14 years agoImproved tinyos.sh
R. Steve McKown [Fri, 23 Apr 2010 16:25:39 +0000 (10:25 -0600)]
Improved tinyos.sh

* Automatically installs tinyos.sh into user shell rc files when sourced.
* Adds an uninstall option if a user no longer wants to do TinyOS dev.
* Smarter handling of CLASSPATH.
* tinyos.jar is added to CLASSPATH instead of support/sdk/java.  The latter is
  a TOS 1.x idiom.
* Better error and help messages.

14 years agoFix copyrights now that Sporian has granted TMI the right to create derivative release/2.1.0-4
R. Steve McKown [Thu, 22 Apr 2010 22:39:08 +0000 (16:39 -0600)]
Fix copyrights now that Sporian has granted TMI the right to create derivative
works releasable under tos-bsl's BSD license.

14 years agoSubstitue for newest getTime32() by Miklos.
R. Steve McKown [Sat, 13 Feb 2010 01:19:10 +0000 (18:19 -0700)]
Substitue for newest getTime32() by Miklos.

14 years agoUpstream commits to tos/chips/cc2420, Aug 7 2008 thru Jul 16 2009, except one.
R. Steve McKown [Fri, 13 Nov 2009 23:47:49 +0000 (16:47 -0700)]
Upstream commits to tos/chips/cc2420, Aug 7 2008 thru Jul 16 2009, except one.

commit df004818be0944a5459b2d23dd4b49c55b716448
    kusy <kusy> Thu Aug 7 00:06:53 2008 +0000
    Previously reported timestamping bug was only fixed partially: *timesync...

NOT COMMITTED f8120ec47efebf578a6edf99882d009ea6dedcd1
    kusy <kusy> Wed Aug 13 07:37:05 2008 +0000
    Fixing T32khz to TMilli conversion - coeficient 32 needs to be...

commit 42b450d2e6d5eda17245d38f4d2bceb6b60e5400
    rincon <rincon> Mon Aug 18 22:04:15 2008 +0000
    Added a length check to make sure we don't try to send a packet that is...

commit 62d558a6db9cf823c7926fc74ed5610a0dcbad23
    rincon <rincon> Fri Sep 5 20:39:00 2008 +0000
    added more descriptive comments about the header

commit 72c8a4f1a2b4f331aeedc6bfd5262253ce8d6d04
    janhauer <janhauer> Wed Nov 26 10:13:31 2008 +0000
    Added an interface for accessing the RXFIFO in a non-split phase...

commit 10c02f9ece9b5ee20aa93c877d70fa6689ef7a7d
    razvanm <razvanm> Mon Dec 1 19:56:53 2008 +0000
    Remove a redundant definition.

commit 979965da13886883fe7399d60ff4d025f53bfd4c
    razvanm <razvanm> Mon Dec 1 23:51:38 2008 +0000
    Add a comment about the polarity of FIFOP.

commit 98d4eae39755d369b001971ec9c5f1dd741bc82d
    andreaskoepke <andreaskoepke> Wed Dec 17 17:42:22 2008 +0000
    avoid integer overflow

commit 31bef23ef3377514af595000d2fa2cce07bd4531
    kusy <kusy> Fri Feb 6 06:38:49 2009 +0000
    committing new timestamping code

commit 9be3c9111199378d00acd0d946a0c1772947165a
    kusy <kusy> Mon Mar 2 07:02:32 2009 +0000
    timestamping patch: improved test to fall-through on SFD

commit cd6c99ffa038524d2532860acb79e3ba52540ad7
    kusy <kusy> Thu Jul 16 06:41:41 2009 +0000
    Using AMSenderC infrastructure to fix CTP+FTSP bug

commit fbde8e8b590651b32583d9250bb4921d5b6ab1a3
    kusy <kusy> Thu Jul 16 06:46:07 2009 +0000
    thomas's FTSP patch

14 years agoPatch incorporate changes on CVS head through 8/23/09 for tos/lib/ftsp only.
R. Steve McKown [Tue, 25 Aug 2009 03:13:21 +0000 (21:13 -0600)]
Patch incorporate changes on CVS head through 8/23/09 for tos/lib/ftsp only.

14 years agoFix startup in SoftwareInit.init overwriting changes to StateC's.
R. Steve McKown [Mon, 19 Apr 2010 22:13:15 +0000 (16:13 -0600)]
Fix startup in SoftwareInit.init overwriting changes to StateC's.

If a component wires its Init.init() via SoftwareInit and ncc calls
StateImplP.Init.init() after the component's Init.init(), any change to its
StateC, such as call State.forceState(), is undone.  The easy fix is to remove
the extra initiation of state[] in StateImplP.Init.init(), since state[] is a
static and is guaranteed to have members with value zero (S_IDLE).

14 years agoUSCI fixes.
R. Steve McKown [Thu, 8 Apr 2010 01:16:46 +0000 (19:16 -0600)]
USCI fixes.

* Watch out for sendData() clobbering TXBUF.
* May solve a loss of UART TX chars.
* USCI UartStream.send() gains nothing by immediately sending the 1st byte.
* m_sobuf cannot be null in Interrupts.tx, so remove the check.

14 years agoLet UartByte.send() interleave with any in-progress UartStream.send().
R. Steve McKown [Thu, 8 Apr 2010 13:46:32 +0000 (07:46 -0600)]
Let UartByte.send() interleave with any in-progress UartStream.send().

14 years agoSome comments about the UART ISRs.
R. Steve McKown [Thu, 8 Apr 2010 00:46:48 +0000 (18:46 -0600)]
Some comments about the UART ISRs.

14 years agoRemove redundant atomic blocks.
R. Steve McKown [Thu, 8 Apr 2010 00:17:22 +0000 (18:17 -0600)]
Remove redundant atomic blocks.

14 years agoFix USCI hanging caused by clearing the TXIFG bit.
R. Steve McKown [Thu, 8 Apr 2010 00:12:00 +0000 (18:12 -0600)]
Fix USCI hanging caused by clearing the TXIFG bit.

Also removed the commands that allow set/clear of TXIFG, as there is never a
valid reason to do so.

14 years agoImprove interrupt handling for USCI.
R. Steve McKown [Thu, 8 Apr 2010 00:02:56 +0000 (18:02 -0600)]
Improve interrupt handling for USCI.

Because some interrupts share an interrupt vector, we use the relevant interrupt
enable bit to decide if any user is interested in the interrupt.  If not, that
interrupt is skipped so that another interrupt in the if/then/elseif chain can
be taken.  We also defensively try to prevent I2C interrupts from being a
problem if not used, although no I2C code using these interrupts has yet been
written.

14 years agoFix last UartSend.send() lost when immediately followed by UartStream.send().
R. Steve McKown [Wed, 7 Apr 2010 19:54:02 +0000 (13:54 -0600)]
Fix last UartSend.send() lost when immediately followed by UartStream.send().

14 years agoFix up a duplicate error message in tos-storage-stm25p.
R. Steve McKown [Tue, 13 Apr 2010 19:20:44 +0000 (13:20 -0600)]
Fix up a duplicate error message in tos-storage-stm25p.

14 years agoMake RS-232 signalling docs in tos-bsl easier to understand.
R. Steve McKown [Mon, 12 Apr 2010 23:04:37 +0000 (17:04 -0600)]
Make RS-232 signalling docs in tos-bsl easier to understand.

14 years agoTeach tos-storage-stm25p to derive NUM_SECTORS and SECTOR_SIZE.
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.

14 years agoOlimex P169 platform.
R. Steve McKown [Thu, 4 Mar 2010 20:37:26 +0000 (13:37 -0700)]
Olimex P169 platform.

14 years agoRemove unnecessary wiring for tmicore and derivative platforms.
R. Steve McKown [Thu, 4 Mar 2010 23:36:58 +0000 (16:36 -0700)]
Remove unnecessary wiring for tmicore and derivative platforms.

14 years agoUse platform variable name to build make dependency.
R. Steve McKown [Thu, 4 Mar 2010 23:16:48 +0000 (16:16 -0700)]
Use platform variable name to build make dependency.

Minimize the patch to upstream official, so don't make the same modification to
target files for platforms we didn't create.

14 years agoUSCI using uint8_t for len instead of required uint16_t.
R. Steve McKown [Thu, 25 Feb 2010 21:00:16 +0000 (14:00 -0700)]
USCI using uint8_t for len instead of required uint16_t.

14 years agoFix typo in msp430 BusyWait32khzC.nc.
R. Steve McKown [Wed, 3 Feb 2010 01:12:52 +0000 (18:12 -0700)]
Fix typo in msp430 BusyWait32khzC.nc.

14 years agoMake USCI interrupt comments more clear and accurate.
R. Steve McKown [Fri, 15 Jan 2010 15:42:58 +0000 (08:42 -0700)]
Make USCI interrupt comments more clear and accurate.

14 years agoCollapse two sections that are exactly the same.
R. Steve McKown [Fri, 15 Jan 2010 15:32:26 +0000 (08:32 -0700)]
Collapse two sections that are exactly the same.

14 years agoSeparate filters in tools/release/tinyos.files for use by debian packaging too. release/2.1.0-3
R. Steve McKown [Mon, 7 Dec 2009 17:29:57 +0000 (10:29 -0700)]
Separate filters in tools/release/tinyos.files for use by debian packaging too.

14 years agoAdd tinyos.sh, a utility for changing the active tree (TOSROOT).
R. Steve McKown [Thu, 3 Dec 2009 20:45:13 +0000 (13:45 -0700)]
Add tinyos.sh, a utility for changing the active tree (TOSROOT).

14 years agoUpdate tools/release/tinyos.files so it also works with debian/git builds.
R. Steve McKown [Mon, 7 Dec 2009 15:50:36 +0000 (08:50 -0700)]
Update tools/release/tinyos.files so it also works with debian/git builds.

14 years agoRemove unnecessary execute permission on text files.
R. Steve McKown [Thu, 3 Dec 2009 19:14:02 +0000 (12:14 -0700)]
Remove unnecessary execute permission on text files.

14 years agoFormally indicate support/sdk/c/sf/bootstrap is a shell script.
R. Steve McKown [Thu, 3 Dec 2009 19:13:31 +0000 (12:13 -0700)]
Formally indicate support/sdk/c/sf/bootstrap is a shell script.

14 years agoWe don't want README.mkd in the tree right now, though.
R. Steve McKown [Mon, 7 Dec 2009 15:39:42 +0000 (08:39 -0700)]
We don't want README.mkd in the tree right now, though.

14 years agoA possible README.mkd for when this repo is made public.
R. Steve McKown [Thu, 3 Dec 2009 02:55:59 +0000 (19:55 -0700)]
A possible README.mkd for when this repo is made public.

This file would work with github, for example.

14 years agoRemove unneeded references to oww dirs in tmirws .platform release/2.1.0-2
R. Steve McKown [Thu, 3 Dec 2009 00:39:34 +0000 (17:39 -0700)]
Remove unneeded references to oww dirs in tmirws .platform

14 years agoRemove sensors code from tmirws platform.
R. Steve McKown [Wed, 2 Dec 2009 23:37:00 +0000 (16:37 -0700)]
Remove sensors code from tmirws platform.

The sensors code is not stable enough for inclusion into core tinyos, nor is
there yet a clean separation between platform code and application code.  The
sensors code removed here was imported with its history into the RWS
application repository.

14 years agoMove NoMsp430GpioC out of tos/chips/msp430 and into tos/platforms/tmicore
R. Steve McKown [Wed, 2 Dec 2009 22:35:51 +0000 (15:35 -0700)]
Move NoMsp430GpioC out of tos/chips/msp430 and into tos/platforms/tmicore

While this component is very generic for msp430, there is no compelling case
yet to argue for its inclusion into core tinyos.

14 years agoUse AverageAngleC in AeroVaneReadC.
smckown [Mon, 9 Nov 2009 19:31:01 +0000 (19:31 +0000)]
Use AverageAngleC in AeroVaneReadC.

14 years agoAddress possible dead zone discontinuities when reading in WindVaneReadP.
smckown [Mon, 9 Nov 2009 19:31:00 +0000 (19:31 +0000)]
Address possible dead zone discontinuities when reading in WindVaneReadP.

14 years agoTeach aerovector_t that it can be null, via a special value in its dir member.
smckown [Mon, 9 Nov 2009 19:30:59 +0000 (19:30 +0000)]
Teach aerovector_t that it can be null, via a special value in its dir member.

14 years agoRedo Average interface.
smckown [Mon, 9 Nov 2009 19:30:58 +0000 (19:30 +0000)]
Redo Average interface.

There is no point in having the averagers pre-know their number of samples.
The user should know this information.  Therefore we have a more flexible
solution and avoid a signal to return the averate to the user when that user is
very likely to want to call a command instead.

14 years agoClean up comments in AeroVane.h to better explain aerovector fields.
smckown [Mon, 9 Nov 2009 19:30:57 +0000 (19:30 +0000)]
Clean up comments in AeroVane.h to better explain aerovector fields.

14 years agoAdd the averaging components and their interface.
smckown [Mon, 9 Nov 2009 19:30:56 +0000 (19:30 +0000)]
Add the averaging components and their interface.

14 years agoAnemometerReadC changes
smckown [Mon, 9 Nov 2009 19:30:55 +0000 (19:30 +0000)]
AnemometerReadC changes

* Replace interface AsyncGet with Get.
* Change interface Count name to Revolutions.

14 years agoUpdates to WindVaneReadC
smckown [Mon, 9 Nov 2009 19:30:54 +0000 (19:30 +0000)]
Updates to WindVaneReadC

* Use AverageAngleC to average readings
* Adapt to latest changes to MultiSampleC

14 years agoChanges to MultiSampleC
smckown [Mon, 9 Nov 2009 19:30:53 +0000 (19:30 +0000)]
Changes to MultiSampleC

* Returns the array of samples rather than their sum.
* Hard coded to work with uint16_t samples.

14 years agoEnhancements to AeroVaneReadC.
smckown [Mon, 9 Nov 2009 19:30:52 +0000 (19:30 +0000)]
Enhancements to AeroVaneReadC.

* Anemometer is read immediately after the Timer fires to reduce jitter.
* Count interface is renamed Revolutions to be more meaningful.
* m_count is now uint8_t to reflect a more reasonable real life range.
* Direction data is returned no as degrees but as a 10-bit unsigned value.
* m_sum accumulates the correct, updated angle values.
* Rounding is done properly when m_sum is negative.

14 years agoRemove references to Alarm; use of a Timer will be fine.
smckown [Mon, 9 Nov 2009 19:30:51 +0000 (19:30 +0000)]
Remove references to Alarm; use of a Timer will be fine.

14 years agoWhen using a Timer in AeroVaneReadP, we don't need to post a task to read vane.
smckown [Mon, 9 Nov 2009 19:30:50 +0000 (19:30 +0000)]
When using a Timer in AeroVaneReadP, we don't need to post a task to read vane.

14 years agoMay or may not use these
smckown [Sat, 7 Nov 2009 23:59:04 +0000 (23:59 +0000)]
May or may not use these

14 years agoAdd in the formula to convert the returned speed to mph. Temporary.
smckown [Sat, 7 Nov 2009 23:59:00 +0000 (23:59 +0000)]
Add in the formula to convert the returned speed to mph.  Temporary.

14 years agoAdd AeroVane infrastructure to support physical/reading of the sensor.
smckown [Sat, 7 Nov 2009 23:58:55 +0000 (23:58 +0000)]
Add AeroVane infrastructure to support physical/reading of the sensor.

AeroVaneReadC implements a timer every 28800 ticks of the 32KHz clock (or 900
binary ms).  At each timer event it reads the wind vane via WindVaneReadC.
On every 4th read it reads the anemometer via AnemometerReadC, calculates the
average vane position over the last 4 reads (it's been summing all along),
and uses Notify.notify() to send out the aerovector structure.  This means
that the user should get an AeroVane vector (reading) every 3.516 seconds, where
both the direction and the speed have been averaged over 4 reads during that
period.

14 years agoFix an incorrect comment regarding the dead band check endpoint.
smckown [Fri, 6 Nov 2009 00:53:44 +0000 (00:53 +0000)]
Fix an incorrect comment regarding the dead band check endpoint.

14 years agoChagne the wind vane compass accumulator from an uint16_t to an uint8_t array.
smckown [Wed, 4 Nov 2009 19:17:59 +0000 (19:17 +0000)]
Chagne the wind vane compass accumulator from an uint16_t to an uint8_t array.

We are suposed to accumulate wind readings every 2 minutes, which is only 120
points at one per second.

14 years agoFix the comments in WindVaneC, etc. There is no longer a power of 2 requirement.
smckown [Wed, 4 Nov 2009 19:17:58 +0000 (19:17 +0000)]
Fix the comments in WindVaneC, etc.  There is no longer a power of 2 requirement.

14 years agoWiden the dead band detect range again.
smckown [Wed, 4 Nov 2009 19:17:57 +0000 (19:17 +0000)]
Widen the dead band detect range again.

We leaked a false direction of 210 degrees (36 sectors) when in the dead band.

14 years agoReplace a cardinal value with its proper template argument in WindVaneP.
smckown [Wed, 4 Nov 2009 19:17:56 +0000 (19:17 +0000)]
Replace a cardinal value with its proper template argument in WindVaneP.

The wind vane infrastructure works with 128 sectors, the max, which offers
approximately a 3 degree resolution.  This comes at the cost of an additional
129 bytes of RAM over using 32 sectors.

14 years agoUpdate WindVaneC to use newer underlying code.
smckown [Wed, 4 Nov 2009 03:55:06 +0000 (03:55 +0000)]
Update WindVaneC to use newer underlying code.

Wind directions are returned as sectors; use the sector count available by
call Sectors.get() to convert to degrees.  Doing this saves some memory.

14 years agoWindVaneReadC gives instantaneous compass heading reading from the wind vane.
smckown [Wed, 4 Nov 2009 03:55:05 +0000 (03:55 +0000)]
WindVaneReadC gives instantaneous compass heading reading from the wind vane.

14 years agoUpdate HalWindVaneC so that it adds dead zone check support and pin init.
smckown [Wed, 4 Nov 2009 03:55:04 +0000 (03:55 +0000)]
Update HalWindVaneC so that it adds dead zone check support and pin init.

14 years agoClean up the ADC configuration for the wind vane.
smckown [Wed, 4 Nov 2009 03:55:03 +0000 (03:55 +0000)]
Clean up the ADC configuration for the wind vane.

14 years agoConvenience components that multi-sample an ADC pin for oversampling.
smckown [Wed, 4 Nov 2009 03:55:02 +0000 (03:55 +0000)]
Convenience components that multi-sample an ADC pin for oversampling.

14 years agoCorrect mph calculations in AnemometerP.nc for Davis aerovane.
smckown [Wed, 4 Nov 2009 03:55:01 +0000 (03:55 +0000)]
Correct mph calculations in AnemometerP.nc for Davis aerovane.

14 years agoFix IO config problems for tmirws board wind direction peripheral.
smckown [Wed, 4 Nov 2009 03:55:00 +0000 (03:55 +0000)]
Fix IO config problems for tmirws board wind direction peripheral.

14 years agoEnsure that uC input pin P1.2_CP_RTS is valid when the CP2103 is off.
smckown [Mon, 2 Nov 2009 20:43:24 +0000 (20:43 +0000)]
Ensure that uC input pin P1.2_CP_RTS is valid when the CP2103 is off.

We accomplish this by enabling an internal pull-down on P1.2 of the MSP430.
It would be better to enable a pull-up, but then we are sending a voltage to
the CP2103 when it is off, which may cause a latch-up problem.  The pull-down
isn't terrible, since it represents the condition whereby the USB host is ready
to receive data from the RWS.  When the USB is connected, this is likely to be
the most common condition.

14 years agoWork on wind sensor move to Davis Instruments.
smckown [Mon, 2 Nov 2009 20:43:23 +0000 (20:43 +0000)]
Work on wind sensor move to Davis Instruments.

14 years agoWork in process to support Davis instruments aerovane (wind vane).
smckown [Mon, 2 Nov 2009 20:43:22 +0000 (20:43 +0000)]
Work in process to support Davis instruments aerovane (wind vane).

14 years agoIgnore files created when running tos-install-jni.
smckown [Mon, 2 Nov 2009 20:43:21 +0000 (20:43 +0000)]
Ignore files created when running tos-install-jni.

14 years agoSync tmicore MotePlatformC with that of tmirws, and do some comment formatting.
smckown [Mon, 2 Nov 2009 20:43:20 +0000 (20:43 +0000)]
Sync tmicore MotePlatformC with that of tmirws, and do some comment formatting.

14 years agotmirws sets outputs going to cp2103 to low (zero) by default.
smckown [Wed, 5 Aug 2009 02:57:10 +0000 (02:57 +0000)]
tmirws sets outputs going to cp2103 to low (zero) by default.

If any of these drive a high value toward the cp2103, the cp2103 is not
connected to USB power, and VIO is disconnected from Vuc, then funky things
happen that can cause GPIO_3, tied to !UC_RST, to sink current and cause the
uC to go into reset.  Similar bad behavior can happen with !USB_SUSPEND.

14 years agoReorganize scp1000 driver code.
smckown [Wed, 5 Aug 2009 02:57:08 +0000 (02:57 +0000)]
Reorganize scp1000 driver code.

The Scp1000P module now only uses GeneralIO and is not tied to anything msp430
specific.  The msp430 specific bits are in the platform dependent file
Scp1000PinsP.

14 years agoMove weather instrument sensors code out of TOSDIR/chips, as they aren't.
smckown [Wed, 5 Aug 2009 02:57:07 +0000 (02:57 +0000)]
Move weather instrument sensors code out of TOSDIR/chips, as they aren't.

For now, we'll place them in TOSDIR/platforms/tmirws/sensors.  Also, renamed
are the OwwSpeed files, to Anemometer, and OwwVane files to WindVane, as these
names better reflect the fact that the code isn't all that OWW or Davis
specific.

14 years agoThis change is required to remove async warnings in the phase2 app. release/2.1.0-1
smckown [Sun, 10 May 2009 00:00:32 +0000 (00:00 +0000)]
This change is required to remove async warnings in the phase2 app.

Need to look into this closer.  This doesn't make sense, as the sporian0010_02
platform, which uses the usart SPI peripheral, doesn't generate these errors
and that peripheral's SpiPacket.sendDone() doesn't specifically signal
atomically.

14 years agoChanges to reduce atomic code.
smckown [Fri, 8 May 2009 23:19:07 +0000 (23:19 +0000)]
Changes to reduce atomic code.

14 years agoSlightly better implementation of SpiPacket.send.
smckown [Fri, 8 May 2009 22:27:17 +0000 (22:27 +0000)]
Slightly better implementation of SpiPacket.send.

14 years agoReturn a real error code and actual bytes written in SpiPacket.sendDone.
smckown [Fri, 8 May 2009 22:27:16 +0000 (22:27 +0000)]
Return a real error code and actual bytes written in SpiPacket.sendDone.

Be careful with this one.  The usart SPI peripheral always returned the length
it was given and an error of SUCCESS, so this could create some regressions.

14 years agoImplement chip select query for SPI peripheral.
smckown [Fri, 8 May 2009 22:27:14 +0000 (22:27 +0000)]
Implement chip select query for SPI peripheral.

If the SPI peripheral is in slave mode, a transaction could be halted at any
time by the host unasserting (high) the chip select line.  This code implements
a check on chip select to allow SPI slaves to see the early abort and act
accordingly.

14 years agoAdd .gitignore
smckown [Fri, 8 May 2009 22:26:32 +0000 (22:26 +0000)]
Add .gitignore

14 years agoFix race conditions when SPI peripheral is unconfigured during activity.
smckown [Wed, 6 May 2009 18:08:23 +0000 (18:08 +0000)]
Fix race conditions when SPI peripheral is unconfigured during activity.

14 years agoMsp430SpiP.sendData() reads rxbuf redundantly.
smckown [Wed, 6 May 2009 14:57:47 +0000 (14:57 +0000)]
Msp430SpiP.sendData() reads rxbuf redundantly.

14 years agoRemove incorrect comment from Msp430SpiP.
smckown [Wed, 6 May 2009 14:57:46 +0000 (14:57 +0000)]
Remove incorrect comment from Msp430SpiP.

14 years agoRevert "Remove the NO_REN_ON_SPI define."
smckown [Thu, 30 Apr 2009 20:53:36 +0000 (20:53 +0000)]
Revert "Remove the NO_REN_ON_SPI define."

This reverts commit 50fa36081d963e9da0c4544d753e77c53c1b0ac8 (svn r152).  With
PxREN manipulation in usci/Msp430SpiP, the phase2 app does not send packets to
the gateway.

14 years agoRemove the NO_REN_ON_SPI define.
smckown [Thu, 30 Apr 2009 13:58:20 +0000 (13:58 +0000)]
Remove the NO_REN_ON_SPI define.

Per the TI datasheet, PxREN bits shouldn't be set at the same time as the
corresponding PxSEL (module function) bits as unintended current consumption
could be triggered.

14 years agoAdd feature to optionally clear PxREN bits for SPI comms.
smckown [Tue, 28 Apr 2009 18:59:05 +0000 (18:59 +0000)]
Add feature to optionally clear PxREN bits for SPI comms.

14 years agoRemove spi debug that leaked from the spidebug branch.
smckown [Tue, 28 Apr 2009 18:59:00 +0000 (18:59 +0000)]
Remove spi debug that leaked from the spidebug branch.

14 years agoMsp430SpiP SpiPacket.sendDone was incorrectly sending len==0.
smckown [Mon, 27 Apr 2009 04:48:57 +0000 (04:48 +0000)]
Msp430SpiP SpiPacket.sendDone was incorrectly sending len==0.

14 years agoFix error in last commit; need to check getIfgRx() not getIfgTx().
smckown [Sat, 25 Apr 2009 18:39:02 +0000 (18:39 +0000)]
Fix error in last commit; need to check getIfgRx() not getIfgTx().

14 years agoHave Msp430 USCI SpiPacket send op abort if it sees peripheral UCSWRST.
smckown [Sat, 25 Apr 2009 03:03:26 +0000 (03:03 +0000)]
Have Msp430 USCI SpiPacket send op abort if it sees peripheral UCSWRST.

14 years agoUse the byte passed into Interrupt.rx() rather calling into hw again.
smckown [Sat, 25 Apr 2009 03:03:24 +0000 (03:03 +0000)]
Use the byte passed into Interrupt.rx() rather calling into hw again.

14 years agoUse the byte passed into Interrupt.rx() rather calling into hw again.
smckown [Wed, 22 Apr 2009 00:33:44 +0000 (00:33 +0000)]
Use the byte passed into Interrupt.rx() rather calling into hw again.

14 years agoMsp430SpiP.nc: allow users to call SpiPacket.send() from SpiPacket.sendDone().
smckown [Tue, 21 Apr 2009 22:23:42 +0000 (22:23 +0000)]
Msp430SpiP.nc: allow users to call SpiPacket.send() from SpiPacket.sendDone().

14 years agoFix up io pin restoration after SPI peripheral is released.
smckown [Wed, 1 Apr 2009 22:34:06 +0000 (22:34 +0000)]
Fix up io pin restoration after SPI peripheral is released.

14 years agoWrong definition. __MSP430_HAS_ADC12 has trailing underscores.
smckown [Wed, 1 Apr 2009 00:41:26 +0000 (00:41 +0000)]
Wrong definition.  __MSP430_HAS_ADC12 has trailing underscores.

14 years agoThis change allows msp430 usci SpiByte.write to terminate if the spi resource
smckown [Tue, 10 Mar 2009 01:36:20 +0000 (01:36 +0000)]
This change allows msp430 usci SpiByte.write to terminate if the spi resource
is released in a higher level interrupt.

14 years agoMsp430UartP for usci incorrectly resetting peripheral state when released.
smckown [Tue, 10 Mar 2009 00:07:14 +0000 (00:07 +0000)]
Msp430UartP for usci incorrectly resetting peripheral state when released.