Update to new i2c driver name.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 11 Nov 2008 17:30:56 +0000 (17:30 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 11 Nov 2008 17:30:56 +0000 (17:30 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1925 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/arm/drv/twi_at91.c

index 49fd74ae8c41bb496ec9115277cc1400b6f6aade..44957c45d7c11e7c2b4f9677e661b4684de84fbb 100644 (file)
@@ -39,7 +39,7 @@
 
 #include "twi_at91.h"
 
-#include "cfg/cfg_twi.h"
+#include "cfg/cfg_i2c.h"
 #include <cfg/compiler.h>
 #include <cfg/debug.h>
 #include <cfg/macros.h>
@@ -254,7 +254,7 @@ void twi_init(void)
         * Only CLDIV is computed since CLDIV = CHDIV (50% duty cycle)
         */
        uint16_t cldiv, ckdiv = 0;
-       while ((cldiv = ((CLOCK_FREQ / (2 * CONFIG_TWI_FREQ)) - 3) / (1 << ckdiv)) > 255)
+       while ((cldiv = ((CLOCK_FREQ / (2 * CONFIG_I2C_FREQ)) - 3) / (1 << ckdiv)) > 255)
                ckdiv++;
 
        /* Atmel errata states that ckdiv *must* be less than 5 for unknown reason */