Fixed software PDI/TPI programming mode in the AVRISP project not correctly toggling...
[pub/USBasp.git] / LUFA / Drivers / Peripheral / SPI.h
1 /*
2 LUFA Library
3 Copyright (C) Dean Camera, 2010.
4
5 dean [at] fourwalledcubicle [dot] com
6 www.fourwalledcubicle.com
7 */
8
9 /*
10 Copyright 2010 Dean Camera (dean [at] fourwalledcubicle [dot] com)
11
12 Permission to use, copy, modify, distribute, and sell this
13 software and its documentation for any purpose is hereby granted
14 without fee, provided that the above copyright notice appear in
15 all copies and that both that the copyright notice and this
16 permission notice and warranty disclaimer appear in supporting
17 documentation, and that the name of the author not be used in
18 advertising or publicity pertaining to distribution of the
19 software without specific, written prior permission.
20
21 The author disclaim all warranties with regard to this
22 software, including all implied warranties of merchantability
23 and fitness. In no event shall the author be liable for any
24 special, indirect or consequential damages or any damages
25 whatsoever resulting from loss of use, data or profits, whether
26 in an action of contract, negligence or other tortious action,
27 arising out of or in connection with the use or performance of
28 this software.
29 */
30
31 /** \file
32 *
33 * This file is the master dispatch header file for the device-specific SPI driver, for AVRs containing a SPI.
34 *
35 * User code should include this file, which will in turn include the correct SPI driver header file for the
36 * currently selected AVR model.
37 */
38
39 /** \ingroup Group_PeripheralDrivers
40 * @defgroup Group_SPI SPI Driver - LUFA/Drivers/Peripheral/SPI.h
41 *
42 * \section Sec_Dependencies Module Source Dependencies
43 * The following files must be built with any user project that uses this module:
44 * - None
45 *
46 * \section Module Description
47 * Driver for the hardware SPI port available on most AVR models. This module provides
48 * an easy to use driver for the setup of and transfer of data over the AVR's SPI port.
49 *
50 * @{
51 */
52
53 #ifndef __SPI_H__
54 #define __SPI_H__
55
56 /* Macros: */
57 #if !defined(__DOXYGEN__)
58 #define __INCLUDE_FROM_SPI_H
59 #endif
60
61 /* Includes: */
62 #if defined(__AVR32__)
63 #include "AVR32/SPI.h"
64 #else
65 #include "AVR8/SPI.h"
66 #endif
67
68 #endif
69
70 /** @} */