# HG changeset patch # User sergeig # Date 1275930654 0 # Node ID b4977dbda76c1ea9a596f52662d88903009a3b89 # Parent e382c738816292850f37e920946f6b9e234c3c47 * doc/adc.sgml Updated documentation, add new ADC data flush and correct Copy/Paste in enable_io. diff --git a/packages/io/adc/current/ChangeLog b/packages/io/adc/current/ChangeLog --- a/packages/io/adc/current/ChangeLog +++ b/packages/io/adc/current/ChangeLog @@ -1,4 +1,9 @@ -20010-05-25 ccoutand +2010-06-06 ccoutand + * doc/adc.sgml + Updated documentation, add new ADC data flush and + correct Copy/Paste in enable_io + +2010-05-25 ccoutand * src/adc.c: Add new key to ADC driver to flush data buffer: CYG_IO_SET_CONFIG_ADC_DATA_FLUSH diff --git a/packages/io/adc/current/doc/adc.sgml b/packages/io/adc/current/doc/adc.sgml --- 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); +} + + + + +Flushing a Channel + + +In some particular cases, user might require to flush the ADC data buffer. Flushing +may be perfomed via a set_config +function: + + + +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 ) - Configuration