diff options
author | Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> | 2018-03-29 21:34:59 +0200 |
---|---|---|
committer | Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> | 2018-03-29 21:34:59 +0200 |
commit | 0bf47eeddf91767a20c067003e20bc16b4a30ec3 (patch) | |
tree | eeb4274cf573018f1d0fd3a0bdc2771995001733 /bsp | |
parent | 43d1f8dc431def61296a02688e1a9eade9ddbaf7 (diff) |
bsp:devices:spi.h: fix sckmode fields value
Diffstat (limited to 'bsp')
-rw-r--r-- | bsp/include/sifive/devices/spi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bsp/include/sifive/devices/spi.h b/bsp/include/sifive/devices/spi.h index 916d86b..80ef345 100644 --- a/bsp/include/sifive/devices/spi.h +++ b/bsp/include/sifive/devices/spi.h @@ -30,8 +30,8 @@ /* Fields */ -#define SPI_SCK_POL 0x1 -#define SPI_SCK_PHA 0x2 +#define SPI_SCK_PHA 0x1 +#define SPI_SCK_POL 0x2 #define SPI_FMT_PROTO(x) ((x) & 0x3) #define SPI_FMT_ENDIAN(x) (((x) & 0x1) << 2) |