diff options
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. */
|