Index: adc.sgml =================================================================== RCS file: /cvs/ecos/ecos/packages/io/adc/current/doc/adc.sgml,v retrieving revision 1.2 diff -u -r1.2 adc.sgml --- adc.sgml 29 Jan 2009 17:49:44 -0000 1.2 +++ adc.sgml 6 Jun 2010 07:53:51 -0000 @@ -257,7 +257,7 @@ 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); } @@ -265,8 +265,27 @@ - +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); +} + + + + Configuration Index: ChangeLog =================================================================== RCS file: /cvs/ecos/ecos/packages/io/adc/current/ChangeLog,v retrieving revision 1.5 diff -u -r1.5 ChangeLog --- ChangeLog 29 May 2010 14:33:15 -0000 1.5 +++ ChangeLog 6 Jun 2010 07:50:16 -0000 @@ -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