Removed prescaler define from avr i2c, as it was impossible to use (#6617)
This commit is contained in:
committed by
Drashna Jaelre
parent
b7ddf64b54
commit
edc8283572
@@ -27,8 +27,8 @@
|
||||
#ifndef F_SCL
|
||||
# define F_SCL 400000UL // SCL frequency
|
||||
#endif
|
||||
#define Prescaler 1
|
||||
#define TWBR_val ((((F_CPU / F_SCL) / Prescaler) - 16) / 2)
|
||||
|
||||
#define TWBR_val (((F_CPU / F_SCL) - 16) / 2)
|
||||
|
||||
void i2c_init(void) {
|
||||
TWSR = 0; /* no prescaler */
|
||||
|
Reference in New Issue
Block a user