aboutsummaryrefslogtreecommitdiff
path: root/Projects
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2011-09-02 04:41:43 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2011-09-02 04:41:43 +0000
commit44c5973ec0afb61390bb3ccc664a4be4a1807b13 (patch)
treea525dbb749b5cf67e4ca90ed20cffb6f86be7448 /Projects
parent4ee2f3e0e9c57a2e0f78484328fdcf6072e9cd1d (diff)
Update the TempDataLogger project and driver documentation to use the new TWI_BITLENGTH_FROM_FREQ() macro.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1919 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Projects')
-rw-r--r--Projects/TempDataLogger/TempDataLogger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Projects/TempDataLogger/TempDataLogger.c b/Projects/TempDataLogger/TempDataLogger.c
index 23f78aa3..e8d79874 100644
--- a/Projects/TempDataLogger/TempDataLogger.c
+++ b/Projects/TempDataLogger/TempDataLogger.c
@@ -200,7 +200,7 @@ void SetupHardware(void)
Temperature_Init();
Dataflash_Init();
USB_Init();
- TWI_Init(TWI_BIT_PRESCALE_4, (F_CPU / 4 / 50000) / 2);
+ TWI_Init(TWI_BIT_PRESCALE_4, TWI_BITLENGTH_FROM_FREQ(4, 50000));
/* 500ms logging interval timer configuration */
OCR1A = (((F_CPU / 1024) / 2) - 1);