Browse Source

Add DMAChannel no initial allocation option

main
PaulStoffregen 10 years ago
parent
commit
a522ef88b0
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      teensy3/DMAChannel.h

+ 4
- 0
teensy3/DMAChannel.h View File

@@ -20,6 +20,7 @@
#ifdef __cplusplus

#define DMACHANNEL_HAS_BEGIN
#define DMACHANNEL_HAS_BOOLEAN_CTOR

class DMABaseClass {
public:
@@ -381,6 +382,9 @@ public:
begin();
copy_tcd(TCD, c.TCD);
}
DMAChannel(bool allocate) {
if (allocate) begin();
}
DMAChannel & operator = (const DMAChannel &rhs) {
if (channel != rhs.channel) {
release();

Loading…
Cancel
Save