Browse Source

Merge pull request #241 from tni/DMAChannel

Fix for GCC generating bad code for DMAChannel TCD access when it can…
teensy4-core
Paul Stoffregen 7 years ago
parent
commit
3fd4dd7773
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      teensy3/DMAChannel.h

+ 2
- 2
teensy3/DMAChannel.h View File



class DMABaseClass { class DMABaseClass {
public: public:
typedef struct __attribute__((packed)) {
typedef struct __attribute__((packed, aligned(4))) {
volatile const void * volatile SADDR; volatile const void * volatile SADDR;
int16_t SOFF; int16_t SOFF;
union { uint16_t ATTR; union { uint16_t ATTR;


class DMABaseClass { class DMABaseClass {
public: public:
typedef struct __attribute__((packed)) {
typedef struct __attribute__((packed, aligned(4))) {
volatile const void * volatile SAR; volatile const void * volatile SAR;
volatile void * volatile DAR; volatile void * volatile DAR;
volatile uint32_t DSR_BCR; volatile uint32_t DSR_BCR;

Loading…
Cancel
Save