This website works better with JavaScript.
Home
Explore
Help
Sign In
visus
/
teensy-core-4.1
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Use DMA_NUM_CHANNELS for index if allocation fails
teensy4-core
PaulStoffregen
10 years ago
parent
8632eda964
commit
7f9688e5a3
1 changed files
with
1 additions
and
1 deletions
Split View
Show Diff Stats
+1
-1
teensy3/DMAChannel.cpp
+ 1
- 1
teensy3/DMAChannel.cpp
View File
@@ -17,7 +17,7 @@ void DMAChannel::init(void)
if (++ch >= DMA_NUM_CHANNELS) {
__enable_irq();
TCD = (TCD_t *)0;
channel =
16
;
channel =
DMA_NUM_CHANNELS
;
return; // no more channels available
// attempts to use this object will hardfault
}
Write
Preview
Loading…
Cancel
Save