1 /******************************************************************************
\r
3 * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
\r
5 * This program is free software; you can redistribute it and/or modify it
\r
6 * under the terms of version 2 of the GNU General Public License as
\r
7 * published by the Free Software Foundation.
\r
9 * This program is distributed in the hope that it will be useful, but WITHOUT
\r
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
\r
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
\r
14 * You should have received a copy of the GNU General Public License along with
\r
15 * this program; if not, write to the Free Software Foundation, Inc.,
\r
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
\r
19 ******************************************************************************/
\r
20 #define _RTL8723AS_LED_C_
\r
22 #include "drv_types.h"
\r
23 #include "rtl8723a_hal.h"
\r
25 //================================================================================
\r
27 //================================================================================
\r
30 //================================================================================
\r
31 // Prototype of protected function.
\r
32 //================================================================================
\r
34 //================================================================================
\r
35 // LED_819xUsb routines.
\r
36 //================================================================================
\r
40 // Turn on LED according to LedPin specified.
\r
49 //HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
\r
51 if( (padapter->bSurpriseRemoved == _TRUE) || ( padapter->bDriverStopped == _TRUE))
\r
56 pLed->bLedOn = _TRUE;
\r
63 // Turn off LED according to LedPin specified.
\r
72 //HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
\r
74 if((padapter->bSurpriseRemoved == _TRUE) || ( padapter->bDriverStopped == _TRUE))
\r
80 pLed->bLedOn = _FALSE;
\r
84 //================================================================================
\r
85 // Interface to manipulate LED objects.
\r
86 //================================================================================
\r
88 //================================================================================
\r
89 // Default LED behavior.
\r
90 //================================================================================
\r
94 // Initialize all LED_871x objects.
\r
97 rtl8723as_InitSwLeds(
\r
101 struct led_priv *pledpriv = &(padapter->ledpriv);
\r
103 pledpriv->LedControlHandler = LedControl871x;
\r
106 InitLed871x(padapter, &(pledpriv->SwLed0), LED_PIN_LED0);
\r
108 InitLed871x(padapter,&(pledpriv->SwLed1), LED_PIN_LED1);
\r
115 // DeInitialize all LED_819xUsb objects.
\r
118 rtl8723as_DeInitSwLeds(
\r
123 struct led_priv *ledpriv = &(padapter->ledpriv);
\r
125 DeInitLed871x( &(ledpriv->SwLed0) );
\r
126 DeInitLed871x( &(ledpriv->SwLed1) );
\r