1 /***********************************************************************************************************************
2 * Copyright [2015-2017] Renesas Electronics Corporation and/or its licensors. All Rights Reserved.
3 *
4 * This file is part of Renesas SynergyTM Software Package (SSP)
5 *
6 * The contents of this file (the "contents") are proprietary and confidential to Renesas Electronics Corporation
7 * and/or its licensors ("Renesas") and subject to statutory and contractual protections.
8 *
9 * This file is subject to a Renesas SSP license agreement. Unless otherwise agreed in an SSP license agreement with
10 * Renesas: 1) you may not use, copy, modify, distribute, display, or perform the contents; 2) you may not use any name
11 * or mark of Renesas for advertising or publicity purposes or in connection with your use of the contents; 3) RENESAS
12 * MAKES NO WARRANTY OR REPRESENTATIONS ABOUT THE SUITABILITY OF THE CONTENTS FOR ANY PURPOSE; THE CONTENTS ARE PROVIDED
13 * "AS IS" WITHOUT ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
14 * PARTICULAR PURPOSE, AND NON-INFRINGEMENT; AND 4) RENESAS SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, OR
15 * CONSEQUENTIAL DAMAGES, INCLUDING DAMAGES RESULTING FROM LOSS OF USE, DATA, OR PROJECTS, WHETHER IN AN ACTION OF
16 * CONTRACT OR TORT, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE CONTENTS. Third-party contents
17 * included in this file may be subject to different terms.
18 **********************************************************************************************************************/
19
20 /***********************************************************************************************************************
21 * File Name : bsp_common_leds.c
22 * Description : Support for LEDs on a board.
23 **********************************************************************************************************************/
24
25 #ifndef BSP_LEDS_H
26 #define BSP_LEDS_H
27
28 /***********************************************************************************************************************
29 * Includes
30 **********************************************************************************************************************/
31 #include "bsp_api.h"
32
33 /**********************************************************************************************************************
34 * Macro definitions
35 *********************************************************************************************************************/
36
37 /*********************************************************************************************************************
38 * Typedef definitions
39 *********************************************************************************************************************/
40
41 /***********************************************************************************************************************
42 * Private global variables
43 **********************************************************************************************************************/
44 /** Structure with LED information. */
45 /** @cond INC_HEADER_DEFS_SEC */
46 extern const bsp_leds_t g_bsp_leds;
47 /** @endcond */
48
49 /*******************************************************************************************************************//**
50 * @ingroup BSP_COMMON_LEDS
51 *
52 * @{
53 **********************************************************************************************************************/
54
55 /***********************************************************************************************************************
56 * Public Functions
57 **********************************************************************************************************************/
58
59 /*******************************************************************************************************************//**
60 * @brief Return information about the LEDs on the current board.
61 *
62 * @param[out] p_leds Pointer to structure where LED info is stored.
63 **********************************************************************************************************************/
R_BSP_LedsGet(bsp_leds_t * p_leds)64 ssp_err_t R_BSP_LedsGet(bsp_leds_t * p_leds)
65 {
66 #if BSP_CFG_PARAM_CHECKING_ENABLE
67 SSP_ASSERT(p_leds);
68 #endif
69
70 *p_leds = g_bsp_leds; /* Copy over information */
71 return SSP_SUCCESS;
72 }
73
74 #endif /* BSP_COMMON_LEDS */
75 /******************************************************************************************************************//**
76 * @} (end @ingroup BSP_COMMON_LEDS)
77 *********************************************************************************************************************/
78