blob: 782ac9b50d2098e10f1e7cc3874b26abf9a68190 [file] [log] [blame]
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef __OPTIMUS_LED_H__
#define __OPTIMUS_LED_H__
#define LED_TYPE_PWM 0xabcd
#if CONFIG_SD_BURNING_SUPPORT_LED
int optimus_led_open(int ledType);//open the led for show burning states
int optimus_led_close(void);
int optimus_led_show_in_process_of_burning(void);
int optimus_led_show_burning_success(void);
int optimus_led_show_burning_failure(void);
#else
#define optimus_led_open(ledType) 0
#define optimus_led_close() 0
#define optimus_led_show_in_process_of_burning() do{}while(0)
#define optimus_led_show_burning_success() do{}while(0)
#define optimus_led_show_burning_failure() do{}while(0)
#endif// #if CONFIG_SD_BURNING_SUPPORT_LED
#endif//ifndef __OPTIMUS_LED_H__