瀏覽代碼

T3.5/6 - Has PCS5

As per liljaywalker member

Teensy 3.5/6 on Pin 45 have PCS5,
which the current Macro
SPI-PUSHR_PCS(n) will not work with.
teensy4-core
Kurt Eckhardt 7 年之前
父節點
當前提交
8ce0b58c33
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      teensy3/kinetis.h

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

@@ -4414,7 +4414,7 @@ typedef struct {
#define SPI_PUSHR_CTAS(n) (((n) & 7) << 28) //
#define SPI_PUSHR_EOQ ((uint32_t)0x08000000) //
#define SPI_PUSHR_CTCNT ((uint32_t)0x04000000) //
#define SPI_PUSHR_PCS(n) (((n) & 31) << 16) //
#define SPI_PUSHR_PCS(n) (((n) & 0x3f) << 16) //
#define SPI0_PUSHR_SLAVE (KINETISK_SPI0.PUSHR) // DSPI PUSH TX FIFO Register In Slave Mode
#define SPI0_POPR (KINETISK_SPI0.POPR) // DSPI POP RX FIFO Register
#define SPI0_TXFR0 (KINETISK_SPI0.TXFR[0]) // DSPI Transmit FIFO Registers

Loading…
取消
儲存