/*********************************************************************************************************************** * Copyright [2020] Renesas Electronics Corporation and/or its licensors. All Rights Reserved. * * This file is part of Renesas RA Flexible Software Package (FSP) * * The contents of this file (the "contents") are proprietary and confidential to Renesas Electronics Corporation * and/or its licensors ("Renesas") and subject to statutory and contractual protections. * * This file is subject to a Renesas FSP license agreement. Unless otherwise agreed in an FSP license agreement with * Renesas: 1) you may not use, copy, modify, distribute, display, or perform the contents; 2) you may not use any name * or mark of Renesas for advertising or publicity purposes or in connection with your use of the contents; 3) RENESAS * MAKES NO WARRANTY OR REPRESENTATIONS ABOUT THE SUITABILITY OF THE CONTENTS FOR ANY PURPOSE; THE CONTENTS ARE PROVIDED * "AS IS" WITHOUT ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE, AND NON-INFRINGEMENT; AND 4) RENESAS SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, OR * CONSEQUENTIAL DAMAGES, INCLUDING DAMAGES RESULTING FROM LOSS OF USE, DATA, OR PROJECTS, WHETHER IN AN ACTION OF * CONTRACT OR TORT, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE CONTENTS. Third-party contents * included in this file may be subject to different terms. **********************************************************************************************************************/ /*********************************************************************************************************************** * File Name : board_leds.c * Description : This module has information about the LEDs on this board. **********************************************************************************************************************/ /*******************************************************************************************************************//** * @addtogroup BSP_RA2L1_CPK_LEDS * * @{ **********************************************************************************************************************/ /*********************************************************************************************************************** * Includes **********************************************************************************************************************/ #include "bsp_api.h" #if defined(BOARD_RA2L1_CPK) /*********************************************************************************************************************** * Macro definitions **********************************************************************************************************************/ /*********************************************************************************************************************** * Typedef definitions **********************************************************************************************************************/ /*********************************************************************************************************************** * Private global variables and functions **********************************************************************************************************************/ /** Array of LED IOPORT pins. */ static const uint16_t g_bsp_prv_leds[] = { (uint16_t) BSP_IO_PORT_05_PIN_02, ///< USER LED1 (uint16_t) BSP_IO_PORT_05_PIN_01, ///< USER LED2 }; /*********************************************************************************************************************** * Exported global variables (to be accessed by other files) **********************************************************************************************************************/ /** Structure with LED information for this board. */ const bsp_leds_t g_bsp_leds = { .led_count = (uint16_t) ((sizeof(g_bsp_prv_leds) / sizeof(g_bsp_prv_leds[0]))), .p_leds = &g_bsp_prv_leds[0] }; /*********************************************************************************************************************** * Exported global variables (to be accessed by other files) **********************************************************************************************************************/ #endif /** @} (end addtogroup BSP_RA2L1_CPK_LEDS) */