24 #ifndef __SIM_TINYX4_H__
25 #define __SIM_TINYX4_H__
53 #ifndef SIM_VECTOR_SIZE
54 #error SIM_VECTOR_SIZE is not declared
57 #error SIM_MMCU is not declared
74 .name =
'A', .r_port = PORTA, .r_ddr = DDRA, .r_pin = PINA,
78 .vector = PCINT0_vect,
83 .name =
'B', .r_port = PORTB, .r_ddr = DDRB, .r_pin = PINB,
87 .vector = PCINT1_vect,
154 .cs_div = { 0, 0, 3 , 6 , 8 , 10 },
161 .vector = TIM0_OVF_vect,
171 .vector = TIM0_COMPA_vect,
181 .vector = TIM0_COMPB_vect,
202 .cs_div = { 0, 0, 3 , 6 , 8 , 10 },
215 .vector = TIM1_OVF_vect,
220 .vector = TIM1_CAPT_vect,
231 .vector = TIM1_COMPA_vect,
242 .vector = TIM1_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
#define SIM_MMCU
Definition: sim_mega324.c:24
#define SIM_CORENAME
Definition: sim_mega324.c:25
#define AVR_EXTINT_TINY_DECLARE(_index, _portname, _portpin, _IFR)
Definition: avr_extint.h:115
void tx4_init(struct avr_t *avr)
Definition: sim_tinyx4.c:27
avr_ioport_t portb
Definition: sim_90usb162.c:46
#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
default mode
Definition: avr_adc.h:80
#define AVR_ADC_TEMP()
Definition: avr_adc.h:171
#define AVR_TIMER_WGM_ICCTC()
Definition: avr_timer.h:90
#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_TIMER_WGM_CTC()
Definition: avr_timer.h:89
avr_watchdog_t watchdog
Definition: sim_90usb162.c:44
Definition: sim_90usb162.c:40
void tx4_reset(struct avr_t *avr)
Definition: sim_tinyx4.c:41
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
#define AVR_IO_REGBITS(_io, _bit, _mask)
Definition: sim_regbit.h:153
avr_ioport_t porta
Definition: sim_mega128.c:51
#define AVR_EEPROM_DECLARE(_vector)
The eeprom block seems to be very similar across AVRs, so here is a macro to declare a "typical" one ...
Definition: avr_eeprom.h:70
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
#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_extint_t extint
Definition: sim_90usb162.c:45
#define AVR_ADC_DIFF(_a, _b, _g)
Definition: avr_adc.h:159
#define AVR_IO_REGBIT(_io, _bit)
Definition: sim_regbit.h:150
Definition for an IO port.
Definition: avr_ioport.h:97