Pārlūkot izejas kodu

SPIFIFO is deprecated

main
PaulStoffregen pirms 7 gadiem
vecāks
revīzija
c01f2292c8
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. +3
    -1
      teensy3/SPIFIFO.h

+ 3
- 1
teensy3/SPIFIFO.h Parādīt failu

@@ -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;


Notiek ielāde…
Atcelt
Saglabāt