X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Fcfg_dac.h;h=1ae1e984834c9568f6b0b335a0a6f36f00c769ed;hb=088cc866a57a0402f6ba3f232fcf8f59c79626d1;hp=8eff7bc328845e8e9566bcbddb5d4417121354ca;hpb=5bf1dca59b570a3ffead03860301abc5e14e41e0;p=bertos.git diff --git a/bertos/cfg/cfg_dac.h b/bertos/cfg/cfg_dac.h index 8eff7bc3..1ae1e984 100644 --- a/bertos/cfg/cfg_dac.h +++ b/bertos/cfg/cfg_dac.h @@ -55,4 +55,34 @@ */ #define DAC_LOG_FORMAT LOG_FMT_TERSE +/** + * DAC Refresh Period = 1024*REFRESH/DACC Clock + * + * $WIZ$ type = "int" + * $WIZ$ supports = "sam3x" + * $WIZ$ min = 0 + * $WIZ$ max = 65536 + */ +#define CONFIG_DAC_REFRESH 16 + +/** + * DAC Startup Time Selection. + * see datasheet table. + * + * $WIZ$ type = "int" + * $WIZ$ supports = "sam3x" + * $WIZ$ min = 0 + * $WIZ$ max = 63 + */ +#define CONFIG_DAC_STARTUP 0 + +/** + * DAC Trigger Selection. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "sam3x_dac_tc" + * $WIZ$ supports = "sam3x" + */ +#define CONFIG_DAC_TIMER DACC_TRGSEL_TIO_CH0 + #endif /* CFG_DAC_H */