@@ -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(); |