minor fixes.

This commit is contained in:
Martin Preuss
2025-09-06 00:41:58 +02:00
parent 6c1e8a45ff
commit 4a74a9990f
2 changed files with 31 additions and 7 deletions

View File

@@ -0,0 +1,31 @@
; ***************************************************************************
; copyright : (C) 2025 by Martin Preuss
; email : martin@libchipcard.de
;
; ***************************************************************************
; * This file is part of the project "AqHome". *
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
.equ UART_REG_UDR = UDR0
.equ UART_REG_UCSRA = UCSR0A
.equ UART_REG_UCSRB = UCSR0B
.equ UART_REG_UCSRC = UCSR0C
.equ UART_REG_UBRRL = UBRR0L
.equ UART_REG_UBRRH = UBRR0H
.equ UART_BIT_UCSZ0 = UCSZ00
.equ UART_BIT_UDRE = UDRE0
.equ UART_BIT_RXC = RXC0
.equ UART_BIT_TXC = TXC0
.equ UART_BIT_FE = FE0
.equ UART_BIT_DOR = DOR0
.equ UART_BIT_UPE = UPE0
.equ UART_BIT_RXEN = RXEN0
.equ UART_BIT_TXEN = TXEN0

View File

@@ -46,13 +46,6 @@ ioRawInit:
ori r16, (1<<UART_BIT_RXEN) | (1<<UART_BIT_TXEN) ; enable transmit and receive
sts UART_REG_UCSRB, r16
.ifdef COM_ATTN_PUE
lds r16, COM_ATTN_PUE
cbr r16, COM_ATTN_PIN ; disable pullup on ATTN
sts COM_ATTN_PUE, r16
.else
cbi COM_ATTN_OUTPUT, COM_ATTN_PIN ; disable internal pullup for ATTN
.endif
ret