changeset 2958:b4977dbda76c

* doc/adc.sgml Updated documentation, add new ADC data flush and correct Copy/Paste in enable_io.
author sergeig
date Mon, 07 Jun 2010 17:10:54 +0000
parents e382c7388162
children eb303059b6e5
files packages/io/adc/current/ChangeLog packages/io/adc/current/doc/adc.sgml
diffstat 2 files changed, 27 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/packages/io/adc/current/ChangeLog
+++ b/packages/io/adc/current/ChangeLog
@@ -1,4 +1,9 @@
-20010-05-25 ccoutand <ccoutand@stmi.com>
+2010-06-06 ccoutand <ccoutand@stmi.com>
+	* doc/adc.sgml
+	Updated documentation, add new ADC data flush and 
+	correct Copy/Paste in enable_io
+
+2010-05-25 ccoutand <ccoutand@stmi.com>
 	* src/adc.c: 
 	Add new key to ADC driver to flush data buffer:
 	CYG_IO_SET_CONFIG_ADC_DATA_FLUSH
--- a/packages/io/adc/current/doc/adc.sgml
+++ b/packages/io/adc/current/doc/adc.sgml
@@ -257,7 +257,27 @@ int disable_io( cyg_io_handle_t handle )
 int enable_io( cyg_io_handle_t handle )
 {
     return cyg_io_set_config( handle,
-                              CYG_IO_SET_CONFIG_ADC_DISABLE,
+                              CYG_IO_SET_CONFIG_ADC_ENABLE,
+                              NULL,
+                              NULL);
+}
+</programlisting>
+
+</refsect2>
+
+<refsect2 id="adc-details-flush"><title>Flushing a Channel</title>
+
+<para>
+In some particular cases, user might require to flush the ADC data buffer. Flushing
+may be perfomed via a <function>set_config</function>
+function:
+</para>
+
+<programlisting width=72>
+int flush_io( cyg_io_handle_t handle )
+{
+    return cyg_io_set_config( handle,
+                              CYG_IO_SET_CONFIG_ADC_DATA_FLUSH,
                               NULL,
                               NULL);
 }
@@ -267,7 +287,6 @@ int enable_io( cyg_io_handle_t handle )
 
 </refsect1>
 
-
 <refsect1 id="adc-config"><title>Configuration</title>
 
 <para>