void fifo_send_char_blocking(uint8_t c) { #ifdef __AVR_XMEGA__ while (FIFO_CTL_PORT.IN & _BV(FIFO_TXE_N)) #else // __AVR_XMEGA__ while (FIFO_CTL_PORT_PIN & _BV(FIFO_TXE_N)) #endif // __AVR_XMEGA__ { }; fifo_send_char(c); }
void __attribute__ ((always_inline)) fifo_send_char_blocking(uint8_t c) { #ifdef __AVR_XMEGA__ while (FIFO_CTL_PORT.IN & FIFO_TXE_N_bm) #else // __AVR_XMEGA__ while (FIFO_CTL_PORT_PIN & FIFO_TXE_N_bm) #endif // __AVR_XMEGA__ { }; fifo_send_char(c); }