board_leds.c 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.c
  21. * Description : This module has information about the LEDs on this board.
  22. **********************************************************************************************************************/
  23. /*******************************************************************************************************************//**
  24. * @addtogroup BSP_RA6M4_IOT_LEDS
  25. *
  26. * @{
  27. **********************************************************************************************************************/
  28. /***********************************************************************************************************************
  29. * Includes
  30. **********************************************************************************************************************/
  31. #include "bsp_api.h"
  32. #if defined(BOARD_RA6M4_IOT)
  33. /***********************************************************************************************************************
  34. * Macro definitions
  35. **********************************************************************************************************************/
  36. /***********************************************************************************************************************
  37. * Typedef definitions
  38. **********************************************************************************************************************/
  39. /***********************************************************************************************************************
  40. * Private global variables and functions
  41. **********************************************************************************************************************/
  42. /** Array of LED IOPORT pins. */
  43. static const uint16_t g_bsp_prv_leds[] =
  44. {
  45. (uint16_t) BSP_IO_PORT_01_PIN_14, ///< USER LED
  46. };
  47. /***********************************************************************************************************************
  48. * Exported global variables (to be accessed by other files)
  49. **********************************************************************************************************************/
  50. /** Structure with LED information for this board. */
  51. const bsp_leds_t g_bsp_leds =
  52. {
  53. .led_count = (uint16_t) ((sizeof(g_bsp_prv_leds) / sizeof(g_bsp_prv_leds[0]))),
  54. .p_leds = &g_bsp_prv_leds[0]
  55. };
  56. /***********************************************************************************************************************
  57. * Exported global variables (to be accessed by other files)
  58. **********************************************************************************************************************/
  59. #endif
  60. /** @} (end addtogroup BSP_RA6M4_IOT_LEDS) */