diff options
| author | wuyangyong <[email protected]> | 2011-09-30 04:27:02 +0000 |
|---|---|---|
| committer | wuyangyong <[email protected]> | 2011-09-30 04:27:02 +0000 |
| commit | 9358c96e562d8bb1ca909b6e158a29511563dca0 (patch) | |
| tree | f9539ef821a52b6ff2bc4286a21fcafe5b4c6a3c | |
| parent | 1d2203fce05d7f7d13c0eb5bd9b96056ad7ed8d2 (diff) | |
update stm32f107 project
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1733 bbd45198-f89e-11dd-88c7-29a3b14d5316
| -rw-r--r-- | bsp/stm32f107/stm32_rom.icf | 2 | ||||
| -rw-r--r-- | bsp/stm32f107/usart.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/bsp/stm32f107/stm32_rom.icf b/bsp/stm32f107/stm32_rom.icf index bf3e6860df..7b0836047b 100644 --- a/bsp/stm32f107/stm32_rom.icf +++ b/bsp/stm32f107/stm32_rom.icf @@ -31,4 +31,4 @@ place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; place in ROM_region { readonly };
place in RAM_region { readwrite,
- block CSTACK, block HEAP };
\ No newline at end of file + block CSTACK, last block HEAP };
\ No newline at end of file diff --git a/bsp/stm32f107/usart.c b/bsp/stm32f107/usart.c index 5c7144ec87..dc6b1485c7 100644 --- a/bsp/stm32f107/usart.c +++ b/bsp/stm32f107/usart.c @@ -189,7 +189,8 @@ static void NVIC_Configuration(void) #ifdef RT_USING_UART1
/* Enable the USART1 Interrupt */
NVIC_InitStructure.NVIC_IRQChannel = USART1_IRQn;
- NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0;
+ NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 1;
+ NVIC_InitStructure.NVIC_IRQChannelSubPriority = 1;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
#endif
@@ -197,6 +198,7 @@ static void NVIC_Configuration(void) #ifdef RT_USING_UART2
/* Enable the USART2 Interrupt */
NVIC_InitStructure.NVIC_IRQChannel = USART2_IRQn;
+ NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 1;
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 1;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
@@ -205,12 +207,14 @@ static void NVIC_Configuration(void) #ifdef RT_USING_UART3
/* Enable the USART3 Interrupt */
NVIC_InitStructure.NVIC_IRQChannel = USART3_IRQn;
+ NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 1;
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 1;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
/* Enable the DMA1 Channel2 Interrupt */
NVIC_InitStructure.NVIC_IRQChannel = DMA1_Channel2_IRQn;
+ NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 1;
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 1;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
|
