Add prescaler mask.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 30 Apr 2008 15:08:58 +0000 (15:08 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 30 Apr 2008 15:08:58 +0000 (15:08 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1238 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/arm/io/at91_pwm.h

index f4ae4c3c58fb9276faa3abf4a8f160bd30615aa2..f6502f1364ad708fefcba0d61cff105f1b27107b 100644 (file)
 #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.