summaryrefslogtreecommitdiffstats
path: root/drivers/avr
diff options
context:
space:
mode:
authoryiancar <yiangosyiangou@cytanet.com.cy>2018-10-09 00:27:04 +0200
committerJack Humbert <jack.humb@gmail.com>2018-10-09 00:27:04 +0200
commit98a63d8d6e91fcd0de4e8496d21ceef17b81d5d1 (patch)
tree5db1bc4ad2ac31adfb56a6900efca2c2b142b018 /drivers/avr
parent914d42acd01cae9fa03d9368f9316a1e1017fb17 (diff)
downloadqmk_firmware-98a63d8d6e91fcd0de4e8496d21ceef17b81d5d1.tar.gz
qmk_firmware-98a63d8d6e91fcd0de4e8496d21ceef17b81d5d1.tar.xz
DC01 updates and I2C avr speed overwrite (#4088)
* DC01 updates and I2C avr speed overwrite - General updating of DC01 - Made F_SCL define in AVR I2C driver overwritable from config.h * Update drivers/avr/i2c_master.c
Diffstat (limited to 'drivers/avr')
-rwxr-xr-xdrivers/avr/i2c_master.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/avr/i2c_master.c b/drivers/avr/i2c_master.c
index 47c6f8e6c..a04e6570d 100755
--- a/drivers/avr/i2c_master.c
+++ b/drivers/avr/i2c_master.c
@@ -8,7 +8,9 @@
#include "i2c_master.h"
#include "timer.h"
+#ifndef F_SCL
#define F_SCL 400000UL // SCL frequency
+#endif
#define Prescaler 1
#define TWBR_val ((((F_CPU / F_SCL) / Prescaler) - 16 ) / 2)