浏览代码

Merge pull request #241 from tni/DMAChannel

Fix for GCC generating bad code for DMAChannel TCD access when it can…
main
Paul Stoffregen 7 年前
父节点
当前提交
3fd4dd7773
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      teensy3/DMAChannel.h

+ 2
- 2
teensy3/DMAChannel.h 查看文件

@@ -41,7 +41,7 @@ extern uint16_t dma_channel_allocated_mask;

class DMABaseClass {
public:
typedef struct __attribute__((packed)) {
typedef struct __attribute__((packed, aligned(4))) {
volatile const void * volatile SADDR;
int16_t SOFF;
union { uint16_t ATTR;
@@ -589,7 +589,7 @@ void DMAPriorityOrder(DMAChannel &ch1, DMAChannel &ch2, DMAChannel &ch3, DMAChan

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

正在加载...
取消
保存