Projet

Dependents:   DISCO-F746NG_Scope_copy

Fork of BSP_DISCO_F746NG by ST

Revision:
5:5a395e126678
Parent:
0:c9112f0c67e3
diff -r 8603c9675405 -r 5a395e126678 stm32746g_discovery.c
--- a/stm32746g_discovery.c	Wed Nov 09 18:04:44 2016 +0100
+++ b/stm32746g_discovery.c	Wed Nov 09 18:26:13 2016 +0100
@@ -40,8 +40,7 @@
 /* Includes ------------------------------------------------------------------*/
 #include "stm32746g_discovery.h"
 
-// mbed function to replace HAL_Delay function
-void wait_ms(int ms);
+void wait_ms(int ms); // MBED to replace HAL_Delay function
 
 /** @addtogroup BSP
   * @{
@@ -190,7 +189,7 @@
   GPIO_InitTypeDef  gpio_init_structure;
   GPIO_TypeDef*     gpio_led;
 
-  if (Led == DISCO_LED1)
+  if (Led == DISCO_LED1) // MBED
   {
     gpio_led = LED1_GPIO_PORT;
     /* Enable the GPIO_LED clock */
@@ -222,7 +221,7 @@
   GPIO_InitTypeDef  gpio_init_structure;
   GPIO_TypeDef*     gpio_led;
 
-  if (Led == DISCO_LED1)
+  if (Led == DISCO_LED1) // MBED
   {
     gpio_led = LED1_GPIO_PORT;
     /* Turn off LED */
@@ -244,7 +243,7 @@
 {
   GPIO_TypeDef*     gpio_led;
 
-  if (Led == DISCO_LED1)	/* Switch On LED connected to GPIO */
+  if (Led == DISCO_LED1)	/* Switch On LED connected to GPIO */ // MBED
   {
     gpio_led = LED1_GPIO_PORT;
     HAL_GPIO_WritePin(gpio_led, GPIO_PIN[Led], GPIO_PIN_SET);
@@ -262,7 +261,7 @@
 {
   GPIO_TypeDef*     gpio_led;
 
-  if (Led == DISCO_LED1) /* Switch Off LED connected to GPIO */
+  if (Led == DISCO_LED1) /* Switch Off LED connected to GPIO */ // MBED
   {
     gpio_led = LED1_GPIO_PORT;
     HAL_GPIO_WritePin(gpio_led, GPIO_PIN[Led], GPIO_PIN_RESET);
@@ -280,7 +279,7 @@
 {
   GPIO_TypeDef*     gpio_led;
 
-  if (Led == DISCO_LED1)	/* Toggle LED connected to GPIO */
+  if (Led == DISCO_LED1)	/* Toggle LED connected to GPIO */ // MBED
   {
     gpio_led = LED1_GPIO_PORT;
     HAL_GPIO_TogglePin(gpio_led, GPIO_PIN[Led]);
@@ -733,8 +732,8 @@
   */
 void AUDIO_IO_Delay(uint32_t Delay)
 {
-  //HAL_Delay(Delay);
-  wait_ms(Delay);
+  //HAL_Delay(Delay); // MBED
+  wait_ms(Delay); // MBED
 }
 
 /********************************* LINK CAMERA ********************************/
@@ -782,8 +781,8 @@
   */
 void CAMERA_Delay(uint32_t Delay)
 {
-  //HAL_Delay(Delay);
-  wait_ms(Delay);
+  //HAL_Delay(Delay); // MBED
+  wait_ms(Delay); // MBED
 }
 
 /******************************** LINK I2C EEPROM *****************************/
@@ -880,8 +879,8 @@
   */
 void TS_IO_Delay(uint32_t Delay)
 {
-  //HAL_Delay(Delay);
-  wait_ms(Delay);
+  //HAL_Delay(Delay); // MBED
+  wait_ms(Delay); // MBED
 }
 
 /**