mac-rom-simm-programmer/led.h
Doug Brown 533813e949 Added LED toggle to write/read modes.
Read is so fast that you can't even see the blinking, but oh well.
I also added an "led.h" header file that I should have done long ago.
2012-05-27 15:41:16 -07:00

20 lines
376 B
C

/*
* led.h
*
* Created on: May 27, 2012
* Author: Doug
*/
#ifndef LED_H_
#define LED_H_
#include <avr/io.h>
#define PIN_MASK (1 << 7)
#define LED_Init() do { DDRD |= PIN_MASK; LED_Off(); } while (0)
#define LED_On() PORTD |= PIN_MASK
#define LED_Off() PORTD &= ~PIN_MASK
#define LED_Toggle() PIND = PIN_MASK
#endif /* LED_H_ */