BSP_DISCO_L4R9I

Dependents:   DISCO_L4R9I-LCD-demo

Files at this revision

API Documentation at this revision

Comitter:
Jerome Coutant
Date:
Tue Nov 26 14:35:07 2019 +0100
Parent:
0:31ddfafdd3da
Commit message:
Update for MBED use

Changed in this revision

Drivers/BSP/STM32L4R9I-Discovery/stm32l4r9i_discovery.c Show annotated file Show diff for this revision Revisions of this file
Drivers/BSP/STM32L4R9I-Discovery/stm32l4r9i_discovery.h Show annotated file Show diff for this revision Revisions of this file
Drivers/BSP/STM32L4R9I-Discovery/stm32l4r9i_discovery_lcd.c Show annotated file Show diff for this revision Revisions of this file
--- a/Drivers/BSP/STM32L4R9I-Discovery/stm32l4r9i_discovery.c	Fri Nov 22 16:43:39 2019 +0100
+++ b/Drivers/BSP/STM32L4R9I-Discovery/stm32l4r9i_discovery.c	Tue Nov 26 14:35:07 2019 +0100
@@ -199,15 +199,15 @@
   * @brief  Configures LED GPIOs.
   * @param  Led: Specifies the Led to be configured.
   *   This parameter can be one of following parameters:
-  *     @arg LED1
-  *     @arg LED2
+  *     @arg DISCO_LED1
+  *     @arg DISCO_LED2
   * @retval None
   */
 void BSP_LED_Init(Led_TypeDef Led)
 {
   GPIO_InitTypeDef  GPIO_InitStructure;
 
-  if (Led == LED2)
+  if (Led == DISCO_LED2)
   {
     /* Enable the GPIO_LED clock */
     LED2_GPIO_CLK_ENABLE();
@@ -243,13 +243,13 @@
   * @brief  Unconfigures LED GPIOs.
   * @param  Led: Specifies the Led to be unconfigured.
   *   This parameter can be one of following parameters:
-  *     @arg LED1
-  *     @arg LED2
+  *     @arg DISCO_LED1
+  *     @arg DISCO_LED2
   * @retval None
   */
 void BSP_LED_DeInit(Led_TypeDef Led)
 {
-  if (Led == LED2)
+  if (Led == DISCO_LED2)
   {
     /* Enable the GPIO_LED clock */
     LED2_GPIO_CLK_ENABLE();
@@ -263,13 +263,13 @@
   * @brief  Turns selected LED On.
   * @param  Led: Specifies the Led to be set on.
   *   This parameter can be one of following parameters:
-  *     @arg LED1
-  *     @arg LED2
+  *     @arg DISCO_LED1
+  *     @arg DISCO_LED2
   * @retval None
   */
 void BSP_LED_On(Led_TypeDef Led)
 {
-  if (Led == LED2)
+  if (Led == DISCO_LED2)
   {
     HAL_GPIO_WritePin(LED2_GPIO_PORT, LED_PIN[Led], GPIO_PIN_RESET);
   }
@@ -283,13 +283,13 @@
   * @brief  Turns selected LED Off.
   * @param  Led: Specifies the Led to be set off.
   *   This parameter can be one of following parameters:
-  *     @arg LED1
-  *     @arg LED2
+  *     @arg DISCO_LED1
+  *     @arg DISCO_LED2
   * @retval None
   */
 void BSP_LED_Off(Led_TypeDef Led)
 {
-  if (Led == LED2)
+  if (Led == DISCO_LED2)
   {
     HAL_GPIO_WritePin(LED2_GPIO_PORT, LED_PIN[Led], GPIO_PIN_SET);
   }
@@ -303,13 +303,13 @@
   * @brief  Toggles the selected LED.
   * @param  Led: Specifies the Led to be toggled.
   *   This parameter can be one of following parameters:
-  *     @arg LED1
-  *     @arg LED2
+  *     @arg DISCO_LED1
+  *     @arg DISCO_LED2
   * @retval None
   */
 void BSP_LED_Toggle(Led_TypeDef Led)
 {
-  if (Led == LED2)
+  if (Led == DISCO_LED2)
   {
     HAL_GPIO_TogglePin(LED2_GPIO_PORT, LED_PIN[Led]);
   }
--- a/Drivers/BSP/STM32L4R9I-Discovery/stm32l4r9i_discovery.h	Fri Nov 22 16:43:39 2019 +0100
+++ b/Drivers/BSP/STM32L4R9I-Discovery/stm32l4r9i_discovery.h	Tue Nov 26 14:35:07 2019 +0100
@@ -59,10 +59,10 @@
  */
 typedef enum
 {
-  LED1 = 0,
-  LED2 = 1,
-  LED_ORANGE = LED1,
-  LED_GREEN  = LED2
+  DISCO_LED1 = 0,
+  DISCO_LED2 = 1,
+  LED_ORANGE = DISCO_LED1,
+  LED_GREEN  = DISCO_LED2
 }Led_TypeDef;
 
 
--- a/Drivers/BSP/STM32L4R9I-Discovery/stm32l4r9i_discovery_lcd.c	Fri Nov 22 16:43:39 2019 +0100
+++ b/Drivers/BSP/STM32L4R9I-Discovery/stm32l4r9i_discovery_lcd.c	Tue Nov 26 14:35:07 2019 +0100
@@ -70,11 +70,12 @@
 #include "stm32l4r9i_discovery_gfxmmu_lut.h"
 #include "stm32l4r9i_discovery_io.h"
 #include "../../../Utilities/Fonts/fonts.h"
+/* Removed for MBED
 #include "../../../Utilities/Fonts/font24.c"
 #include "../../../Utilities/Fonts/font20.c"
 #include "../../../Utilities/Fonts/font16.c"
 #include "../../../Utilities/Fonts/font12.c"
-#include "../../../Utilities/Fonts/font8.c"
+#include "../../../Utilities/Fonts/font8.c" */
 
 /** @addtogroup BSP
   * @{
@@ -1989,6 +1990,18 @@
   }
 }
 
+
+/**
+  * @brief  This function handles DSI global interrupt request.
+  * @param  None
+  * @retval None
+  */
+void DSI_IRQHandler(void)
+{
+  BSP_LCD_DSI_IRQHandler();
+}
+
+
 /**
   * @}
   */