X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fsam3x-ek%2Fexamples%2Fsam3x-ek_tcp_server%2Fcfg%2Fcfg_dac.h;h=1ae1e984834c9568f6b0b335a0a6f36f00c769ed;hb=a76aedd0eb7994a7b2658a42ba45f22643118561;hp=8eff7bc328845e8e9566bcbddb5d4417121354ca;hpb=d513d5362c8572a5721e7628ead88329f9773e37;p=bertos.git diff --git a/boards/sam3x-ek/examples/sam3x-ek_tcp_server/cfg/cfg_dac.h b/boards/sam3x-ek/examples/sam3x-ek_tcp_server/cfg/cfg_dac.h index 8eff7bc3..1ae1e984 100644 --- a/boards/sam3x-ek/examples/sam3x-ek_tcp_server/cfg/cfg_dac.h +++ b/boards/sam3x-ek/examples/sam3x-ek_tcp_server/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 */