diff options
-rw-r--r-- | serial2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/serial2.cpp b/serial2.cpp index c01aa13..d53b254 100644 --- a/serial2.cpp +++ b/serial2.cpp @@ -91,10 +91,10 @@ int main() { NVIC_PriorityGroupConfig(NVIC_PriorityGroup_0); NVIC_InitTypeDef NVIC_InitStruct = { - /*.NVIC_IRQChannel =*/ USART1_IRQn, - /*.NVIC_IRQChannelPreemptionPriority =*/ 0, - /*.NVIC_IRQChannel =*/ 0, - /*.NVIC_IRQChannelCmd =*/ ENABLE, + NVIC_IRQChannel: USART1_IRQn, + NVIC_IRQChannelPreemptionPriority: 0, + NVIC_IRQChannelSubPriority: 0, + NVIC_IRQChannelCmd: ENABLE, }; NVIC_Init(&NVIC_InitStruct); NVIC_EnableIRQ(USART1_IRQn); |