H7 ST CUBE : remove unecessary #if 1 instead of USE_FULL_LL_DRIVER

Keep #define USE_FULL_LL_DRIVER and define this switch in target.json

Signed-off-by: Vincent Veron <vincent.veron@st.com>
pull/10631/head
Vincent Veron 2019-05-23 10:24:52 +02:00
parent 80b41f0276
commit d8e1e43e35
24 changed files with 25 additions and 24 deletions

View File

@ -16,7 +16,7 @@
*
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_adc.h"

View File

@ -17,7 +17,7 @@
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_bdma.h"

View File

@ -16,7 +16,7 @@
*
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_comp.h"

View File

@ -16,7 +16,7 @@
*
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_crc.h"

View File

@ -17,7 +17,7 @@
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_dac.h"

View File

@ -16,7 +16,7 @@
*
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_dma.h"

View File

@ -16,7 +16,7 @@
*
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_dma2d.h"

View File

@ -16,7 +16,7 @@
*
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_exti.h"

View File

@ -17,7 +17,7 @@
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_gpio.h"

View File

@ -16,7 +16,7 @@
*
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_hrtim.h"

View File

@ -16,7 +16,7 @@
*
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_i2c.h"

View File

@ -15,7 +15,7 @@
* opensource.org/licenses/BSD-3-Clause
* ******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_lptim.h"

View File

@ -16,7 +16,7 @@
*
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_lpuart.h"

View File

@ -16,7 +16,7 @@
*
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_mdma.h"

View File

@ -16,7 +16,7 @@
*
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_opamp.h"

View File

@ -17,7 +17,7 @@
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_pwr.h"

View File

@ -16,7 +16,7 @@
*
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_rcc.h"

View File

@ -16,7 +16,7 @@
*
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_rng.h"

View File

@ -16,7 +16,7 @@
*
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_rtc.h"

View File

@ -16,7 +16,7 @@
*
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_spi.h"

View File

@ -16,7 +16,7 @@
*
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_swpmi.h"

View File

@ -16,7 +16,7 @@
*
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_tim.h"

View File

@ -16,7 +16,7 @@
*
******************************************************************************
*/
#if 1 // MBED PATCH defined(USE_FULL_LL_DRIVER)
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_ll_usart.h"

View File

@ -3196,7 +3196,8 @@
}
},
"macros_add": [
"MBED_TICKLESS"
"MBED_TICKLESS",
"USE_FULL_LL_DRIVER"
],
"overrides": { "lpticker_delay_ticks": 4 },
"supported_form_factors": ["ARDUINO"],