X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/01a80df6c2f61326e198f9dc9933df560da7379d..fbc57f965e007fc1aad346fde4eab9dc7ed49d3a:/LUFA/Drivers/Peripheral/AVR8/SPI_AVR8.h?ds=sidebyside diff --git a/LUFA/Drivers/Peripheral/AVR8/SPI_AVR8.h b/LUFA/Drivers/Peripheral/AVR8/SPI_AVR8.h index 2e396ed55..3fc681a28 100644 --- a/LUFA/Drivers/Peripheral/AVR8/SPI_AVR8.h +++ b/LUFA/Drivers/Peripheral/AVR8/SPI_AVR8.h @@ -1,13 +1,13 @@ /* LUFA Library - Copyright (C) Dean Camera, 2012. + Copyright (C) Dean Camera, 2013. dean [at] fourwalledcubicle [dot] com www.lufa-lib.org */ /* - Copyright 2012 Dean Camera (dean [at] fourwalledcubicle [dot] com) + Copyright 2013 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 @@ -18,7 +18,7 @@ advertising or publicity pertaining to distribution of the software without specific, written prior permission. - The author disclaim all warranties with regard to this + The author disclaims all warranties with regard to this software, including all implied warranties of merchantability and fitness. In no event shall the author be liable for any special, indirect or consequential damages or any damages @@ -165,6 +165,7 @@ * \param[in] SPIOptions SPI Options, a mask consisting of one of each of the \c SPI_SPEED_*, * \c SPI_SCK_*, \c SPI_SAMPLE_*, \c SPI_ORDER_* and \c SPI_MODE_* masks. */ + static inline void SPI_Init(const uint8_t SPIOptions); static inline void SPI_Init(const uint8_t SPIOptions) { /* Prevent high rise times on PB.0 (/SS) from forcing a change to SPI slave mode */ @@ -187,6 +188,7 @@ } /** Turns off the SPI driver, disabling and returning used hardware to their default configuration. */ + static inline void SPI_Disable(void); static inline void SPI_Disable(void) { DDRB &= ~((1 << 1) | (1 << 2));