Update sam3x tcp server example to the latest Ethernet changes.
[bertos.git] / boards / sam3x-ek / examples / sam3x-ek_tcp_server / cfg / cfg_dac.h
index 8eff7bc328845e8e9566bcbddb5d4417121354ca..1ae1e984834c9568f6b0b335a0a6f36f00c769ed 100644 (file)
  */
 #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 */