diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-12-22 16:17:04 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-12-22 16:17:04 +0100 |
commit | 47e728d34e64d2dc04736828111490dc8b0a8258 (patch) | |
tree | 1c1935348543e96b1d2f507339d5e6e072207dae | |
parent | af5b3792973e876a860dae5dc7b7f9140f0e3a24 (diff) | |
download | stm32f103-playground-47e728d34e64d2dc04736828111490dc8b0a8258.tar.gz stm32f103-playground-47e728d34e64d2dc04736828111490dc8b0a8258.tar.bz2 stm32f103-playground-47e728d34e64d2dc04736828111490dc8b0a8258.tar.xz stm32f103-playground-47e728d34e64d2dc04736828111490dc8b0a8258.zip |
o More c++ idiomatic code.
-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); |