From 839bcae6c881fe2db5ad0b81f86de22602625e9f Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 30 Apr 2008 15:08:58 +0000 Subject: [PATCH] Add prescaler mask. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1238 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/arm/io/at91_pwm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/bertos/cpu/arm/io/at91_pwm.h b/bertos/cpu/arm/io/at91_pwm.h index f4ae4c3c..f6502f13 100644 --- a/bertos/cpu/arm/io/at91_pwm.h +++ b/bertos/cpu/arm/io/at91_pwm.h @@ -151,6 +151,7 @@ #define PWM_CMR2 (*((reg32_t *)(PWMC_BASE + PWM_CMR_OFF + PWM_CH2_OFF))) ///< PWM Channel 2 Mode Register. #define PWM_CMR3 (*((reg32_t *)(PWMC_BASE + PWM_CMR_OFF + PWM_CH3_OFF))) ///< PWM Channel 3 Mode Register. +#define PWM_CPRE_MCK_MASK 0x0000000F ///< PWM Mode prescaler mask. #define PWM_CPRE_MCK 0 ///< PWM Mode prescaler set to MCK. #define PWM_CPRE_MCK_DIV2 1 ///< PWM Mode prescaler set to MCK/2. #define PWM_CPRE_MCK_DIV4 2 ///< PWM Mode prescaler set to MCK/4. -- 2.25.1