Bläddra i källkod

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 år sedan
förälder
incheckning
3fd4dd7773
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. +2
    -2
      teensy3/DMAChannel.h

+ 2
- 2
teensy3/DMAChannel.h Visa fil



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;

Laddar…
Avbryt
Spara