OSDN Git Service

Added license header.
[bluetank/bluetank.git] / firm / bare_metal / led.h
1 /**\r
2  * @file led.h\r
3  * @author Copyright(C) 2012 Shinichiro Nakamura\r
4  * @brief BlueTank ACB-BF592 Application Sample Codes.\r
5  */\r
6 \r
7 /*\r
8  * ===============================================================\r
9  *  BlueTank\r
10  * ===============================================================\r
11  * Copyright (c) 2012 Shinichiro Nakamura\r
12  *\r
13  * Permission is hereby granted, free of charge, to any person\r
14  * obtaining a copy of this software and associated documentation\r
15  * files (the "Software"), to deal in the Software without\r
16  * restriction, including without limitation the rights to use,\r
17  * copy, modify, merge, publish, distribute, sublicense, and/or\r
18  * sell copies of the Software, and to permit persons to whom the\r
19  * Software is furnished to do so, subject to the following\r
20  * conditions:\r
21  *\r
22  * The above copyright notice and this permission notice shall be\r
23  * included in all copies or substantial portions of the Software.\r
24  *\r
25  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
26  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\r
27  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
28  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\r
29  * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\r
30  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\r
31  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\r
32  * OTHER DEALINGS IN THE SOFTWARE.\r
33  * ===============================================================\r
34  */\r
35 \r
36 #ifndef LED_H\r
37 #define LED_H\r
38 \r
39 typedef enum {\r
40     LedTargetR,\r
41     LedTargetG\r
42 } LedTarget;\r
43 \r
44 void led_init(void);\r
45 void led_write(LedTarget target, int on);\r
46 \r
47 #endif\r
48 \r