23 #ifndef __SIM_MEGAX8_H__
24 #define __SIM_MEGAX8_H__
59 #ifndef SIM_VECTOR_SIZE
60 #error SIM_VECTOR_SIZE is not declared
63 #error SIM_MMCU is not declared
84 .name =
'B', .r_port = PORTB, .r_ddr = DDRB, .r_pin = PINB,
88 .vector = PCINT0_vect,
93 .name =
'C', .r_port = PORTC, .r_ddr = DDRC, .r_pin = PINC,
97 .vector = PCINT1_vect,
102 .name =
'D', .r_port = PORTD, .r_ddr = DDRD, .r_pin = PIND,
106 .vector = PCINT2_vect,
111 .name =
'E', .r_port = PORTE, .r_ddr = DDRE, .r_pin = PINE,
115 .vector = PCINT2_vect,
122 .r_linbrrh = LINBRRH,
123 .r_linbrrl = LINBRRL,
146 .vector = LIN_TC_vect,
151 .vector = LIN_TC_vect,
220 .cs_div = { 0, 0, 3 , 6 , 8 , 10 },
227 .vector = TIMER0_OVF_vect,
237 .vector = TIMER0_COMPA_vect,
247 .vector = TIMER0_COMPB_vect,
268 .cs_div = { 0, 0, 3 , 6 , 8 , 10 },
281 .vector = TIMER1_OVF_vect,
286 .vector = TIMER1_CAPT_vect,
297 .vector = TIMER1_COMPA_vect,
308 .vector = TIMER1_COMPB_vect,
#define AVR_TIMER_WGM_NORMAL8()
Definition: avr_timer.h:87
Definition: avr_watchdog.h:35
avr_eeprom_t eeprom
Definition: sim_90usb162.c:42
void mxm1_reset(struct avr_t *avr)
Definition: sim_megaxm1.c:45
Definition: avr_adc.h:104
Handles self-programming subsystem if the core supports it.
Definition: avr_flash.h:38
#define SIM_MMCU
Definition: sim_mega324.c:24
#define SIM_CORENAME
Definition: sim_mega324.c:25
avr_ioport_t portb
Definition: sim_90usb162.c:46
avr_lin_t lin
Definition: sim_megaxm1.h:51
#define AVR_ADC_REF(_t)
Definition: avr_adc.h:166
avr_t * avr
Definition: run_avr.c:54
#define AVR_ADC_SINGLE(_chan)
Definition: avr_adc.h:154
#define AVR_TIMER_WGM_FASTPWM8()
Definition: avr_timer.h:91
#define AVR_TIMER_WGM_FASTPWM10()
Definition: avr_timer.h:93
#define AVR_ADC_TEMP()
Definition: avr_adc.h:171
#define AVR_TIMER_WGM_ICCTC()
Definition: avr_timer.h:90
#define AVR_EEPROM_DECLARE_NOEEPM(_vector)
no EEPM registers in atmega128
Definition: avr_eeprom.h:88
#define AVR_SELFPROG_DECLARE(_spmr, _spen, _vector)
Definition: avr_flash.h:82
#define AVR_TIMER_WGM_FASTPWM9()
Definition: avr_timer.h:92
This module is just a "relay" for the pin change IRQ in the IO port module.
Definition: avr_extint.h:56
avr_adc_t adc
Definition: sim_mega128.c:53
#define AVR_SPI_DECLARE(_prr, _prspi)
Definition: avr_spi.h:66
#define AVR_TIMER_WGM_CTC()
Definition: avr_timer.h:89
void mxm1_init(struct avr_t *avr)
Definition: sim_megaxm1.c:26
avr_watchdog_t watchdog
Definition: sim_90usb162.c:44
Definition: sim_90usb162.c:40
Definition: avr_adc.h:105
Definition: avr_adc.h:103
#define AVR_EXTINT_DECLARE(_index, _portname, _portpin)
Declares a typical INT into a avr_extint_t in a core.
Definition: avr_extint.h:77
Definition: avr_eeprom.h:35
avr_t core
Definition: sim_90usb162.c:41
#define DEFAULT_CORE(_vector_size)
Definition: sim_core_declare.h:52
Definition: avr_timer.h:37
Definition: avr_timer.h:111
avr_timer_t timer0
Definition: sim_90usb162.c:48
avr_ioport_t portd
Definition: sim_90usb162.c:46
avr_ioport_t porte
Definition: sim_mega128.c:51
#define AVR_IO_REGBITS(_io, _bit, _mask)
Definition: sim_regbit.h:153
avr_timer_t timer1
Definition: sim_90usb162.c:48
Definition: avr_adc.h:108
#define AVR_TIMER_WGM_ICPWM()
Definition: avr_timer.h:98
#define AVR_TIMER_WGM_OCPWM()
Definition: avr_timer.h:97
Definition: avr_adc.h:101
avr_ioport_t portc
Definition: sim_90usb162.c:46
avr_flash_t selfprog
Definition: sim_90usb162.c:43
#define AVR_TIMER_WGM_NORMAL16()
Definition: avr_timer.h:88
Definition: avr_timer.h:38
Definition: avr_adc.h:100
#define SIM_VECTOR_SIZE
Definition: sim_mega16.c:26
#define AVR_WATCHDOG_DECLARE(_WDSR, _vec)
This helps declare a watchdog block into a core.
Definition: avr_watchdog.h:66
Main AVR instance.
Definition: sim_avr.h:142
avr_spi_t spi
Definition: sim_90usb162.c:49
avr_extint_t extint
Definition: sim_90usb162.c:45
#define AVR_IO_REGBIT(_io, _bit)
Definition: sim_regbit.h:150
Definition for an IO port.
Definition: avr_ioport.h:97