浏览代码

nbytes transfer count when minor loop enabled is 10 bits not 5

main
concreteboot 8 年前
父节点
当前提交
1ec34883ca
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      teensy3/kinetis.h

+ 1
- 1
teensy3/kinetis.h 查看文件

@@ -1976,7 +1976,7 @@ enum IRQ_NUMBER_t {
#define DMA_TCD_NBYTES_SMLOE ((uint32_t)1<<31) // Source Minor Loop Offset Enable
#define DMA_TCD_NBYTES_DMLOE ((uint32_t)1<<30) // Destination Minor Loop Offset Enable
#define DMA_TCD_NBYTES_MLOFFNO_NBYTES(n) ((uint32_t)((n) & 0x3FFFFFFF)) // NBytes transfer count when minor loop disabled
#define DMA_TCD_NBYTES_MLOFFYES_NBYTES(n) ((uint32_t)((n) & 0x1F)) // NBytes transfer count when minor loop enabled
#define DMA_TCD_NBYTES_MLOFFYES_NBYTES(n) ((uint32_t)((n) & 0x3FF)) // NBytes transfer count when minor loop enabled
#define DMA_TCD_NBYTES_MLOFFYES_MLOFF(n) ((uint32_t)((n) & 0xFFFFF)<<10) // Minor loop offset

#if DMA_NUM_CHANNELS >= 4

正在加载...
取消
保存