projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add script reading bootloader flags
[pub/lufa.git]
/
LUFA
/
Drivers
/
Peripheral
/
XMEGA
/
SerialSPI_XMEGA.h
diff --git
a/LUFA/Drivers/Peripheral/XMEGA/SerialSPI_XMEGA.h
b/LUFA/Drivers/Peripheral/XMEGA/SerialSPI_XMEGA.h
index
38b682c
..
cb86a99
100644
(file)
--- a/
LUFA/Drivers/Peripheral/XMEGA/SerialSPI_XMEGA.h
+++ b/
LUFA/Drivers/Peripheral/XMEGA/SerialSPI_XMEGA.h
@@
-1,13
+1,13
@@
/*
LUFA Library
/*
LUFA Library
- Copyright (C) Dean Camera, 20
13
.
+ Copyright (C) Dean Camera, 20
21
.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
- Copyright 20
13
Dean Camera (dean [at] fourwalledcubicle [dot] com)
+ Copyright 20
21
Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
@@
-40,13
+40,13
@@
/** \ingroup Group_SerialSPI
* \defgroup Group_SerialSPI_XMEGA Master SPI Mode Serial USART Peripheral Driver (XMEGA)
*
/** \ingroup Group_SerialSPI
* \defgroup Group_SerialSPI_XMEGA Master SPI Mode Serial USART Peripheral Driver (XMEGA)
*
- * \section Sec_ModDescription Module Description
+ * \section Sec_
SerialSPI_XMEGA_
ModDescription Module Description
* On-chip serial USART driver for the XMEGA AVR microcontrollers.
*
* \note This file should not be included directly. It is automatically included as needed by the ADC driver
* dispatch header located in LUFA/Drivers/Peripheral/SerialSPI.h.
*
* On-chip serial USART driver for the XMEGA AVR microcontrollers.
*
* \note This file should not be included directly. It is automatically included as needed by the ADC driver
* dispatch header located in LUFA/Drivers/Peripheral/SerialSPI.h.
*
- * \section Sec_ExampleUsage Example Usage
+ * \section Sec_
SerialSPI_XMEGA_
ExampleUsage Example Usage
* The following snippet is an example of how this module may be used within a typical
* application.
*
* The following snippet is an example of how this module may be used within a typical
* application.
*
@@
-97,28
+97,28
@@
/* Public Interface - May be used in end-application: */
/* Macros: */
/** \name SPI SCK Polarity Configuration Masks */
/* Public Interface - May be used in end-application: */
/* Macros: */
/** \name SPI SCK Polarity Configuration Masks */
- /
/@{
+ /
**@{*/
/** SPI clock polarity mask for \ref SerialSPI_Init(). Indicates that the SCK should lead on the rising edge. */
#define USART_SPI_SCK_LEAD_RISING 0
/** SPI clock polarity mask for \ref SerialSPI_Init(). Indicates that the SCK should lead on the rising edge. */
#define USART_SPI_SCK_LEAD_RISING 0
- /
/@}
+ /
**@}*/
/** \name SPI Sample Edge Configuration Masks */
/** \name SPI Sample Edge Configuration Masks */
- /
/@{
+ /
**@{*/
/** SPI data sample mode mask for \ref SerialSPI_Init(). Indicates that the data should sampled on the leading edge. */
#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. */
/** SPI data sample mode mask for \ref SerialSPI_Init(). Indicates that the data should sampled on the leading edge. */
#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 */
/** \name SPI Data Ordering Configuration Masks */
- /
/@{
+ /
**@{*/
/** SPI data order mask for \ref SerialSPI_Init(). Indicates that data should be shifted out MSB first. */
#define USART_SPI_ORDER_MSB_FIRST 0
/** SPI data order mask for \ref SerialSPI_Init(). Indicates that data should be shifted out LSB first. */
/** SPI data order mask for \ref SerialSPI_Init(). Indicates that data should be shifted out MSB first. */
#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: */
/** Initialize the USART module in Master SPI mode.
/* Inline Functions: */
/** Initialize the USART module in Master SPI mode.
@@
-181,7
+181,7
@@
* \param[in] DataByte Byte to send through the USART SPI interface.
*/
static inline void SerialSPI_SendByte(USART_t* const USART,
* \param[in] DataByte Byte to send through the USART SPI interface.
*/
static inline void SerialSPI_SendByte(USART_t* const USART,
- const uint8_t DataByte) ATTR_ALWAYS_INLINE ATTR_NON_NULL_PTR_ARG(1)
+ const uint8_t DataByte) ATTR_ALWAYS_INLINE ATTR_NON_NULL_PTR_ARG(1)
;
static inline void SerialSPI_SendByte(USART_t* const USART,
const uint8_t DataByte)
{
static inline void SerialSPI_SendByte(USART_t* const USART,
const uint8_t DataByte)
{