diff options
author | yiancar <yiangosyiangou@cytanet.com.cy> | 2018-10-08 23:27:04 +0100 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-10-08 18:27:04 -0400 |
commit | 98a63d8d6e91fcd0de4e8496d21ceef17b81d5d1 (patch) | |
tree | 5db1bc4ad2ac31adfb56a6900efca2c2b142b018 /drivers | |
parent | 914d42acd01cae9fa03d9368f9316a1e1017fb17 (diff) | |
download | firmware-98a63d8d6e91fcd0de4e8496d21ceef17b81d5d1.tar.gz firmware-98a63d8d6e91fcd0de4e8496d21ceef17b81d5d1.tar.bz2 firmware-98a63d8d6e91fcd0de4e8496d21ceef17b81d5d1.zip |
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')
-rwxr-xr-x | drivers/avr/i2c_master.c | 2 |
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) |