void pulseLed(volatile uint8_t *port, uint8_t pin_bm) { *(port-1) |= pin_bm; //*(port-1) = *(ddr); set pin as output *port |= pin_bm; _delay_ms(100); *port &= ~pin_bm; } void main(void) { pulseLed(&PORTC, _BV(2) ); }
Źródło: http://www.atmel.com/webdoc/AVRLibcReferenceManual/FAQ_1faq_port_pass.html