Open Garden
0.10.1-21
src
led.h
Go to the documentation of this file.
1
/* This file is part of chpc
2
* Copyright (C) 2010, 2011, 2012 Enrico Rossi
3
*
4
* Chpc is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* Chpc is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
22
#ifndef CHCP_LED_H
23
#define CHCP_LED_H
24
26
#define LED_PORT PORTB
27
28
#define LED_DDR DDRB
29
30
#define LED_RED PB2
31
32
#define LED_GREEN PB3
33
34
#define LED_DELAY _delay_ms(200)
35
37
#define OFF 0
38
39
#define ON 1
40
41
#define BLINK 2
42
44
#define NONE 0
45
46
#define RED 1
47
48
#define GREEN 2
49
50
#define BOTH 3
51
52
void
led_set
(
const
uint8_t led,
const
uint8_t status);
53
void
led_init
(
void
);
54
void
led_shut
(
void
);
55
56
#endif
led_set
void led_set(const uint8_t led, const uint8_t status)
Definition:
led.c:28
led_shut
void led_shut(void)
Definition:
led.c:65
led_init
void led_init(void)
Definition:
led.c:58
Generated on Tue Nov 5 2019 15:27:28 for Open Garden by
1.8.13