1 /*********************************************************************************************************************** 2 * Copyright [2020-2024] Renesas Electronics Corporation and/or its affiliates. All Rights Reserved. 3 * 4 * This software and documentation are supplied by Renesas Electronics Corporation and/or its affiliates and may only 5 * be used with products of Renesas Electronics Corp. and its affiliates ("Renesas"). No other uses are authorized. 6 * Renesas products are sold pursuant to Renesas terms and conditions of sale. Purchasers are solely responsible for 7 * the selection and use of Renesas products and Renesas assumes no liability. No license, express or implied, to any 8 * intellectual property right is granted by Renesas. This software is protected under all applicable laws, including 9 * copyright laws. Renesas reserves the right to change or discontinue this software and/or this documentation. 10 * THE SOFTWARE AND DOCUMENTATION IS DELIVERED TO YOU "AS IS," AND RENESAS MAKES NO REPRESENTATIONS OR WARRANTIES, AND 11 * TO THE FULLEST EXTENT PERMISSIBLE UNDER APPLICABLE LAW, DISCLAIMS ALL WARRANTIES, WHETHER EXPLICITLY OR IMPLICITLY, 12 * INCLUDING WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT, WITH RESPECT TO THE 13 * SOFTWARE OR DOCUMENTATION. RENESAS SHALL HAVE NO LIABILITY ARISING OUT OF ANY SECURITY VULNERABILITY OR BREACH. 14 * TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT WILL RENESAS BE LIABLE TO YOU IN CONNECTION WITH THE SOFTWARE OR 15 * DOCUMENTATION (OR ANY PERSON OR ENTITY CLAIMING RIGHTS DERIVED FROM YOU) FOR ANY LOSS, DAMAGES, OR CLAIMS WHATSOEVER, 16 * INCLUDING, WITHOUT LIMITATION, ANY DIRECT, CONSEQUENTIAL, SPECIAL, INDIRECT, PUNITIVE, OR INCIDENTAL DAMAGES; ANY 17 * LOST PROFITS, OTHER ECONOMIC DAMAGE, PROPERTY DAMAGE, OR PERSONAL INJURY; AND EVEN IF RENESAS HAS BEEN ADVISED OF THE 18 * POSSIBILITY OF SUCH LOSS, DAMAGES, CLAIMS OR COSTS. 19 **********************************************************************************************************************/ 20 21 /*********************************************************************************************************************** 22 * File Name : board_leds.h 23 * Description : This module has information about the LEDs on this board. 24 **********************************************************************************************************************/ 25 26 /*******************************************************************************************************************//** 27 * @ingroup BOARD_RZN2L_RSK 28 * @defgroup BOARD_RZN2L_RSK_LEDS Board LEDs 29 * @brief LED information for this board. 30 * 31 * This is code specific to the RZN2L_RSK board. It includes info on the number of LEDs and which pins are they 32 * are on. 33 * 34 * @{ 35 **********************************************************************************************************************/ 36 37 #ifndef BOARD_LEDS_H 38 #define BOARD_LEDS_H 39 40 /** Common macro for FSP header files. There is also a corresponding FSP_FOOTER macro at the end of this file. */ 41 FSP_HEADER 42 43 /*********************************************************************************************************************** 44 * Macro definitions 45 **********************************************************************************************************************/ 46 47 /*********************************************************************************************************************** 48 * Typedef definitions 49 **********************************************************************************************************************/ 50 51 /** Information on how many LEDs and what pins they are on. */ 52 typedef struct st_bsp_leds 53 { 54 uint16_t led_count; ///< The number of LEDs on this board 55 uint32_t const (*p_leds)[2]; ///< Pointer to an array of IOPORT pins for controlling LEDs 56 } bsp_leds_t; 57 58 /** Available user-controllable LEDs on this board. These enums can be can be used to index into the array of LED pins 59 * found in the bsp_leds_t structure. */ 60 typedef enum e_bsp_led 61 { 62 BSP_LED_RLED0 = 0, ///< Green 63 BSP_LED_RLED1 = 1, ///< Yellow 64 BSP_LED_RLED2 = 2, ///< Red 65 BSP_LED_RLED3 = 3, ///< Red 66 } bsp_led_t; 67 68 /*********************************************************************************************************************** 69 * Exported global variables 70 **********************************************************************************************************************/ 71 72 /*********************************************************************************************************************** 73 * Public Functions 74 **********************************************************************************************************************/ 75 76 /** Common macro for FSP header files. There is also a corresponding FSP_HEADER macro at the top of this file. */ 77 FSP_FOOTER 78 79 #endif 80 81 /** @} (end defgroup BOARD_RZN2L_RSK_LEDS) */ 82