shithub: lwext4

Download patch

ref: 28a38779834ec1815a8c502ffd4ea615fa37aed6
parent: 40969c337e6d4ada59ceab116b2ede5f049b4b46
author: gkostka <kostka.grzegorz@gmail.com>
date: Fri Jun 13 15:05:55 EDT 2014

stm32f249-disco demo update

--- a/demos/stm32f429_disco/hw_init.c
+++ b/demos/stm32f429_disco/hw_init.c
@@ -61,11 +61,11 @@
       break;
 
   case HOST_USER_CLASS_ACTIVE:
-      msc_connected = true;
+	  enum_done = true;
       break;
 
   case HOST_USER_CONNECTION:
-      enum_done = true;
+	  msc_connected = true;
       break;
   default:
       break;
@@ -79,6 +79,7 @@
 void hw_init(void)
 {
     pll_init();
+    HAL_Init();
 
     /* Initialize the LEDs */
     BSP_LED_Init(LED3);
--- a/demos/stm32f429_disco/stm/lcd_utils/lcd_log_conf.h
+++ b/demos/stm32f429_disco/stm/lcd_utils/lcd_log_conf.h
@@ -68,7 +68,7 @@
 
 /* Define the cache depth */
 #define     CACHE_SIZE              100
-#define     YWINDOW_SIZE            17
+#define     YWINDOW_SIZE            22
 
 #ifdef __GNUC__
 /* With GCC/RAISONANCE, small printf (option LD Linker->Libraries->Small printf
--- a/demos/stm32f429_disco/stm/stm32f4_spl/src/stm32f4xx_hal_spi.c
+++ b/demos/stm32f429_disco/stm/stm32f4_spl/src/stm32f4xx_hal_spi.c
@@ -462,7 +462,7 @@
   */
 HAL_StatusTypeDef HAL_SPI_Receive(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout)
 {
-  __IO uint16_t tmpreg;
+  __IO uint16_t tmpreg = 0;
   (void)tmpreg;
   uint32_t tmp = 0;
 
@@ -637,7 +637,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;
+  __IO uint16_t tmpreg = 0;
   (void)tmpreg;
   uint32_t tmp = 0;
   
@@ -1620,7 +1620,7 @@
   */
 static void SPI_RxCloseIRQHandler(SPI_HandleTypeDef *hspi)
 {
-  __IO uint16_t tmpreg;
+  __IO uint16_t tmpreg = 0;
   (void)tmpreg;
   if(hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLED)
   {
@@ -1801,7 +1801,7 @@
   */
 static void SPI_DMAReceiveCplt(DMA_HandleTypeDef *hdma)
 {
-  __IO uint16_t tmpreg;
+  __IO uint16_t tmpreg = 0;
   (void)tmpreg;
   SPI_HandleTypeDef* hspi = ( SPI_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
 
@@ -1861,7 +1861,7 @@
   */
 static void SPI_DMATransmitReceiveCplt(DMA_HandleTypeDef *hdma)   
 {
-  __IO uint16_t tmpreg;
+  __IO uint16_t tmpreg = 0;
   (void)tmpreg;
   SPI_HandleTypeDef* hspi = ( SPI_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
 
--- a/demos/stm32f429_disco/stm/usb_user/usbh_conf.h
+++ b/demos/stm32f429_disco/stm/usb_user/usbh_conf.h
@@ -43,7 +43,7 @@
 #define USBH_KEEP_CFG_DESCRIPTOR              0
 #define USBH_MAX_SIZE_CONFIGURATION           0x200
 #define USBH_MAX_DATA_BUFFER                  0x200
-#define USBH_DEBUG_LEVEL                      0
+#define USBH_DEBUG_LEVEL                      3
 #define USBH_USE_OS                           0
     
 /* Exported constants --------------------------------------------------------*/
--- a/demos/stm32f429_disco/stm32f429.ld
+++ b/demos/stm32f429_disco/stm32f429.ld
@@ -32,8 +32,8 @@
 /* Handler mode (core exceptions / interrupts) can use only main stack */
 /* Thread mode can use main stack (default) or process stack - selected in CONTROL special register */
 
-__main_stack_size = 2048;
-__process_stack_size = 2048;
+__main_stack_size = 4096;
+__process_stack_size = 4096;
 
 PROVIDE(__main_stack_size = __main_stack_size);
 PROVIDE(__process_stack_size = __process_stack_size);
--- a/toolchain/common/arm-none-eabi.cmake
+++ b/toolchain/common/arm-none-eabi.cmake
@@ -18,6 +18,6 @@
 SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -ggdb3" CACHE INTERNAL "cxx debug compiler flags")
 SET(CMAKE_ASM_FLAGS_DEBUG "-g -ggdb3" CACHE INTERNAL "asm debug compiler flags")
 
-SET(CMAKE_C_FLAGS_RELEASE "-O2" CACHE INTERNAL "c release compiler flags")
-SET(CMAKE_CXX_FLAGS_RELEASE "-O2" CACHE INTERNAL "cxx release compiler flags")
+SET(CMAKE_C_FLAGS_RELEASE "-O2 -g -ggdb3" CACHE INTERNAL "c release compiler flags")
+SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -g -ggdb3" CACHE INTERNAL "cxx release compiler flags")
 SET(CMAKE_ASM_FLAGS_RELEASE "" CACHE INTERNAL "asm release compiler flags")
\ No newline at end of file
--- a/toolchain/common/avr-gcc.cmake
+++ b/toolchain/common/avr-gcc.cmake
@@ -17,6 +17,6 @@
 SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -ggdb3" CACHE INTERNAL "cxx debug compiler flags")
 SET(CMAKE_ASM_FLAGS_DEBUG "-g -ggdb3" CACHE INTERNAL "asm debug compiler flags")
 
-SET(CMAKE_C_FLAGS_RELEASE "-Os" CACHE INTERNAL "c release compiler flags")
-SET(CMAKE_CXX_FLAGS_RELEASE "-Os" CACHE INTERNAL "cxx release compiler flags")
+SET(CMAKE_C_FLAGS_RELEASE "-Os -g -ggdb3" CACHE INTERNAL "c release compiler flags")
+SET(CMAKE_CXX_FLAGS_RELEASE "-Os -g -ggdb3" CACHE INTERNAL "cxx release compiler flags")
 SET(CMAKE_ASM_FLAGS_RELEASE "" CACHE INTERNAL "asm release compiler flags")
\ No newline at end of file
--- a/toolchain/common/bfin-elf.cmake
+++ b/toolchain/common/bfin-elf.cmake
@@ -17,6 +17,6 @@
 SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -ggdb3" CACHE INTERNAL "cxx debug compiler flags")
 SET(CMAKE_ASM_FLAGS_DEBUG "-g -ggdb3" CACHE INTERNAL "asm debug compiler flags")
 
-SET(CMAKE_C_FLAGS_RELEASE "-Os" CACHE INTERNAL "c release compiler flags")
-SET(CMAKE_CXX_FLAGS_RELEASE "-Os" CACHE INTERNAL "cxx release compiler flags")
+SET(CMAKE_C_FLAGS_RELEASE "-Os -g -ggdb3" CACHE INTERNAL "c release compiler flags")
+SET(CMAKE_CXX_FLAGS_RELEASE "-Os -g -ggdb3" CACHE INTERNAL "cxx release compiler flags")
 SET(CMAKE_ASM_FLAGS_RELEASE "" CACHE INTERNAL "asm release compiler flags")
\ No newline at end of file