From cbcfce6e5b75b66deacb559858cb9acc7a4e2d52 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Tue, 14 Jun 2011 00:32:46 +0200 Subject: src/binwatch: add first basic program --- src/binwatch/avrconfig.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'src/binwatch/avrconfig.h') 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 */ -- cgit v1.2.3