forked from mirrors/qmk_userspace
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
This commit is contained in:
parent
914d42acd0
commit
98a63d8d6e
3 changed files with 17 additions and 28 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue