summaryrefslogtreecommitdiff
path: root/src/binwatch/avrconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/binwatch/avrconfig.h')
-rw-r--r--src/binwatch/avrconfig.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/binwatch/avrconfig.h b/src/binwatch/avrconfig.h
index eae41be..a6e4fdb 100644
--- a/src/binwatch/avrconfig.h
+++ b/src/binwatch/avrconfig.h
@@ -29,5 +29,31 @@
* 8000000, 11059200, 14745600, 16000000, 18432000, 20000000. */
#define AC_FREQ 1000000
+/* twi - TWI module. */
+/** Driver to implement TWI: HARD, SOFT, or USI. */
+#define AC_TWI_DRIVER SOFT
+/** Do not use interrupts. */
+#define AC_TWI_NO_INTERRUPT 0
+/** TWI frequency, should really be 100 kHz. */
+#define AC_TWI_FREQ 100000
+/** Enable slave part. */
+#define AC_TWI_SLAVE_ENABLE 0
+/** Enable master part. */
+#define AC_TWI_MASTER_ENABLE 1
+/** Use polled slave mode: received data is stored in a buffer which can be
+ * polled using twi_slave_poll. */
+#define AC_TWI_SLAVE_POLLED 0
+/** Slave reception callback to be defined by the user when not in polled
+ * mode. */
+#undef AC_TWI_SLAVE_RECV
+/** Master transfer completion callback, optionally defined by the user, called
+ * at end of master transfer. */
+#undef AC_TWI_MASTER_DONE
+/** Use internal pull up. */
+#define AC_TWI_PULL_UP 1
+/** SDA line IO for SOFT driver. */
+#define AC_TWI_SOFT_SDA_IO B, 0
+/** SCL line IO for SOFT driver. */
+#define AC_TWI_SOFT_SCL_IO B, 2
#endif /* avrconfig_h */