shithub: lwext4

Download patch

ref: 40969c337e6d4ada59ceab116b2ede5f049b4b46
parent: 63a33e39df4b7faedccb566ff9012d38e5b82064
author: gkostka <kostka.grzegorz@gmail.com>
date: Fri Jun 13 11:09:34 EDT 2014

Remove warnings. ST lib Hal configuration.

--- a/demos/stm32f429_disco/CMakeLists.txt
+++ b/demos/stm32f429_disco/CMakeLists.txt
@@ -27,8 +27,7 @@
 add_executable(stm32f429_demo ${STM32F429_DEMO} ${STM32F429_DEMO_ASM})
 
 add_definitions(-DSTM32F429xx)
-add_definitions(-DHAL_DMA2D_MODULE_ENABLED)
-add_definitions(-DHAL_LTDC_MODULE_ENABLED)
+
 set_target_properties(stm32f429_demo PROPERTIES COMPILE_FLAGS "-Wno-unused-parameter")
 set_target_properties(stm32f429_demo PROPERTIES COMPILE_FLAGS "-Wno-format")
 set_target_properties(stm32f429_demo PROPERTIES COMPILE_DEFINITIONS "STM32F429_439xx")
--- a/demos/stm32f429_disco/stm/stm32f4_spl/src/stm32f4xx_hal_spi.c
+++ b/demos/stm32f429_disco/stm/stm32f4_spl/src/stm32f4xx_hal_spi.c
@@ -463,6 +463,7 @@
 HAL_StatusTypeDef HAL_SPI_Receive(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout)
 {
   __IO uint16_t tmpreg;
+  (void)tmpreg;
   uint32_t tmp = 0;
 
   if(hspi->State == HAL_SPI_STATE_READY)
@@ -637,6 +638,7 @@
 HAL_StatusTypeDef HAL_SPI_TransmitReceive(SPI_HandleTypeDef *hspi, uint8_t *pTxData, uint8_t *pRxData, uint16_t Size, uint32_t Timeout)
 {
   __IO uint16_t tmpreg;
+  (void)tmpreg;
   uint32_t tmp = 0;
   
   tmp = hspi->State; 
@@ -1619,7 +1621,7 @@
 static void SPI_RxCloseIRQHandler(SPI_HandleTypeDef *hspi)
 {
   __IO uint16_t tmpreg;
-
+  (void)tmpreg;
   if(hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLED)
   {
     /* Wait until RXNE flag is set to send data */
@@ -1800,7 +1802,7 @@
 static void SPI_DMAReceiveCplt(DMA_HandleTypeDef *hdma)
 {
   __IO uint16_t tmpreg;
-
+  (void)tmpreg;
   SPI_HandleTypeDef* hspi = ( SPI_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
 
   if((hspi->Init.Mode == SPI_MODE_MASTER)&&((hspi->Init.Direction == SPI_DIRECTION_1LINE)||(hspi->Init.Direction == SPI_DIRECTION_2LINES_RXONLY)))
@@ -1860,7 +1862,7 @@
 static void SPI_DMATransmitReceiveCplt(DMA_HandleTypeDef *hdma)   
 {
   __IO uint16_t tmpreg;
-
+  (void)tmpreg;
   SPI_HandleTypeDef* hspi = ( SPI_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
 
   /* Reset CRC Calculation */
--- a/demos/stm32f429_disco/stm/usb_user/stm32f4xx_hal_conf.h
+++ b/demos/stm32f429_disco/stm/usb_user/stm32f4xx_hal_conf.h
@@ -58,7 +58,7 @@
 /* #define HAL_DAC_MODULE_ENABLED  */
 /* #define HAL_DCMI_MODULE_ENABLED */
 #define HAL_DMA_MODULE_ENABLED
-/* #define HAL_DMA2D_MODULE_ENABLED*/
+#define HAL_DMA2D_MODULE_ENABLED
 /* #define HAL_ETH_MODULE_ENABLED  */ 
 #define HAL_FLASH_MODULE_ENABLED 
 /* #define HAL_NAND_MODULE_ENABLED */
@@ -71,7 +71,7 @@
 #define HAL_I2C_MODULE_ENABLED
 /* #define HAL_I2S_MODULE_ENABLED  */ 
 /* #define HAL_IWDG_MODULE_ENABLED */
-/* #define HAL_LTDC_MODULE_ENABLED */
+#define HAL_LTDC_MODULE_ENABLED
 #define HAL_PWR_MODULE_ENABLED   
 #define HAL_RCC_MODULE_ENABLED 
 /* #define HAL_RNG_MODULE_ENABLED  */ 
@@ -78,7 +78,7 @@
 /* #define HAL_RTC_MODULE_ENABLED */
 /* #define HAL_SAI_MODULE_ENABLED  */
 /* #define HAL_SD_MODULE_ENABLED   */
-#define HAL_SPI_MODULE_ENABLED   
+#define HAL_SPI_MODULE_ENABLED
 /* #define HAL_TIM_MODULE_ENABLED  */  
 /* #define HAL_UART_MODULE_ENABLED */
 /* #define HAL_USART_MODULE_ENABLED*/
--- a/demos/stm32f429_disco/stm/usb_user/stm32f4xx_it.c
+++ b/demos/stm32f429_disco/stm/usb_user/stm32f4xx_it.c
@@ -30,6 +30,8 @@
 /* Includes ------------------------------------------------------------------*/
 #include "stm32f4xx_it.h" 
 #include "stm32f4xx_hal_hcd.h"
+#include "stm32f4xx_hal.h"
+
     
 /* Private typedef -----------------------------------------------------------*/
 /* Private define ------------------------------------------------------------*/