From f7b9ebea02cf2a48fd4b287f6a445090ea433d52 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Wed, 12 Jun 2013 19:51:57 +0200 Subject: Update board Dataflash_Init() functions to automatically configure the appropriate communication interface. --- LUFA/Drivers/Peripheral/XMEGA/SerialSPI_XMEGA.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LUFA/Drivers/Peripheral') diff --git a/LUFA/Drivers/Peripheral/XMEGA/SerialSPI_XMEGA.h b/LUFA/Drivers/Peripheral/XMEGA/SerialSPI_XMEGA.h index 7f5226b05..caae55a82 100644 --- a/LUFA/Drivers/Peripheral/XMEGA/SerialSPI_XMEGA.h +++ b/LUFA/Drivers/Peripheral/XMEGA/SerialSPI_XMEGA.h @@ -108,7 +108,7 @@ #define USART_SPI_SAMPLE_LEADING 0 /** SPI data sample mode mask for \ref SerialSPI_Init(). Indicates that the data should be sampled on the trailing edge. */ - #define USART_SPI_SAMPLE_TRAILING USART_UPCHA_bm + #define USART_SPI_SAMPLE_TRAILING (1 << 1) //@} /** \name SPI Data Ordering Configuration Masks */ @@ -117,7 +117,7 @@ #define USART_SPI_ORDER_MSB_FIRST 0 /** SPI data order mask for \ref SerialSPI_Init(). Indicates that data should be shifted out LSB first. */ - #define USART_SPI_ORDER_LSB_FIRST USART_UDORD_bm + #define USART_SPI_ORDER_LSB_FIRST (1 << 2) //@} /* Inline Functions: */ -- cgit v1.2.3