21 #ifndef COSA_BOARD_ARDUINO_ATTINYX4_HH 22 #define COSA_BOARD_ARDUINO_ATTINYX4_HH 25 #define BOARD_ATTINYX4 68 static volatile uint8_t* SFR(uint8_t pin)
69 __attribute__((always_inline))
71 return (pin < 8 ? &PINA : &PINB);
80 static uint8_t BIT(uint8_t pin)
81 __attribute__((always_inline))
83 return (pin < 8 ? pin : pin - 8);
91 static volatile uint8_t* PCIMR(uint8_t pin)
92 __attribute__((always_inline))
94 return (pin < 8 ? &
PCMSK0 : &PCMSK1);
101 static volatile uint8_t* USI()
102 __attribute__((always_inline))
129 } __attribute__((packed));
143 } __attribute__((packed));
152 } __attribute__((packed));
163 } __attribute__((packed));
171 } __attribute__((packed));
188 } __attribute__((packed));
207 } __attribute__((packed));
217 } __attribute__((packed));
223 VBG = (_BV(MUX5) | _BV(MUX0)),
227 } __attribute__((packed));
233 #define ANALOG_COMP_vect ANA_COMP_vect 234 #define TIMER0_OVF_vect TIM0_OVF_vect 235 #define TIMER0_COMPA_vect TIM0_COMPA_vect 236 #define TIMER0_COMPB_vect TIM0_COMPB_vect 237 #define TIMER1_OVF_vect TIM1_OVF_vect 238 #define TIMER1_COMPA_vect TIM1_COMPA_vect 239 #define TIMER1_COMPB_vect TIM1_COMPB_vect 245 void ADC_vect(
void) __attribute__ ((signal));
247 void INT0_vect(
void) __attribute__ ((signal));
257 void WDT_vect(
void) __attribute__ ((signal));
void USI_START_vect(void)
void TIMER1_CAPT_vect(void)
#define TIMER0_COMPB_vect
#define TIMER1_COMPB_vect
#define TIMER1_COMPA_vect
#define TIMER0_COMPA_vect