avr: added definitions to devices.

This commit is contained in:
Martin Preuss
2024-09-12 11:46:02 +02:00
parent 88aea30da1
commit 0fafb36100
2 changed files with 39 additions and 13 deletions

View File

@@ -32,7 +32,6 @@
; ---------------------------------------------------------------------------
; LED module
@@ -47,8 +46,8 @@
; ---------------------------------------------------------------------------
; COM module
.equ COM_BIT_LENGTH = 52000 ; 104000=9600, 52000=19200, 26000=38400
.equ COM_BIT_LENGTH = 52000 ; 104000ns=9600, 52000ns=19200, 26000ns=38400
; see https://de.wikipedia.org/wiki/Universal_Asynchronous_Receiver_Transmitter
.equ COM_DDR_DATA = DDRA
.equ COM_PORT_DATA = PORTA
.equ COM_PIN_DATA = PINA
@@ -109,12 +108,12 @@
; ADC/CNY70
.equ CNY70_PORT_LED = PORTB1
.equ CNY70_PORT_LED = PORTB
.equ CNY70_DDR_LED = DDRB
.equ CNY70_PINNUM_LED = PORTB1
.equ CNY70_PORT_ADC = PORTA5 ; adc5
.equ CNY70_DDR_ADC = DDRB
.equ CNY70_PORT_ADC = PORTA ; adc5
.equ CNY70_DDR_ADC = DDRA
.equ CNY70_PINNUM_ADC = PORTA5
.equ CNY70_MUX_ADC = MUX5
.equ CNY70_ADCSRB_ADC = ADC5D
@@ -142,4 +141,14 @@
.equ REED2_PINNUM = PORTA5
; ---------------------------------------------------------------------------
; 1-Wire Master
;
.equ OWI_DDR = DDRB
.equ OWI_PORTOUT = PORTB
.equ OWI_PORTIN = PINB
.equ OWI_PINNUM = PORTB2