mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 00:48:19 +01:00
Align SPI data rates in C++ code with Python (#5284)
This commit is contained in:
parent
c47c1a7867
commit
bfdcfa4766
2 changed files with 3 additions and 0 deletions
|
@ -23,7 +23,9 @@ SPI_DATA_RATE_OPTIONS = {
|
||||||
40e6: SPIDataRate.DATA_RATE_40MHZ,
|
40e6: SPIDataRate.DATA_RATE_40MHZ,
|
||||||
20e6: SPIDataRate.DATA_RATE_20MHZ,
|
20e6: SPIDataRate.DATA_RATE_20MHZ,
|
||||||
10e6: SPIDataRate.DATA_RATE_10MHZ,
|
10e6: SPIDataRate.DATA_RATE_10MHZ,
|
||||||
|
8e6: SPIDataRate.DATA_RATE_8MHZ,
|
||||||
5e6: SPIDataRate.DATA_RATE_5MHZ,
|
5e6: SPIDataRate.DATA_RATE_5MHZ,
|
||||||
|
4e6: SPIDataRate.DATA_RATE_4MHZ,
|
||||||
2e6: SPIDataRate.DATA_RATE_2MHZ,
|
2e6: SPIDataRate.DATA_RATE_2MHZ,
|
||||||
1e6: SPIDataRate.DATA_RATE_1MHZ,
|
1e6: SPIDataRate.DATA_RATE_1MHZ,
|
||||||
2e5: SPIDataRate.DATA_RATE_200KHZ,
|
2e5: SPIDataRate.DATA_RATE_200KHZ,
|
||||||
|
|
|
@ -63,6 +63,7 @@ enum SPIDataRate : uint32_t {
|
||||||
DATA_RATE_1MHZ = 1000000,
|
DATA_RATE_1MHZ = 1000000,
|
||||||
DATA_RATE_2MHZ = 2000000,
|
DATA_RATE_2MHZ = 2000000,
|
||||||
DATA_RATE_4MHZ = 4000000,
|
DATA_RATE_4MHZ = 4000000,
|
||||||
|
DATA_RATE_5MHZ = 5000000,
|
||||||
DATA_RATE_8MHZ = 8000000,
|
DATA_RATE_8MHZ = 8000000,
|
||||||
DATA_RATE_10MHZ = 10000000,
|
DATA_RATE_10MHZ = 10000000,
|
||||||
DATA_RATE_20MHZ = 20000000,
|
DATA_RATE_20MHZ = 20000000,
|
||||||
|
|
Loading…
Reference in a new issue