From 0bf47eeddf91767a20c067003e20bc16b4a30ec3 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Thu, 29 Mar 2018 21:34:59 +0200 Subject: bsp:devices:spi.h: fix sckmode fields value --- bsp/include/sifive/devices/spi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bsp/include/sifive/devices') 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) -- cgit v1.2.3