mirror of
https://github.com/dougg3/mac-rom-simm-programmer.git
synced 2024-11-22 06:32:23 +00:00
533813e949
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.
20 lines
376 B
C
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_ */
|