File tree 1 file changed +0
-9
lines changed
1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 28
28
29
29
// This defines are not representing the real Divider of the ESP8266
30
30
// the Defines match to an AVR Arduino on 16MHz for better compatibility
31
- #if F_CPU == 80000000L
32
31
#define SPI_CLOCK_DIV2 0x00101001 // 8 MHz
33
32
#define SPI_CLOCK_DIV4 0x00241001 // 4 MHz
34
33
#define SPI_CLOCK_DIV8 0x004c1001 // 2 MHz
35
34
#define SPI_CLOCK_DIV16 0x009c1001 // 1 MHz
36
35
#define SPI_CLOCK_DIV32 0x013c1001 // 500 KHz
37
36
#define SPI_CLOCK_DIV64 0x027c1001 // 250 KHz
38
37
#define SPI_CLOCK_DIV128 0x04fc1001 // 125 KHz
39
- #else
40
- #define SPI_CLOCK_DIV2 0x00241001 // 8 MHz
41
- #define SPI_CLOCK_DIV4 0x004c1001 // 4 MHz
42
- #define SPI_CLOCK_DIV8 0x009c1001 // 2 MHz
43
- #define SPI_CLOCK_DIV16 0x013c1001 // 1 MHz
44
- #define SPI_CLOCK_DIV32 0x027c1001 // 500 KHz
45
- #define SPI_CLOCK_DIV64 0x04fc1001 // 250 KHz
46
- #endif
47
38
48
39
const uint8_t SPI_MODE0 = 0x00 ; // /< CPOL: 0 CPHA: 0
49
40
const uint8_t SPI_MODE1 = 0x01 ; // /< CPOL: 0 CPHA: 1
You can’t perform that action at this time.
0 commit comments