[Tinyos-commits] CVS: tinyos-1.x/tos/platform/telosb .platform, 1.4, 1.5

Joe Polastre jpolastre at users.sourceforge.net
Wed Sep 28 03:41:13 PDT 2005


Update of /cvsroot/tinyos/tinyos-1.x/tos/platform/telosb
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30738/telosb

Modified Files:
	.platform 
Log Message:
complete reorganization of ADC to support DMA and DAC modules   

Changes to the ADC include:

The ADC no longer directly accesses TimerA.  Instead it uses
the TimerExclusive interface in MSP430TimerAExclusive to gain
exclusive lock on TimerA.  It releases TimerA when it is done.
This is necessary for other components that would like to use
TimerA to do so, such as the DAC.

Commands for the DMA have been added to the MSP430Single and
MSP430Multiple ADC interfaces.  These include startSampling,
stopSampling, pauseSampling, and resumeSampling.  They should only
be used in conjunction with the DMA and never as standalone functions.

A TinyOS driver for the DAC is being committed that uses the
newly created TimerExclusive interface to get access to TimerA.
It also supports DMA use.

The DMA has been rearchitected to follow the namespace of the other
components with minor bug fixes.  

The ADC, DAC, and DMA have been moved to their own subdirectories to
make life easier when viewing the msp430 platform.  Platforms that
rely on these components must now include the following lines in the
@opts section of their .platform file:
-I%T/platform/msp430/adc
-I%T/platform/msp430/dac
-I%T/platform/msp430/dma

A sample application is being checked in to 
apps/TestMSP430DMA/
that includes TestADC12DMAC for reading multiple samples from the ADC
and also TestDAC12DMAC for sending multiple readings via the DAC

Although I spearheaded much of the DAC efforts, credit goes to
Ben Greenstein for fixes to the ADC and much of the DMA code that I based
this new implementation on.



Index: .platform
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tos/platform/telosb/.platform,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** .platform	12 Jul 2005 06:44:15 -0000	1.4
--- .platform	28 Sep 2005 10:41:11 -0000	1.5
***************
*** 12,15 ****
--- 12,18 ----
    %T/platform/telos
    %T/platform/msp430
+   %T/platform/msp430/adc
+   %T/platform/msp430/dac
+   %T/platform/msp430/dma
    %T/lib/Flash/STM25P
    %T/lib/Flash



More information about the Tinyos-commits mailing list