avr: move definition of TWI_BIT_LENGTH to device defs.

This commit is contained in:
Martin Preuss
2024-09-10 02:56:50 +02:00
parent 743b33664f
commit c79037a1e1
3 changed files with 5 additions and 9 deletions

View File

@@ -69,6 +69,9 @@
; ---------------------------------------------------------------------------
; TWI master module
;.equ TWI_BIT_LENGTH = 10000 ; 100000 and 200000 works for display: 10000, 100000, 200000
.equ TWI_BIT_LENGTH = 1 ; 10, 100, 500, 100000 and 200000 works for display: 10000, 100000, 200000
.equ TWI_DDR_SCL = DDRA
.equ TWI_PORT_SCL = PORTA
.equ TWI_PIN_SCL = PINA
@@ -85,7 +88,6 @@
; LCD module
.equ LCD_TWI_ADDRESS = 0x3c
#define LCD_MINIMAL_FONT

View File

@@ -66,6 +66,8 @@
; ---------------------------------------------------------------------------
; TWI master module
.equ TWI_BIT_LENGTH = 1 ; 100000 and 200000 works for display: 10000, 100000, 200000
.equ TWI_DDR_SCL = DDRA
.equ TWI_PORT_SCL = PORTA
.equ TWI_PIN_SCL = PINA
@@ -81,7 +83,6 @@
; LCD module
.equ LCD_TWI_ADDRESS = 0x3c
#define LCD_MINIMAL_FONT

View File

@@ -10,13 +10,6 @@
; ***************************************************************************
; defines
.equ TWI_BIT_LENGTH = 10000 ; 100000 and 200000 works for display: 10000, 100000, 200000
; ***************************************************************************
; data