X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=boards%2Farduino-mega%2Ftemplates%2Farduino-mega_empty%2Fcfg%2Fcfg_adc.h;h=df2587be517232fd86b9192faa5c39172c793330;hb=09e03f9327577f5c4263ee494531d9fc8c800a69;hp=dd65e134e8f0ac3711f0bd8a929ee2b2c53089bc;hpb=916115afea98a1f0b520ee72be7892261a24e9ff;p=bertos.git diff --git a/boards/arduino-mega/templates/arduino-mega_empty/cfg/cfg_adc.h b/boards/arduino-mega/templates/arduino-mega_empty/cfg/cfg_adc.h index dd65e134..df2587be 100644 --- a/boards/arduino-mega/templates/arduino-mega_empty/cfg/cfg_adc.h +++ b/boards/arduino-mega/templates/arduino-mega_empty/cfg/cfg_adc.h @@ -32,7 +32,6 @@ * * \brief Configuration file for the ADC module. * - * \version $Id$ * \author Daniele Basile */ @@ -57,9 +56,12 @@ /** * Clock Frequency for ADC conversion. + * This frequency will be rounded down to an integer + * submultiple of CPU_FREQ. * * $WIZ$ type = "int" * $WIZ$ supports = "at91" + * $WIZ$ max = 5000000 */ #define CONFIG_ADC_CLOCK 4800000UL @@ -67,16 +69,16 @@ * Minimum time for starting up a conversion [us]. * * $WIZ$ type = "int" - * $WIZ$ min = 0 + * $WIZ$ min = 20 * $WIZ$ supports = "at91" */ #define CONFIG_ADC_STARTUP_TIME 20 /** - * Minimum time for sample and hold [us]. + * Minimum time for sample and hold [ns]. * * $WIZ$ type = "int" - * $WIZ$ min = 0 + * $WIZ$ min = 600 * $WIZ$ supports = "at91" */ #define CONFIG_ADC_SHTIME 834