CVS: examples README.txt,1.3,1.4 makefile,1.11,1.12

Chris Liechti <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/examples
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28564/examples

Modified Files:
	README.txt makefile 
Log Message:
- update readmes
- build the HTML docs using docutils

Index: README.txt
===================================================================
RCS file: /cvsroot/mspgcc/examples/README.txt,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- README.txt	30 Dec 2005 16:02:11 -0000	1.3
+++ README.txt	5 Jan 2006 01:35:09 -0000	1.4
@@ -4,30 +4,14 @@
 Some of the examples are ported from TIs examples, others are part of mspgcc.
 
 
-TI's examples
--------------
-
-The examples in the directories beginning slac are the examples from the
-similarly names packages of examples available at the Texas Instruments web
-site. These copies have been adapted for the mspgcc compiler. This means:
-
-- The interrupt routines are defined slightly differently, to suit the
-  syntax of GCC,
-- The main routines are now defined as ``int main(void)``
-- The headers io.h and signal.h are included, instead of the device specific
-  headers used in the original packages.
-- Make files have been added. The original Texas Instruments example packages
-  do not include make files.
-
-
-Additional examples
--------------------
+mspgcc examples
+---------------
 Most examples are covered by a license_. See also the individual readmes in
 the respective folders.
 
 Applications
 ~~~~~~~~~~~~
-i2c_spy
+i2c_spy_
     This Program implements a I2C spy in software. The I2C data is logged
     as hex dump over the serial port. No hardware support for the I2C is
     needed, which means this application can run a F123.
@@ -95,6 +79,7 @@
     Video games using a F1121, 2 resitors, a crystal, and a joystick.
 
 
+.. _i2c_spy: i2c_spy/README.html
 .. _leds: leds/README.html
 .. _bufferedUSART: bufferedUSART/README.html
 .. _timerA_uart: timerA_uart/README.html
@@ -112,3 +97,48 @@
 .. _tcpip: tcpip/README.html
 .. _video: video/README.html
 .. _license: LICENSE.html
+
+TI's application notes
+----------------------
+
+The examples in the directories beginning slac are the examples from the
+similarly named packages of examples available at the Texas Instruments web
+site. These copies have been adapted for the mspgcc compiler. This means:
+
+- The interrupt routines are defined slightly differently, to suit the
+  syntax of GCC,
+- The main routines are now defined as ``int main(void)``
+- The headers io.h and signal.h are included, instead of the device specific
+  headers used in the original packages.
+- Make files have been added. The original Texas Instruments example packages
+  do not include make files.
+
+The ported sources for the following application notes are available:
+
+- slaa076a      *Implementing a Real-Time Clock on the MSP430 (Rev. A)*
+- slaa078a      *Implementing a UART Function with Timer_A3 (Rev. A)*
+- slaa108a      *SPI-Based Data Acquisition/Monitor Using the TLC2551 Serial ADC ...*
+- slaa116       *Using PWM Timer_B as a DAC*
+- slaa119       *UltraLow Power RC Timer Implementation Using MSP430*
+- slaa120       *PWM DC Motor Control Using Timer A of the MSP430*
+- slaa123       *Solid State Voice Recorder Using Flash MSP430*
+- slaa125a      *Implementing a Direct Thermocouple Interface With MSP430x4xx and ADS1240*
+- slaa126a      *Interfacing the TLC3544/48 ADC to the MSP430F149 (Rev. A)*
+- slaa129       *Digital Fan Control with Tachometer using MSP430*
+- slaa131       *A Low-Cost 12-bits Speech CODEC Using the MSP430F13x*
+- slaa133
+- slaa136a      *Ultrasonic Distance Measurement with the MSP430 (Rev. A)*
+- slaa138a      *An Electronic Water Meter Design Using MSP430F41x (Rev. A)*
+- slaa150       *Interfacing the ADS8364 ADC to the MSP430F149*
+- slaa151       *Interfacing the MSP430 and TMP100 I2C Temperature Sensor*
+- slaa168       *Interfacing the TLC2552 and TLV2542 to the MSP430F149*
+- slac010       *FET110*
+- slac011       *FET110*
+- slac012       *FET120*
+- slac013       *FET120*
+- slac014       *FET140*
+- slac015       *FET140*
+- slac016       *FET410*
+- slac017       *FET410*
+- slac018       *FET440*
+- slac019       *FET440*

Index: makefile
===================================================================
RCS file: /cvsroot/mspgcc/examples/makefile,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -w -d -r1.11 -r1.12
--- makefile	4 Jan 2006 00:03:05 -0000	1.11
+++ makefile	5 Jan 2006 01:35:09 -0000	1.12
@@ -1,21 +1,33 @@
 PROJECTS = leds timerA_uart uart_test char_lcd gfx_lcd video uart_test\
            sla* rawsources reed-solomon tcpip bufferedUSART tasker cplusplus \
-           fet_spi_irq libraries
+           fet_spi_irq libraries i2c_spy stackcheck
 #not yet completed: pc_keyboard 
 
-RST2HTML = rst2html
+STYLESHEET := "$(shell cygpath -w `pwd`)/../docs/stylesheet.css"
+RST2HTML = python -c "from docutils.core import publish_cmdline; publish_cmdline(writer_name='html')"
+HTMLOPT  = --stylesheet=$(STYLESHEET)
 
-all: README.html LICENSE.html doc
+export RST2HTML
+export HTMLOPT
+
+all: doc
 
 %.html: %.txt
-	$(RST2HTML) $< $@
+	$(RST2HTML) $(HTMLOPT) $< $@
 
 dist:	clean
 	tar czf examples.tgz --exclude=CVS --exclude=cvs $(PROJECTS) LICENSE.txt
 	zip -r9 examples.zip $(PROJECTS) LICENSE.txt -i \*.\*
 
-doc:
-	for d in $(PROJECTS); do if [ -f $$d/README.txt ]; then  $(RST2HTML) $$d/README.txt $$d/README.html; fi;done
+doc: README.html LICENSE.html ../docs/stylesheet.css
+	for d in $(PROJECTS); do \
+            if [ -f $$d/README.txt ]; then \
+                $(RST2HTML) $(HTMLOPT) $$d/README.txt $$d/README.html; \
+            fi; \
+            if [ -f makefile -o -f Makefile ]; then \
+                make -C $$d doc ;\
+            fi; \
+        done; true
 
 clean-doc:
 	for d in $(PROJECTS); do if [ -f $$d/README.txt ]; then  rm -f $$d/README.html; fi;done



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.