Mercurial > ~darius > hgwebdir.cgi > stm32temp
comparison main.c @ 55:b21db2b47a27
Enable DMA mode by initing DMA channel and enabling IRQ handler.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Sun, 07 Apr 2013 22:34:05 +0930 |
parents | ace431a0d0f5 |
children | adc9b1555f9d |
comparison
equal
deleted
inserted
replaced
54:79c7892d07b3 | 55:b21db2b47a27 |
---|---|
393 /* Enable the USART1 Interrupt */ | 393 /* Enable the USART1 Interrupt */ |
394 NVIC_InitStructure.NVIC_IRQChannel = USART1_IRQn; | 394 NVIC_InitStructure.NVIC_IRQChannel = USART1_IRQn; |
395 NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0; | 395 NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0; |
396 NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; | 396 NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; |
397 NVIC_Init(&NVIC_InitStructure); | 397 NVIC_Init(&NVIC_InitStructure); |
398 | |
399 /* Enable the SDIO Interrupt */ | |
400 NVIC_InitStructure.NVIC_IRQChannel = SDIO_IRQn; | |
401 NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0; | |
402 NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; | |
403 NVIC_Init(&NVIC_InitStructure); | |
398 } | 404 } |
399 | 405 |