From: asterix Date: Tue, 29 Mar 2011 10:11:22 +0000 (+0000) Subject: Define dac trigger selections. X-Git-Tag: 2.7.0~146 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=62c46b4e540a9d6b8c8923f72d662d186a734b03;p=bertos.git Define dac trigger selections. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4820 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/cortex-m3/io/sam3_dacc.h b/bertos/cpu/cortex-m3/io/sam3_dacc.h index 27fcc56e..a0fac89c 100644 --- a/bertos/cpu/cortex-m3/io/sam3_dacc.h +++ b/bertos/cpu/cortex-m3/io/sam3_dacc.h @@ -74,6 +74,19 @@ #define DACC_STARTUP_MASK 0x3F000000 ///< Startup time selection #define DACC_STARTUP_SHIFT 24 ///< Startup time selsection shift + +/** + * Trigger selection. + * $WIZ$ sam3x_dac_tc = "DACC_TRGSEL_TIO_CH0", "DACC_TRGSEL_TIO_CH1", "DACC_TRGSEL_TIO_CH2", "DACC_TRGSEL_PWM0", "DACC_TRGSEL_PWM1" + * \{ + */ + #define DACC_TRGSEL_TIO_CH0 1 + #define DACC_TRGSEL_TIO_CH1 2 + #define DACC_TRGSEL_TIO_CH2 3 + #define DACC_TRGSEL_PWM0 4 + #define DACC_TRGSEL_PWM1 5 +/* \} */ + #define DACC_MR_STARTUP_0 0 ///< 0 periods of DACClock #define DACC_MR_STARTUP_8 1 ///< 8 periods of DACClock #define DACC_MR_STARTUP_16 2 ///< 16 periods of of DACClock