diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-03-06 14:49:03 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-03-06 14:49:03 +0000 |
commit | f5dc8303ad3452e9cff5bf569bb003dced7350e2 (patch) | |
tree | 0b065e4828c88cb95efd66dd5754dd2e252fddbc /testhal/STM32/STM32L4xx/IRQ_STORM/main.c | |
parent | 3d535a83adf8335313449d9e6d0321338b34d720 (diff) | |
download | ChibiOS-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/main.c')
-rw-r--r-- | testhal/STM32/STM32L4xx/IRQ_STORM/main.c | 6 |
1 files changed, 3 insertions, 3 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. */
|