21 #ifndef COSA_BOARD_ARDUINO_ATMEGA1248P_HH 22 #define COSA_BOARD_ARDUINO_ATMEGA1248P_HH 25 #define BOARD_ATMEGA1248P 51 static volatile uint8_t* SFR(uint8_t pin)
52 __attribute__((always_inline))
54 return (pin < 8 ? &PINB :
66 static uint8_t BIT(uint8_t pin)
67 __attribute__((always_inline))
77 static volatile uint8_t* PCIMR(uint8_t pin)
78 __attribute__((always_inline))
80 return (pin < 8 ? &PCMSK1 :
91 static volatile uint8_t*
UART(uint8_t port)
92 __attribute__((always_inline))
94 return (port == 1 ? &UCSR1A : &UCSR0A);
140 } __attribute__((packed));
154 } __attribute__((packed));
164 } __attribute__((packed));
173 #if defined(__AVR_ATmega1284P__) 184 } __attribute__((packed));
194 } __attribute__((packed));
232 } __attribute__((packed));
251 } __attribute__((packed));
261 } __attribute__((packed));
267 VBG = (_BV(MUX4) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1)),
272 } __attribute__((packed));
278 #define USART_UDRE_vect USART0_UDRE_vect 279 #define USART_RX_vect USART0_RX_vect 280 #define USART_TX_vect USART0_TX_vect 286 void ADC_vect(
void) __attribute__ ((signal));
288 void INT0_vect(
void) __attribute__ ((signal));
289 void INT1_vect(
void) __attribute__ ((signal));
290 void INT2_vect(
void) __attribute__ ((signal));
306 #if defined(__AVR_ATmega1284P__) 312 void TWI_vect(
void) __attribute__ ((signal));
313 void WDT_vect(
void) __attribute__ ((signal));
void TIMER1_COMPB_vect(void)
void TIMER1_CAPT_vect(void)
void TIMER2_COMPA_vect(void)
void USART1_RX_vect(void)
void USART1_UDRE_vect(void)
void TIMER3_OVF_vect(void)
void TIMER1_OVF_vect(void)
void ANALOG_COMP_vect(void)
void TIMER0_COMPA_vect(void)
void TIMER1_COMPA_vect(void)
void USART1_TX_vect(void)
void TIMER3_COMPB_vect(void)
void TIMER0_OVF_vect(void)
void TIMER2_COMPB_vect(void)
void TIMER3_COMPA_vect(void)
void TIMER3_CAPT_vect(void)
void TIMER0_COMPB_vect(void)
void TIMER2_OVF_vect(void)