hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/* SPDX-License-Identifier: GPL-2.0 */
/******************************************************************************
 *
 * Copyright(c) 2016 - 2017 Realtek Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 *****************************************************************************/
#define _RTL8821CS_LED_C_
 
#include <drv_types.h>        /* PADAPTER */
#include <hal_data.h>        /* PHAL_DATA_TYPE */
#include <hal_com_led.h>    /* PLED_SDIO */
#ifdef CONFIG_RTW_SW_LED
 
/*
* =============================================================================
* LED object.
* =============================================================================
*/
 
 
/*
* =============================================================================
*    Prototype of protected function.
* =============================================================================
*/
 
/*
* =============================================================================
* LED routines.
* =============================================================================
*/
 
/*
* Description:
*    Turn on LED according to LedPin specified.
*/
void swledon(PADAPTER adapter, PLED_SDIO led)
{
   u8 LedCfg;
   PHAL_DATA_TYPE hal = GET_HAL_DATA(adapter);
 
   if (RTW_CANNOT_RUN(adapter))
       return;
 
   led->bLedOn = _TRUE;
}
 
 
/*
 * Description:
 *    Turn off LED according to LedPin specified.
*/
void swledoff(PADAPTER adapter, PLED_SDIO led)
{
   u8 LedCfg;
   PHAL_DATA_TYPE hal = GET_HAL_DATA(adapter);
 
   if (RTW_CANNOT_RUN(adapter))
       goto exit;
 
exit:
   led->bLedOn = _FALSE;
}
 
/*
* =============================================================================
* Interface to manipulate LED objects.
* =============================================================================
*/
 
/*
* =============================================================================
* Default LED behavior.
* =============================================================================
*/
 
/*
* Description:
*    Initialize all LED_871x objects.
*/
void rtl8821cs_initswleds(PADAPTER adapter)
{
}
 
/*
* Description:
* DeInitialize all LED_819xUsb objects.
*/
void rtl8821cs_deinitswleds(PADAPTER adapter)
{
}
#endif