px-fwlib
0.10.0
Cross-platform embedded library and documentation for 8/16/32-bit microcontrollers
generated with
Doxygen
1.9.2
px_spi_defs.h
1
#ifndef __PX_SPI_DEFS_H__
2
#define __PX_SPI_DEFS_H__
3
/* =============================================================================
4
____ ___ ____ ___ _ _ ___ __ __ ___ __ __ TM
5
| _ \ |_ _| / ___| / _ \ | \ | | / _ \ | \/ | |_ _| \ \/ /
6
| |_) | | | | | | | | | | \| | | | | | | |\/| | | | \ /
7
| __/ | | | |___ | |_| | | |\ | | |_| | | | | | | | / \
8
|_| |___| \____| \___/ |_| \_| \___/ |_| |_| |___| /_/\_\
9
10
Copyright (c) 2012 Pieter Conradie <https://piconomix.com>
11
12
License: MIT
13
https://github.com/piconomix/px-fwlib/blob/master/LICENSE.md
14
15
Title: px_spi.h : SPI peripheral compatibility definitions
16
Author(s): Pieter Conradie
17
Creation Date: 2013-11-23
18
19
============================================================================= */
20
21
#include <avr/io.h>
22
23
#ifndef SPCR
24
#define SPCR SPCR0
25
#define SPCR SPCR0
26
#define SPR0 SPR00
27
#define SPR1 SPR10
28
#define CPHA CPHA0
29
#define CPOL CPOL0
30
#define MSTR MSTR0
31
#define DORD DORD0
32
#define SPE SPE0
33
#define SPIE SPIE0
34
35
#define SPSR SPSR0
36
#define SPI2X SPI2X0
37
#define WCOL WCOL0
38
#define SPIF SPIF0
39
40
#define SPDR SPDR0
41
#endif
42
43
#endif