Align SPI data rates in C++ code with Python (#5284)

This commit is contained in:
Clyde Stubbs 2023-08-21 06:57:02 +10:00 committed by Jesse Hills
parent e600784ebf
commit 02a71cb6a7
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A
2 changed files with 3 additions and 0 deletions

View File

@ -23,7 +23,9 @@ SPI_DATA_RATE_OPTIONS = {
40e6: SPIDataRate.DATA_RATE_40MHZ,
20e6: SPIDataRate.DATA_RATE_20MHZ,
10e6: SPIDataRate.DATA_RATE_10MHZ,
8e6: SPIDataRate.DATA_RATE_8MHZ,
5e6: SPIDataRate.DATA_RATE_5MHZ,
4e6: SPIDataRate.DATA_RATE_4MHZ,
2e6: SPIDataRate.DATA_RATE_2MHZ,
1e6: SPIDataRate.DATA_RATE_1MHZ,
2e5: SPIDataRate.DATA_RATE_200KHZ,

View File

@ -63,6 +63,7 @@ enum SPIDataRate : uint32_t {
DATA_RATE_1MHZ = 1000000,
DATA_RATE_2MHZ = 2000000,
DATA_RATE_4MHZ = 4000000,
DATA_RATE_5MHZ = 5000000,
DATA_RATE_8MHZ = 8000000,
DATA_RATE_10MHZ = 10000000,
DATA_RATE_20MHZ = 20000000,