This website works better with JavaScript.
Home
Explore
Help
Sign In
visus
/
teensy-cores
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Use IRQ_PRIORITY (not hard-coded number) in Serial3
main
PaulStoffregen
10 years ago
parent
486b200f22
commit
f2cecda077
1 changed files
with
1 additions
and
1 deletions
Split View
Show Diff Stats
+1
-1
teensy3/serial3.c
+ 1
- 1
teensy3/serial3.c
View File
@@ -95,7 +95,7 @@ void serial3_begin(uint32_t divisor)
UART2_C1 = 0;
UART2_PFIFO = 0;
UART2_C2 = C2_TX_INACTIVE;
NVIC_SET_PRIORITY(IRQ_UART2_STATUS,
64
);
NVIC_SET_PRIORITY(IRQ_UART2_STATUS,
IRQ_PRIORITY
);
NVIC_ENABLE_IRQ(IRQ_UART2_STATUS);
}
Write
Preview
Loading…
Cancel
Save