882adf123437dc3910233f3986c145ef61541e20
[apps/native/gear-racing-car.git] / inc / resource / resource_led.h
1 /*
2 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
3 *
4 * Licensed under the Flora License, Version 1.1 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://floralicense.org/license/
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17
18 #ifndef RESOURCE_RESOURCE_LED_H_
19 #define RESOURCE_RESOURCE_LED_H_
20
21 typedef enum _led_color_e {
22         LED_COLOR_NONE = -1,
23         LED_COLOR_RED = 0,
24         LED_COLOR_GREEN = 1,
25 } led_color_e;
26
27 void resource_led_init(void);
28 void resource_led_destroy(void);
29 void resource_led_set(led_color_e color);
30 void resource_led_blink(led_color_e color, unsigned timeout);
31
32 #endif /* RESOURCE_RESOURCE_LED_H_ */