aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32L4xx/IRQ_STORM
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-03-06 14:49:03 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-03-06 14:49:03 +0000
commitf5dc8303ad3452e9cff5bf569bb003dced7350e2 (patch)
tree0b065e4828c88cb95efd66dd5754dd2e252fddbc /testhal/STM32/STM32L4xx/IRQ_STORM
parent3d535a83adf8335313449d9e6d0321338b34d720 (diff)
downloadChibiOS-f5dc8303ad3452e9cff5bf569bb003dced7350e2.tar.gz
ChibiOS-f5dc8303ad3452e9cff5bf569bb003dced7350e2.tar.bz2
ChibiOS-f5dc8303ad3452e9cff5bf569bb003dced7350e2.zip
Added one more demo for STM32L4, minor fixes on STM32L4xx/IRQ_STORM
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9039 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32L4xx/IRQ_STORM')
-rw-r--r--testhal/STM32/STM32L4xx/IRQ_STORM/main.c6
-rw-r--r--testhal/STM32/STM32L4xx/IRQ_STORM/mcuconf.h2
-rw-r--r--testhal/STM32/STM32L4xx/IRQ_STORM/readme.txt5
3 files changed, 4 insertions, 9 deletions
diff --git a/testhal/STM32/STM32L4xx/IRQ_STORM/main.c b/testhal/STM32/STM32L4xx/IRQ_STORM/main.c
index 67093e06a..e7f7473ef 100644
--- a/testhal/STM32/STM32L4xx/IRQ_STORM/main.c
+++ b/testhal/STM32/STM32L4xx/IRQ_STORM/main.c
@@ -43,7 +43,7 @@ static const GPTConfig gpt3cfg = {
* IRQ Storm configuration.
*/
static const irq_storm_config_t irq_storm_config = {
- (BaseSequentialStream *)&SD1,
+ (BaseSequentialStream *)&SD2,
GPIOA,
GPIOA_LED_GREEN,
&GPTD4,
@@ -68,8 +68,8 @@ int main(void) {
halInit();
chSysInit();
- /* Prepares the Serial driver 1.*/
- sdStart(&SD1, NULL);
+ /* Prepares the Serial driver 2.*/
+ sdStart(&SD2, NULL);
palSetPadMode(GPIOA, 9, PAL_MODE_ALTERNATE(7)); /* USART1 TX. */
palSetPadMode(GPIOA, 10, PAL_MODE_ALTERNATE(7)); /* USART1 RX. */
diff --git a/testhal/STM32/STM32L4xx/IRQ_STORM/mcuconf.h b/testhal/STM32/STM32L4xx/IRQ_STORM/mcuconf.h
index f4c9d0581..1c4bd1a75 100644
--- a/testhal/STM32/STM32L4xx/IRQ_STORM/mcuconf.h
+++ b/testhal/STM32/STM32L4xx/IRQ_STORM/mcuconf.h
@@ -243,7 +243,7 @@
/*
* SERIAL driver system settings.
*/
-#define STM32_SERIAL_USE_USART1 TRUE
+#define STM32_SERIAL_USE_USART1 FALSE
#define STM32_SERIAL_USE_USART2 TRUE
#define STM32_SERIAL_USE_USART3 FALSE
#define STM32_SERIAL_USE_LPUART1 FALSE
diff --git a/testhal/STM32/STM32L4xx/IRQ_STORM/readme.txt b/testhal/STM32/STM32L4xx/IRQ_STORM/readme.txt
index cdde61df7..9db18e970 100644
--- a/testhal/STM32/STM32L4xx/IRQ_STORM/readme.txt
+++ b/testhal/STM32/STM32L4xx/IRQ_STORM/readme.txt
@@ -11,11 +11,6 @@ The demo runs on an STMicroelectronics STM32L4-Nucleo board.
The application demonstrates the use of the STM32L4xx GPT, PAL and Serial
drivers in order to implement a system stress demo.
-** Board Setup **
-
-- Connect an RS232 transceiver to pins PA9(TX) and PA10(RX).
-- Connect a terminal emulator to the transceiver (38400-N-8-1).
-
** Build Procedure **
The demo has been tested using the free Codesourcery GCC-based toolchain