board_leds.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /***********************************************************************************************************************
  2. * Copyright [2020] Renesas Electronics Corporation and/or its licensors. All Rights Reserved.
  3. *
  4. * This file is part of Renesas RA Flexible Software Package (FSP)
  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 FSP license agreement. Unless otherwise agreed in an FSP 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 : board_leds.h
  21. * Description : This module has information about the LEDs on this board.
  22. **********************************************************************************************************************/
  23. /*******************************************************************************************************************//**
  24. * @ingroup BOARD_RA6M4_IOT
  25. * @defgroup BSP_RA6M4_IOT_LEDS Board LEDs
  26. * @brief LED information for this board.
  27. *
  28. * This is code specific to the RA6M4_IOT board.
  29. *
  30. * @{
  31. **********************************************************************************************************************/
  32. #ifndef BOARD_LEDS_H
  33. #define BOARD_LEDS_H
  34. /** Common macro for FSP header files. There is also a corresponding FSP_FOOTER macro at the end of this file. */
  35. FSP_HEADER
  36. /***********************************************************************************************************************
  37. * Macro definitions
  38. **********************************************************************************************************************/
  39. /***********************************************************************************************************************
  40. * Typedef definitions
  41. **********************************************************************************************************************/
  42. /** Information on how many LEDs and what pins they are on. */
  43. typedef struct st_bsp_leds
  44. {
  45. uint16_t led_count; ///< The number of LEDs on this board
  46. uint16_t const * p_leds; ///< Pointer to an array of IOPORT pins for controlling LEDs
  47. } bsp_leds_t;
  48. /** Available user-controllable LEDs on this board. These enums can be can be used to index into the array of LED pins
  49. * found in the bsp_leds_t structure. */
  50. typedef enum e_bsp_led
  51. {
  52. BSP_LED_LED1 = 0, ///< TB LED - Red
  53. } bsp_led_t;
  54. /***********************************************************************************************************************
  55. * Exported global variables
  56. **********************************************************************************************************************/
  57. /***********************************************************************************************************************
  58. * Public Functions
  59. **********************************************************************************************************************/
  60. /** Common macro for FSP header files. There is also a corresponding FSP_HEADER macro at the top of this file. */
  61. FSP_FOOTER
  62. #endif /* BOARD_LEDS_H */
  63. /** @} (end defgroup BSP_RA6M4_IOT_LEDS) */