blob: 4b229c300a2efea4394f8ad141181c9d498f6730 [file] [log] [blame]
#include "lynq_led.h"
#include "mbtk_type.h"
#include "mbtk_log.h"
#include "mbtk_led_control.h"
/****************************DEFINE***************************************/
#define QSER_RESULT_FAIL -1
#define QSER_RESULT_SUCCESS 0
/****************************DEFINE***************************************/
/****************************VARIABLE***************************************/
/****************************VARIABLE***************************************/
/******************************FUNC*****************************************/
/******************************FUNC*****************************************/
/****************************API***************************************/
int lynq_set_netled_on(int led_mode)
{
//UNUSED(led_mode);
if(led_mode != MBTK_LED_STATUS_CLOSE && led_mode != MBTK_LED_STATUS_OPEN)
{
LOGE("[qser_led]param is fail.");
return QSER_RESULT_FAIL;
}
led_info_s led_control;
memset(&led_control, 0x0, sizeof(led_info_s));
led_control.led_type = MBTK_LED_NET;
led_control.status = led_mode;
mbtk_led_set(led_control);
return QSER_RESULT_SUCCESS;
}
int lynq_set_statusled_on(int led_mode)
{
//UNUSED(led_mode);
if(led_mode != MBTK_LED_STATUS_CLOSE && led_mode != MBTK_LED_STATUS_OPEN)
{
LOGE("[qser_led]param is fail.");
return QSER_RESULT_FAIL;
}
led_info_s led_control;
memset(&led_control, 0x0, sizeof(led_info_s));
led_control.led_type = MBTK_LED_STATUS;
led_control.status = led_mode;
mbtk_led_set(led_control);
return QSER_RESULT_SUCCESS;
}
/****************************API***************************************/