diff options
| -rw-r--r-- | testhal/STM32/STM32F4xx/FSMC_SDRAM/Makefile | 13 | ||||
| -rw-r--r-- | testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf.h | 4 | ||||
| -rw-r--r-- | testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h | 2 | ||||
| -rw-r--r-- | testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf.h | 12 | ||||
| -rw-r--r-- | testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf_community.h | 7 | ||||
| -rw-r--r-- | testhal/STM32/STM32F4xx/FSMC_SRAM/Makefile | 13 | ||||
| -rw-r--r-- | testhal/STM32/STM32F4xx/FSMC_SRAM/halconf.h | 4 | ||||
| -rw-r--r-- | testhal/STM32/STM32F4xx/FSMC_SRAM/halconf_community.h | 2 | ||||
| -rw-r--r-- | testhal/STM32/STM32F4xx/FSMC_SRAM/mcuconf.h | 8 | ||||
| -rw-r--r-- | testhal/STM32/STM32F4xx/FSMC_SRAM/mcuconf_community.h | 7 | 
10 files changed, 43 insertions, 29 deletions
| diff --git a/testhal/STM32/STM32F4xx/FSMC_SDRAM/Makefile b/testhal/STM32/STM32F4xx/FSMC_SDRAM/Makefile index c1eae62..efdd3e9 100644 --- a/testhal/STM32/STM32F4xx/FSMC_SDRAM/Makefile +++ b/testhal/STM32/STM32F4xx/FSMC_SDRAM/Makefile @@ -30,7 +30,7 @@ endif  # Enable this if you want link time optimizations (LTO)  ifeq ($(USE_LTO),) -  USE_LTO = yes +  USE_LTO = no  endif  # If enabled, this option allows to compile the application in THUMB mode. @@ -93,12 +93,13 @@ include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.m  # HAL-OSAL files (optional).  include $(CHIBIOS_CONTRIB)/os/hal/hal.mk  include $(CHIBIOS_CONTRIB)/os/hal/ports/STM32/STM32F4xx/platform.mk -include $(CHIBIOS)/os/hal/boards/ST_STM32F4_DISCOVERY/board.mk +include $(CHIBIOS)/os/hal/boards/ST_STM32F429I_DISCOVERY/board.mk  include $(CHIBIOS)/os/hal/osal/rt/osal.mk  # RTOS files (optional).  include $(CHIBIOS)/os/rt/rt.mk  include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk  # Other files (optional). +include $(CHIBIOS)/os/various/cpp_wrappers/chcpp.mk  #include $(CHIBIOS)/test/lib/test.mk  #include $(CHIBIOS)/test/rt/rt_test.mk  #include $(CHIBIOS)/test/oslib/oslib_test.mk @@ -116,11 +117,14 @@ CSRC = $(STARTUPSRC) \         $(PLATFORMSRC) \         $(BOARDSRC) \         $(TESTSRC) \ -       main.c +       main.c \ +       membench.c \ +       memcpy_dma.c  # C++ sources that can be compiled in ARM or THUMB mode depending on the global  # setting. -CPPSRC = +CPPSRC = $(CHCPPSRC) \ +         $(CHIBIOS_CONTRIB)/os/various/memtest.cpp  # C sources to be compiled in ARM mode regardless of the global setting.  # NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler @@ -149,6 +153,7 @@ ASMXSRC = $(STARTUPASM) $(PORTASM) $(OSALASM)  INCDIR = $(CHIBIOS)/os/license \           $(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \           $(HALINC) $(PLATFORMINC) $(BOARDINC) $(TESTINC) \ +         $(CHIBIOS)/os/various/cpp_wrappers \           $(CHIBIOS_CONTRIB)/os/various  # diff --git a/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf.h b/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf.h index 95e89c1..18a6ec7 100644 --- a/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf.h +++ b/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf.h @@ -160,14 +160,14 @@   * @brief   Enables the SPI subsystem.   */  #if !defined(HAL_USE_SPI) || defined(__DOXYGEN__) -#define HAL_USE_SPI                 FALSE +#define HAL_USE_SPI                 TRUE  #endif  /**   * @brief   Enables the UART subsystem.   */  #if !defined(HAL_USE_UART) || defined(__DOXYGEN__) -#define HAL_USE_UART                FALSE +#define HAL_USE_UART                TRUE  #endif  /** diff --git a/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h b/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h index 631bb9f..da9c607 100644 --- a/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h +++ b/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h @@ -28,7 +28,7 @@   * @brief   Enables the FSMC subsystem.
   */
  #if !defined(HAL_USE_FSMC) || defined(__DOXYGEN__)
 -#define HAL_USE_FSMC                FALSE
 +#define HAL_USE_FSMC                TRUE
  #endif
  /**
 diff --git a/testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf.h b/testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf.h index 25c1357..1948492 100644 --- a/testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf.h +++ b/testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf.h @@ -87,12 +87,12 @@   */  #define STM32_ADC_ADCPRE                    ADC_CCR_ADCPRE_DIV4  #define STM32_ADC_USE_ADC1                  TRUE -#define STM32_ADC_USE_ADC2                  TRUE -#define STM32_ADC_USE_ADC3                  TRUE +#define STM32_ADC_USE_ADC2                  FALSE +#define STM32_ADC_USE_ADC3                  FALSE  #define STM32_ADC_ADC1_DMA_STREAM           STM32_DMA_STREAM_ID(2, 4)  #define STM32_ADC_ADC2_DMA_STREAM           STM32_DMA_STREAM_ID(2, 2)  #define STM32_ADC_ADC3_DMA_STREAM           STM32_DMA_STREAM_ID(2, 1) -#define STM32_ADC_ADC1_DMA_PRIORITY         2 +#define STM32_ADC_ADC1_DMA_PRIORITY         3  #define STM32_ADC_ADC2_DMA_PRIORITY         2  #define STM32_ADC_ADC3_DMA_PRIORITY         2  #define STM32_ADC_IRQ_PRIORITY              6 @@ -252,7 +252,7 @@  #define STM32_SERIAL_USE_USART3             FALSE  #define STM32_SERIAL_USE_UART4              FALSE  #define STM32_SERIAL_USE_UART5              FALSE -#define STM32_SERIAL_USE_USART6             FALSE +#define STM32_SERIAL_USE_USART6             TRUE  #define STM32_SERIAL_USART1_PRIORITY        12  #define STM32_SERIAL_USART2_PRIORITY        12  #define STM32_SERIAL_USART3_PRIORITY        12 @@ -263,7 +263,7 @@  /*   * SPI driver system settings.   */ -#define STM32_SPI_USE_SPI1                  FALSE +#define STM32_SPI_USE_SPI1                  TRUE  #define STM32_SPI_USE_SPI2                  FALSE  #define STM32_SPI_USE_SPI3                  FALSE  #define STM32_SPI_SPI1_RX_DMA_STREAM        STM32_DMA_STREAM_ID(2, 0) @@ -294,7 +294,7 @@  #define STM32_UART_USE_USART3               FALSE  #define STM32_UART_USE_UART4                FALSE  #define STM32_UART_USE_UART5                FALSE -#define STM32_UART_USE_USART6               FALSE +#define STM32_UART_USE_USART6               TRUE  #define STM32_UART_USART1_RX_DMA_STREAM     STM32_DMA_STREAM_ID(2, 5)  #define STM32_UART_USART1_TX_DMA_STREAM     STM32_DMA_STREAM_ID(2, 7)  #define STM32_UART_USART2_RX_DMA_STREAM     STM32_DMA_STREAM_ID(1, 5) diff --git a/testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf_community.h b/testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf_community.h index cf6a1ce..2b0e91a 100644 --- a/testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf_community.h +++ b/testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf_community.h @@ -17,8 +17,9 @@  /*   * FSMC driver system settings.   */ -#define STM32_FSMC_USE_FSMC1                FALSE +#define STM32_FSMC_USE_FSMC1                TRUE  #define STM32_FSMC_FSMC1_IRQ_PRIORITY       10 +#define STM32_FSMC_DMA_CHN                  0x03010201  /*   * FSMC NAND driver system settings. @@ -42,7 +43,9 @@  /*   * FSMC SDRAM driver system settings.   */ -#define STM32_USE_FSMC_SDRAM                FALSE +#define STM32_USE_FSMC_SDRAM                TRUE +#define STM32_SDRAM_USE_FSMC_SDRAM1         FALSE +#define STM32_SDRAM_USE_FSMC_SDRAM2         TRUE  /*   * TIMCAP driver system settings. diff --git a/testhal/STM32/STM32F4xx/FSMC_SRAM/Makefile b/testhal/STM32/STM32F4xx/FSMC_SRAM/Makefile index c1eae62..28e3d68 100644 --- a/testhal/STM32/STM32F4xx/FSMC_SRAM/Makefile +++ b/testhal/STM32/STM32F4xx/FSMC_SRAM/Makefile @@ -30,7 +30,7 @@ endif  # Enable this if you want link time optimizations (LTO)  ifeq ($(USE_LTO),) -  USE_LTO = yes +  USE_LTO = no  endif  # If enabled, this option allows to compile the application in THUMB mode. @@ -93,12 +93,13 @@ include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.m  # HAL-OSAL files (optional).  include $(CHIBIOS_CONTRIB)/os/hal/hal.mk  include $(CHIBIOS_CONTRIB)/os/hal/ports/STM32/STM32F4xx/platform.mk -include $(CHIBIOS)/os/hal/boards/ST_STM32F4_DISCOVERY/board.mk +include $(CHIBIOS_CONTRIB)/os/hal/boards/NONSTANDARD_STM32F4_BARTHESS2/board.mk  include $(CHIBIOS)/os/hal/osal/rt/osal.mk  # RTOS files (optional).  include $(CHIBIOS)/os/rt/rt.mk  include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk  # Other files (optional). +include $(CHIBIOS)/os/various/cpp_wrappers/chcpp.mk  #include $(CHIBIOS)/test/lib/test.mk  #include $(CHIBIOS)/test/rt/rt_test.mk  #include $(CHIBIOS)/test/oslib/oslib_test.mk @@ -116,11 +117,14 @@ CSRC = $(STARTUPSRC) \         $(PLATFORMSRC) \         $(BOARDSRC) \         $(TESTSRC) \ -       main.c +       main.c \ +       membench.c \ +       memcpy_dma.c  # C++ sources that can be compiled in ARM or THUMB mode depending on the global  # setting. -CPPSRC = +CPPSRC = $(CHCPPSRC) \ +         $(CHIBIOS_CONTRIB)/os/various/memtest.cpp  # C sources to be compiled in ARM mode regardless of the global setting.  # NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler @@ -149,6 +153,7 @@ ASMXSRC = $(STARTUPASM) $(PORTASM) $(OSALASM)  INCDIR = $(CHIBIOS)/os/license \           $(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \           $(HALINC) $(PLATFORMINC) $(BOARDINC) $(TESTINC) \ +         $(CHIBIOS)/os/various/cpp_wrappers \           $(CHIBIOS_CONTRIB)/os/various  # diff --git a/testhal/STM32/STM32F4xx/FSMC_SRAM/halconf.h b/testhal/STM32/STM32F4xx/FSMC_SRAM/halconf.h index 95e89c1..18a6ec7 100644 --- a/testhal/STM32/STM32F4xx/FSMC_SRAM/halconf.h +++ b/testhal/STM32/STM32F4xx/FSMC_SRAM/halconf.h @@ -160,14 +160,14 @@   * @brief   Enables the SPI subsystem.   */  #if !defined(HAL_USE_SPI) || defined(__DOXYGEN__) -#define HAL_USE_SPI                 FALSE +#define HAL_USE_SPI                 TRUE  #endif  /**   * @brief   Enables the UART subsystem.   */  #if !defined(HAL_USE_UART) || defined(__DOXYGEN__) -#define HAL_USE_UART                FALSE +#define HAL_USE_UART                TRUE  #endif  /** diff --git a/testhal/STM32/STM32F4xx/FSMC_SRAM/halconf_community.h b/testhal/STM32/STM32F4xx/FSMC_SRAM/halconf_community.h index 631bb9f..da9c607 100644 --- a/testhal/STM32/STM32F4xx/FSMC_SRAM/halconf_community.h +++ b/testhal/STM32/STM32F4xx/FSMC_SRAM/halconf_community.h @@ -28,7 +28,7 @@   * @brief   Enables the FSMC subsystem.
   */
  #if !defined(HAL_USE_FSMC) || defined(__DOXYGEN__)
 -#define HAL_USE_FSMC                FALSE
 +#define HAL_USE_FSMC                TRUE
  #endif
  /**
 diff --git a/testhal/STM32/STM32F4xx/FSMC_SRAM/mcuconf.h b/testhal/STM32/STM32F4xx/FSMC_SRAM/mcuconf.h index 25c1357..14f1daf 100644 --- a/testhal/STM32/STM32F4xx/FSMC_SRAM/mcuconf.h +++ b/testhal/STM32/STM32F4xx/FSMC_SRAM/mcuconf.h @@ -44,7 +44,7 @@  #define STM32_CLOCK48_REQUIRED              TRUE  #define STM32_SW                            STM32_SW_PLL  #define STM32_PLLSRC                        STM32_PLLSRC_HSE -#define STM32_PLLM_VALUE                    8 +#define STM32_PLLM_VALUE                    12  #define STM32_PLLN_VALUE                    336  #define STM32_PLLP_VALUE                    2  #define STM32_PLLQ_VALUE                    7 @@ -252,7 +252,7 @@  #define STM32_SERIAL_USE_USART3             FALSE  #define STM32_SERIAL_USE_UART4              FALSE  #define STM32_SERIAL_USE_UART5              FALSE -#define STM32_SERIAL_USE_USART6             FALSE +#define STM32_SERIAL_USE_USART6             TRUE  #define STM32_SERIAL_USART1_PRIORITY        12  #define STM32_SERIAL_USART2_PRIORITY        12  #define STM32_SERIAL_USART3_PRIORITY        12 @@ -263,7 +263,7 @@  /*   * SPI driver system settings.   */ -#define STM32_SPI_USE_SPI1                  FALSE +#define STM32_SPI_USE_SPI1                  TRUE  #define STM32_SPI_USE_SPI2                  FALSE  #define STM32_SPI_USE_SPI3                  FALSE  #define STM32_SPI_SPI1_RX_DMA_STREAM        STM32_DMA_STREAM_ID(2, 0) @@ -294,7 +294,7 @@  #define STM32_UART_USE_USART3               FALSE  #define STM32_UART_USE_UART4                FALSE  #define STM32_UART_USE_UART5                FALSE -#define STM32_UART_USE_USART6               FALSE +#define STM32_UART_USE_USART6               TRUE  #define STM32_UART_USART1_RX_DMA_STREAM     STM32_DMA_STREAM_ID(2, 5)  #define STM32_UART_USART1_TX_DMA_STREAM     STM32_DMA_STREAM_ID(2, 7)  #define STM32_UART_USART2_RX_DMA_STREAM     STM32_DMA_STREAM_ID(1, 5) diff --git a/testhal/STM32/STM32F4xx/FSMC_SRAM/mcuconf_community.h b/testhal/STM32/STM32F4xx/FSMC_SRAM/mcuconf_community.h index cf6a1ce..caf079b 100644 --- a/testhal/STM32/STM32F4xx/FSMC_SRAM/mcuconf_community.h +++ b/testhal/STM32/STM32F4xx/FSMC_SRAM/mcuconf_community.h @@ -17,8 +17,9 @@  /*   * FSMC driver system settings.   */ -#define STM32_FSMC_USE_FSMC1                FALSE +#define STM32_FSMC_USE_FSMC1                TRUE  #define STM32_FSMC_FSMC1_IRQ_PRIORITY       10 +#define STM32_FSMC_DMA_CHN                  0x03010201  /*   * FSMC NAND driver system settings. @@ -33,11 +34,11 @@  /*   * FSMC SRAM driver system settings.   */ -#define STM32_USE_FSMC_SRAM                 FALSE +#define STM32_USE_FSMC_SRAM                 TRUE  #define STM32_SRAM_USE_FSMC_SRAM1           FALSE  #define STM32_SRAM_USE_FSMC_SRAM2           FALSE  #define STM32_SRAM_USE_FSMC_SRAM3           FALSE -#define STM32_SRAM_USE_FSMC_SRAM4           FALSE +#define STM32_SRAM_USE_FSMC_SRAM4           TRUE  /*   * FSMC SDRAM driver system settings. | 
