Skip to content

Commit d87bb1e

Browse files
John DoeJohn Doe
John Doe
authored and
John Doe
committed
spi clock does not depend on cpu clock
1 parent 6ae438b commit d87bb1e

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

libraries/SPI/SPI.h

-9
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,13 @@
2828

2929
// This defines are not representing the real Divider of the ESP8266
3030
// the Defines match to an AVR Arduino on 16MHz for better compatibility
31-
#if F_CPU == 80000000L
3231
#define SPI_CLOCK_DIV2 0x00101001 //8 MHz
3332
#define SPI_CLOCK_DIV4 0x00241001 //4 MHz
3433
#define SPI_CLOCK_DIV8 0x004c1001 //2 MHz
3534
#define SPI_CLOCK_DIV16 0x009c1001 //1 MHz
3635
#define SPI_CLOCK_DIV32 0x013c1001 //500 KHz
3736
#define SPI_CLOCK_DIV64 0x027c1001 //250 KHz
3837
#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
4738

4839
const uint8_t SPI_MODE0 = 0x00; ///< CPOL: 0 CPHA: 0
4940
const uint8_t SPI_MODE1 = 0x01; ///< CPOL: 0 CPHA: 1

0 commit comments

Comments
 (0)