22 #ifndef __SIM_MEGAX_H__
23 #define __SIM_MEGAX_H__
63 #ifndef SIM_VECTOR_SIZE
64 #error SIM_VECTOR_SIZE is not declared
67 #error SIM_MMCU is not declared
71 #define EFUSE_DEFAULT 0xff
119 .vector = USART_RXC_vect,
124 .vector = USART_TXC_vect,
129 .vector = USART_UDRE_vect,
175 .cs_div = { 0, 0, 3 , 6 , 8 , 10 },
182 .vector = TIMER0_OVF_vect,
205 .cs_div = { 0, 0, 3 , 6 , 8 , 10 },
218 .vector = TIMER1_OVF_vect,
223 .vector = TIMER1_CAPT_vect,
234 .vector = TIMER1_COMPA_vect,
245 .vector = TIMER1_COMPB_vect,
261 .cs_div = { 0, 0, 3 , 4 , 6 , 7 , 8 , 10 },
271 .vector = TIMER2_OVF_vect,
281 .vector = TIMER2_COMP_vect,
#define PB5
Definition: sim_mega128rfr2.c:49
#define AVR_TIMER_WGM_NORMAL8()
Definition: avr_timer.h:87
Definition: avr_watchdog.h:35
avr_eeprom_t eeprom
Definition: sim_90usb162.c:42
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
void mx_reset(struct avr_t *avr)
Definition: sim_megax.c:50
#define PD3
Definition: sim_mega128rfr2.c:57
avr_ioport_t portb
Definition: sim_90usb162.c:46
#define AVR_ADC_REF(_t)
Definition: avr_adc.h:166
#define ICP_PORT
Definition: sim_mega16.c:30
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
avr_uart_t uart
Definition: sim_megax.h:50
#define AVR_WATCHDOG_DECLARE_128(_WDSR, _vec)
Definition: avr_watchdog.h:82
#define AVR_TIMER_WGM_ICCTC()
Definition: avr_timer.h:90
#define PB7
Definition: sim_mega128rfr2.c:51
avr_timer_t timer2
Definition: sim_mega128.c:54
#define AVR_EEPROM_DECLARE_NOEEPM(_vector)
no EEPM registers in atmega128
Definition: avr_eeprom.h:88
#define AVR_IOPORT_DECLARE(_lname, _cname, _uname)
Definition: avr_ioport.h:119
#define AVR_SELFPROG_DECLARE(_spmr, _spen, _vector)
Definition: avr_flash.h:82
#define AVR_TIMER_WGM_FASTPWM9()
Definition: avr_timer.h:92
#define ICP_PIN
Definition: sim_mega16.c:31
#define PD2
Definition: sim_mega128rfr2.c:56
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
#define AVR_ASYNC_EXTINT_DECLARE(_index, _portname, _portpin)
Asynchronous External Interrupt, for example INT2 on the m16 and m32 Uses only 1 interrupt sense cont...
Definition: avr_extint.h:91
avr_watchdog_t watchdog
Definition: sim_90usb162.c:44
Definition: sim_90usb162.c:40
#define PB6
Definition: sim_mega128rfr2.c:50
#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
#define D(_w)
Definition: avr_ioport.c:24
avr_t core
Definition: sim_90usb162.c:41
#define _VECTOR(v)
Definition: sim_core_declare.h:35
#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
Definition: avr_uart.h:91
#define AVR_IO_REGBITS(_io, _bit, _mask)
Definition: sim_regbit.h:153
avr_ioport_t porta
Definition: sim_mega128.c:51
void mx_init(struct avr_t *avr)
Definition: sim_megax.c:27
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
avr_ioport_t portc
Definition: sim_90usb162.c:46
avr_twi_t twi
Definition: sim_mega128.c:56
avr_flash_t selfprog
Definition: sim_90usb162.c:43
#define AVR_TIMER_WGM_NORMAL16()
Definition: avr_timer.h:88
Definition: avr_timer.h:38
#define SIM_VECTOR_SIZE
Definition: sim_mega16.c:26
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