瀏覽代碼

SPIFIFO is deprecated

teensy4-core
PaulStoffregen 6 年之前
父節點
當前提交
c01f2292c8
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      teensy3/SPIFIFO.h

+ 3
- 1
teensy3/SPIFIFO.h 查看文件

@@ -35,6 +35,8 @@

#ifdef KINETISK

// The preferred way to set SPI speed is with SPI.beginTransaction()

#if F_BUS == 120000000
#define HAS_SPIFIFO
#define SPI_CLOCK_24MHz (SPI_CTAR_PBR(3) | SPI_CTAR_BR(0) | SPI_CTAR_DBR) //(120 / 5) * ((1+1)/2)
@@ -226,7 +228,7 @@ for $i (2, 3, 5, 7) {
class SPIFIFOclass
{
public:
inline void begin(uint8_t pin, uint32_t speed, uint32_t mode=SPI_MODE0) __attribute__((always_inline)) {
inline void begin(uint8_t pin, uint32_t speed, uint32_t mode=SPI_MODE0) __attribute__((always_inline, deprecated)) {
uint32_t p, ctar = speed;
SIM_SCGC6 |= SIM_SCGC6_SPI0;


Loading…
取消
儲存