From a68e8a225a683ef7847f92ab89d8a202cf27973f Mon Sep 17 00:00:00 2001 From: batt Date: Mon, 20 Apr 2009 12:33:48 +0000 Subject: [PATCH] Use int numbers; fix some min and max values. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2582 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cfg/cfg_adc.h | 8 ++++---- bertos/cfg/cfg_dc_motor.h | 2 +- bertos/cfg/cfg_debug.h | 2 +- bertos/cfg/cfg_md2.h | 2 +- bertos/cfg/cfg_phase.h | 4 ++-- bertos/cfg/cfg_proc.h | 2 +- bertos/cfg/cfg_ramp.h | 15 ++++++++------- bertos/cfg/cfg_randpool.h | 2 +- bertos/cfg/cfg_stepper.h | 4 ++-- 9 files changed, 21 insertions(+), 20 deletions(-) diff --git a/bertos/cfg/cfg_adc.h b/bertos/cfg/cfg_adc.h index 6172d032..dd65e134 100644 --- a/bertos/cfg/cfg_adc.h +++ b/bertos/cfg/cfg_adc.h @@ -67,7 +67,7 @@ * Minimum time for starting up a conversion [us]. * * $WIZ$ type = "int" - * $WIZ$ min = "0" + * $WIZ$ min = 0 * $WIZ$ supports = "at91" */ #define CONFIG_ADC_STARTUP_TIME 20 @@ -76,7 +76,7 @@ * Minimum time for sample and hold [us]. * * $WIZ$ type = "int" - * $WIZ$ min = "0" + * $WIZ$ min = 0 * $WIZ$ supports = "at91" */ #define CONFIG_ADC_SHTIME 834 @@ -94,8 +94,8 @@ * ADC clock divisor from main crystal. * * $WIZ$ type = "int" - * $WIZ$ min = "2" - * $WIZ$ max = "128" + * $WIZ$ min = 2 + * $WIZ$ max = 128 * $WIZ$ supports = "avr" */ #define CONFIG_ADC_AVR_DIVISOR 2 diff --git a/bertos/cfg/cfg_dc_motor.h b/bertos/cfg/cfg_dc_motor.h index 0f9d1b14..ac4123bf 100644 --- a/bertos/cfg/cfg_dc_motor.h +++ b/bertos/cfg/cfg_dc_motor.h @@ -44,7 +44,7 @@ * Number of the DC motors to manage. * * $WIZ$ type = "int" - * $WIZ$ min = "1" + * $WIZ$ min = 1 */ #define CONFIG_NUM_DC_MOTOR 1 diff --git a/bertos/cfg/cfg_debug.h b/bertos/cfg/cfg_debug.h index f4d2c83f..f7596ca1 100644 --- a/bertos/cfg/cfg_debug.h +++ b/bertos/cfg/cfg_debug.h @@ -48,7 +48,7 @@ /** * Baudrate for the debug console. - * $WIZ$ type = "int"; min = 0 + * $WIZ$ type = "int"; min = 300 */ #define CONFIG_KDEBUG_BAUDRATE 115200UL diff --git a/bertos/cfg/cfg_md2.h b/bertos/cfg/cfg_md2.h index 91edcef3..22ec7dbe 100644 --- a/bertos/cfg/cfg_md2.h +++ b/bertos/cfg/cfg_md2.h @@ -43,7 +43,7 @@ /** * Size of block for MD2 algorithm. * $WIZ$ type = "int" - * $WIZ$ min = "0" + * $WIZ$ min = 2 */ #define CONFIG_MD2_BLOCK_LEN 16 diff --git a/bertos/cfg/cfg_phase.h b/bertos/cfg/cfg_phase.h index 034da94f..57202930 100644 --- a/bertos/cfg/cfg_phase.h +++ b/bertos/cfg/cfg_phase.h @@ -42,14 +42,14 @@ /** * Max value of the duty cycle on triac. * $WIZ$ type = "int" - * $WIZ$ min = "1" + * $WIZ$ min = 1 */ #define CONFIG_TRIAC_MAX_DUTY 100 /** * Max value of the triac power. * $WIZ$ type = "int" - * $WIZ$ min = "1" + * $WIZ$ min = 1 */ #define CONFIG_TRIAC_MAX_POWER 100 diff --git a/bertos/cfg/cfg_proc.h b/bertos/cfg/cfg_proc.h index adb0d69a..b2337bf2 100644 --- a/bertos/cfg/cfg_proc.h +++ b/bertos/cfg/cfg_proc.h @@ -78,7 +78,7 @@ * Time sharing quantum (a prime number prevents interference effects) [ms]. * * $WIZ$ type = "int" - * $WIZ$ min = "0" + * $WIZ$ min = 1 */ #define CONFIG_KERN_QUANTUM 47 diff --git a/bertos/cfg/cfg_ramp.h b/bertos/cfg/cfg_ramp.h index 8920d146..1aeb8a89 100644 --- a/bertos/cfg/cfg_ramp.h +++ b/bertos/cfg/cfg_ramp.h @@ -68,8 +68,8 @@ * * \note This macro is used only for the fixed-point version of the ramp. * $WIZ$ type = "int" - * $WIZ$ min = "0" - * $WIZ$ max = "32" + * $WIZ$ min = 0 + * $WIZ$ max = 32 */ #define RAMP_CLOCK_SHIFT_PRECISION 2 #endif @@ -78,37 +78,38 @@ /** * Negative pulse width for ramp. * $WIZ$ type = "int" -* $WIZ$ min = "0" +* $WIZ$ min = 1 */ #define RAMP_PULSE_WIDTH 50 /** * Default ramp time (microsecs). * $WIZ$ type = "int" + * $WIZ$ min = 1000 */ #define RAMP_DEF_TIME 6000000UL /** * Default ramp maxfreq (Hz). * $WIZ$ type = "int" - * $WIZ$ min = "0" + * $WIZ$ min = 1 */ #define RAMP_DEF_MAXFREQ 5000 /** * Default ramp minfreq (Hz). * $WIZ$ type = "int" - * $WIZ$ min = "0" + * $WIZ$ min = 1 */ #define RAMP_DEF_MINFREQ 200 /** * Default ramp powerrun (deciampere). * $WIZ$ type = "int" - * $WIZ$ min = "0" + * $WIZ$ min = 0 */ #define RAMP_DEF_POWERRUN 10 /** * Default ramp poweridle (Hz). * $WIZ$ type = "int" - * $WIZ$ min = "0" + * $WIZ$ min = 0 */ #define RAMP_DEF_POWERIDLE 1 diff --git a/bertos/cfg/cfg_randpool.h b/bertos/cfg/cfg_randpool.h index 3c9bb698..8828c492 100644 --- a/bertos/cfg/cfg_randpool.h +++ b/bertos/cfg/cfg_randpool.h @@ -44,7 +44,7 @@ /** * Define a size, in byte, of entropy pool. * $WIZ$ type = "int" - * $WIZ$ min = "0" + * $WIZ$ min = 1 */ #define CONFIG_SIZE_ENTROPY_POOL 64 diff --git a/bertos/cfg/cfg_stepper.h b/bertos/cfg/cfg_stepper.h index 0893d719..e086065c 100644 --- a/bertos/cfg/cfg_stepper.h +++ b/bertos/cfg/cfg_stepper.h @@ -56,14 +56,14 @@ /** * Max number of the stepper motor. * $WIZ$ type = "int" - * $WIZ$ min = "0" + * $WIZ$ min = 1 */ #define CONFIG_NUM_STEPPER_MOTORS 6 /** * Max number of the timer usable on target to drive stepper motor. * $WIZ$ type = "int" - * $WIZ$ min = "0" + * $WIZ$ min = 1 */ #define CONFIG_TC_STEPPER_MAX_NUM 6 -- 2.25.1