]> oss.titaniummirror.com Git - tinyos-2.x.git/log
tinyos-2.x.git
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.

14 years agoResource unconfigure in Msp430SpiP for usci was incorrect.
smckown [Tue, 10 Mar 2009 00:04:49 +0000 (00:04 +0000)]
Resource unconfigure in Msp430SpiP for usci was incorrect.

14 years agoAdd PlatformSerialC to tmicore, for convenience.
smckown [Sat, 28 Feb 2009 03:09:58 +0000 (03:09 +0000)]
Add PlatformSerialC to tmicore, for convenience.

14 years agoPossible tos.mk; see the comments inside.
smckown [Thu, 26 Feb 2009 20:57:31 +0000 (20:57 +0000)]
Possible tos.mk; see the comments inside.

14 years agoFlash bits for the tmicore platform. Need work.
smckown [Thu, 26 Feb 2009 20:56:51 +0000 (20:56 +0000)]
Flash bits for the tmicore platform.  Need work.

14 years agoFix up steve's e-mail address.
smckown [Wed, 11 Feb 2009 18:34:15 +0000 (18:34 +0000)]
Fix up steve's e-mail address.

14 years agoFix up HplMsp430GeneralIOC.nc to make it more robust in the face of various
smckown [Wed, 11 Feb 2009 18:33:02 +0000 (18:33 +0000)]
Fix up HplMsp430GeneralIOC.nc to make it more robust in the face of various
msp430 configurations.

14 years agoStart a davis anemometer 'chip' directory from the one for oww. These two
smckown [Sun, 12 Oct 2008 22:05:44 +0000 (22:05 +0000)]
Start a davis anemometer 'chip' directory from the one for oww.  These two
components actually share a good deal of information, especially the
interfaces.

14 years agoAdd OWW hardware support to TinyOS tree.
smckown [Sun, 21 Sep 2008 14:38:15 +0000 (14:38 +0000)]
Add OWW hardware support to TinyOS tree.

14 years agoBack to stable VeREF for now.
smckown [Tue, 16 Sep 2008 21:43:48 +0000 (21:43 +0000)]
Back to stable VeREF for now.

14 years agoADC functionality still questionable.
smckown [Tue, 16 Sep 2008 21:22:25 +0000 (21:22 +0000)]
ADC functionality still questionable.

14 years agoUpdates to tmirws MotePlatformC to reflect proper states for pins to the cell
smckown [Tue, 16 Sep 2008 20:20:47 +0000 (20:20 +0000)]
Updates to tmirws MotePlatformC to reflect proper states for pins to the cell
radio section while the cell radio is not populated.

14 years agoAdd ADC sensors for reading pyranomenter and battery to tmirws platform.
smckown [Tue, 16 Sep 2008 17:12:03 +0000 (17:12 +0000)]
Add ADC sensors for reading pyranomenter and battery to tmirws platform.

14 years agoOops; added BusyWait to tmirws HalSensirionSht11C twice.
smckown [Tue, 16 Sep 2008 14:26:23 +0000 (14:26 +0000)]
Oops; added BusyWait to tmirws HalSensirionSht11C twice.

14 years agoDon't leave the iopin attached to the sht1x SCK pin floating when the
smckown [Tue, 16 Sep 2008 14:25:18 +0000 (14:25 +0000)]
Don't leave the iopin attached to the sht1x SCK pin floating when the
controlling Resource is released.  Also, set the DATA pin in a manner
consistent with the fact that it is a pulled-up line by default, either
via an external resistor or one internal to the uC.

14 years agoUpdate the HalSensirionSht11C platform files to provide the necessary
smckown [Tue, 16 Sep 2008 14:20:43 +0000 (14:20 +0000)]
Update the HalSensirionSht11C platform files to provide the necessary
BusyWait interface.

14 years agoIncorporate a BusyWait interface for allowing platforms to override the
smckown [Tue, 16 Sep 2008 14:17:50 +0000 (14:17 +0000)]
Incorporate a BusyWait interface for allowing platforms to override the
timing control necessary when bit-banging the SHT1X clock.

14 years agoCleanups to the tmirws platform MotePlatformC pin initialization.
smckown [Mon, 15 Sep 2008 23:49:16 +0000 (23:49 +0000)]
Cleanups to the tmirws platform MotePlatformC pin initialization.

14 years agosht11 support for tmirws. Currently uses an open drain adapter that relies
smckown [Mon, 15 Sep 2008 23:48:51 +0000 (23:48 +0000)]
sht11 support for tmirws.  Currently uses an open drain adapter that relies
on the msp430's internal pull up/down resistors.  Some cleanup may be required.

14 years agoTurn on TimerA. This is done for all other msp430 platforms, so we want to
smckown [Sun, 14 Sep 2008 14:50:06 +0000 (14:50 +0000)]
Turn on TimerA.  This is done for all other msp430 platforms, so we want to
be consistent for now.  A better solution is resource management to decide
when the timers need to run so they can be off when not needed to safe
power.

14 years agoAll the weather sensors are now installed; setup uc pins correctly.
smckown [Sat, 13 Sep 2008 01:18:41 +0000 (01:18 +0000)]
All the weather sensors are now installed; setup uc pins correctly.

14 years agoMigrate scp1000 components into tos tree
smckown [Fri, 12 Sep 2008 23:27:42 +0000 (23:27 +0000)]
Migrate scp1000 components into tos tree

14 years agoUpdate tmirws/MotePlatformC code as well.
smckown [Fri, 12 Sep 2008 22:14:18 +0000 (22:14 +0000)]
Update tmirws/MotePlatformC code as well.

14 years agoClean up pin configuration for peripheral code. Here's the best practice
smckown [Fri, 12 Sep 2008 22:11:15 +0000 (22:11 +0000)]
Clean up pin configuration for peripheral code.  Here's the best practice
for platforms.  MotePlatformC defines pins, using also the new PxREN feature,
such that the peripheral pins are inputs with pull up/down's, or outputs, as
required to meet the electrical characteristics when the peripheral is not on.
In the peripheral's implementation of ResourceConfigure, it sets module
function on configure() and sets back to IO funtion on unconfigure(), but
only if the pin was set to IO mode when configure() was called.  This latter
condition allows a MotePlatformC to set peripheral mode on for pins that will
always be used for peripheral function, and the modes won't switch around.

14 years agoMsp430ClockC must pull in Msp430TimerC to attach the default Timer.overflow()
smckown [Fri, 12 Sep 2008 18:53:58 +0000 (18:53 +0000)]
Msp430ClockC must pull in Msp430TimerC to attach the default Timer.overflow()
for both Timers A and B.  This was inadvertently removed recently not realizing
its importance.

14 years agoFinish changes to tmirws.target.
smckown [Thu, 11 Sep 2008 22:45:24 +0000 (22:45 +0000)]
Finish changes to tmirws.target.

14 years agotmirws make target code
smckown [Thu, 11 Sep 2008 22:44:20 +0000 (22:44 +0000)]
tmirws make target code

14 years agoModify initial tmirws platform code.
smckown [Thu, 11 Sep 2008 22:43:43 +0000 (22:43 +0000)]
Modify initial tmirws platform code.

14 years agoCopy tmicore MotePlatformC.nc to tmirws.
smckown [Thu, 11 Sep 2008 22:42:46 +0000 (22:42 +0000)]
Copy tmicore MotePlatformC.nc to tmirws.

14 years agoStart tmirws platform, which is tmicore + weather peripherals.
smckown [Thu, 11 Sep 2008 22:42:16 +0000 (22:42 +0000)]
Start tmirws platform, which is tmicore + weather peripherals.

14 years agoFor tmicore platform, remove unused pin defs in hardware.h and add PxREN
smckown [Thu, 11 Sep 2008 22:40:16 +0000 (22:40 +0000)]
For tmicore platform, remove unused pin defs in hardware.h and add PxREN
initialization to MotePlatformC.  Set unused pins to be input with pull-up.
This should be far safer in terms of possible short events that setting
unused pins to outputs, since tmicore has an expansion header.

14 years agoAdd pin initialization for bq2403x and cp210x
smckown [Thu, 11 Sep 2008 22:38:32 +0000 (22:38 +0000)]
Add pin initialization for bq2403x and cp210x

14 years agoThe AT25DF part is not compatible with the AT45DB nor the STM25P, apparently.
smckown [Thu, 11 Sep 2008 02:34:55 +0000 (02:34 +0000)]
The AT25DF part is not compatible with the AT45DB nor the STM25P, apparently.
It is quite close to the STM25P, but mapping the chip to that code failed to
get good results using the tests/storage/Block application.  However, the
part does work correctly with a test application written directly to its SPI
API.

14 years agoAdded SPI support. Now working using the loopback feature (UCLISTEN bit).
smckown [Wed, 10 Sep 2008 22:15:35 +0000 (22:15 +0000)]
Added SPI support.  Now working using the loopback feature (UCLISTEN bit).
Also fixed a relocation error problem due to packed structures and placement
of instantiations in text page via "const static ...".  No change to text
or data page sizes at compilation.  Since msp430_usci_xxx_t will never be on
the stack, removal of the packed attribute was the way to work around what
appears to be a compiler problem.

14 years agoFix up atomic warnings for robug in MSp430UartP.nc.
smckown [Tue, 9 Sep 2008 18:10:36 +0000 (18:10 +0000)]
Fix up atomic warnings for robug in MSp430UartP.nc.

14 years agoAdd support for the cp210x chipset, which is simply a debounced version status
smckown [Tue, 9 Sep 2008 17:55:51 +0000 (17:55 +0000)]
Add support for the cp210x chipset, which is simply a debounced version status
of the chip's USB_SUSPENDn pin.

14 years agoImplement support for the BQ2403x charge controller family. Only tested with
smckown [Tue, 9 Sep 2008 16:50:07 +0000 (16:50 +0000)]
Implement support for the BQ2403x charge controller family.  Only tested with
the BQ24032.

14 years agoUpdate HplMsp430Interrupt(P|C) to support msp430 parts with pullup/pulldown
smckown [Tue, 9 Sep 2008 16:49:27 +0000 (16:49 +0000)]
Update HplMsp430Interrupt(P|C) to support msp430 parts with pullup/pulldown
resistors.

14 years agoFix up copyright info on tos/chips/msp430/pins/HplMsp430GeneralIORenP.nc.
smckown [Tue, 9 Sep 2008 14:47:01 +0000 (14:47 +0000)]
Fix up copyright info on tos/chips/msp430/pins/HplMsp430GeneralIORenP.nc.
Attribution must be presented to file from which this one was derived.

14 years agoAdjust tmicore platform to NOT use tos/chips/msp430/clock2. This code is
smckown [Tue, 9 Sep 2008 14:36:03 +0000 (14:36 +0000)]
Adjust tmicore platform to NOT use tos/chips/msp430/clock2.  This code is
more efficient in code size, but it may not work for all msp430s.