Controling the rgb led using pwm
[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_BLUE = 2,
26 } led_color_e;
27
28 void resource_led_init(void);
29 void resource_led_destroy(void);
30 void resource_led_set(led_color_e color);
31 void resource_led_blink(led_color_e color, unsigned timeout);
32
33 #endif /* RESOURCE_RESOURCE_LED_H_ */