xref: /btstack/port/renesas-tb-s1ja-cc256x/template/btstack_example/synergy/board/s1ja_tb/bsp_leds.c (revision 3b5c872a8c45689e8cc17891f01530f5aa5e911c)
1 /***********************************************************************************************************************
2  * Copyright [2015] 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 * File Name    : bsp_leds.c
21 * Description  : This module has information about the LEDs on this board.
22 ***********************************************************************************************************************/
23 
24 /*******************************************************************************************************************//**
25  * @addtogroup BSP_TBS1JA_LEDS
26  *
27  * @{
28  **********************************************************************************************************************/
29 
30 /***********************************************************************************************************************
31  * Includes
32  **********************************************************************************************************************/
33 #include "bsp_api.h"
34 
35 #if defined(BSP_BOARD_S1JA_TB)
36 
37 /***********************************************************************************************************************
38  * Macro definitions
39  **********************************************************************************************************************/
40 
41 /***********************************************************************************************************************
42  * Typedef definitions
43  **********************************************************************************************************************/
44 
45 /***********************************************************************************************************************
46  * Private global variables and functions
47  **********************************************************************************************************************/
48 /** Array of LED IOPORT pins. */
49 static const ioport_port_pin_t g_bsp_prv_leds[] =
50 {
51     IOPORT_PORT_02_PIN_05,  ///< LED1
52 };
53 
54 /***********************************************************************************************************************
55  * Exported global variables (to be accessed by other files)
56  **********************************************************************************************************************/
57 /** Structure with LED information for this board. Recommended to get this information through R_BSP_LedsGet() function
58  * instead of using this structure directly to remove dependency on structure name. */
59 const bsp_leds_t g_bsp_leds =
60 {
61     .led_count  = (uint16_t)((sizeof(g_bsp_prv_leds)/sizeof(g_bsp_prv_leds[0]))),
62     .p_leds     = &g_bsp_prv_leds[0]
63 };
64 
65 /***********************************************************************************************************************
66  * Exported global variables (to be accessed by other files)
67  **********************************************************************************************************************/
68 
69 #endif
70 
71 /** @} (end addtogroup BSP_TBS1JA_LEDS) */
72 
73