summaryrefslogtreecommitdiff
path: root/drivers/avr/i2c_master.c
diff options
context:
space:
mode:
authorMikkel Jeppesen <2756925+Duckle29@users.noreply.github.com>2019-08-31 02:47:11 +0200
committerFlorian Didron <fdidron@users.noreply.github.com>2019-10-01 10:21:12 +0900
commit6eae35c3c0d4707184aa9bceda5dd5381b1ad2d2 (patch)
tree5c34be35b2fb63f93135f45cac885d78e8023c67 /drivers/avr/i2c_master.c
parentd978c59b52642b1ae048bfec84793e16afca015e (diff)
Removed prescaler define from avr i2c, as it was impossible to use (#6617)
Diffstat (limited to 'drivers/avr/i2c_master.c')
-rw-r--r--drivers/avr/i2c_master.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/avr/i2c_master.c b/drivers/avr/i2c_master.c
index 52924437e0..c084d5754f 100644
--- a/drivers/avr/i2c_master.c
+++ b/drivers/avr/i2c_master.c
@@ -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 */