Parcourir la source

Add DMAChannel no initial allocation option

main
PaulStoffregen il y a 10 ans
Parent
révision
a522ef88b0
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. +4
    -0
      teensy3/DMAChannel.h

+ 4
- 0
teensy3/DMAChannel.h Voir le fichier

#ifdef __cplusplus #ifdef __cplusplus


#define DMACHANNEL_HAS_BEGIN #define DMACHANNEL_HAS_BEGIN
#define DMACHANNEL_HAS_BOOLEAN_CTOR


class DMABaseClass { class DMABaseClass {
public: public:
begin(); begin();
copy_tcd(TCD, c.TCD); copy_tcd(TCD, c.TCD);
} }
DMAChannel(bool allocate) {
if (allocate) begin();
}
DMAChannel & operator = (const DMAChannel &rhs) { DMAChannel & operator = (const DMAChannel &rhs) {
if (channel != rhs.channel) { if (channel != rhs.channel) {
release(); release();

Chargement…
Annuler
Enregistrer