Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SpiMode.h « SharedSpi « Hardware « src - github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a30544f6d44d4cf8be05ee87e5909dfab01569b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * SpiMode.h
 *
 *  Created on: 16 Jun 2020
 *      Author: David
 */

#ifndef SRC_HARDWARE_SHAREDSPI_SPIMODE_H_
#define SRC_HARDWARE_SHAREDSPI_SPIMODE_H_

enum class SpiMode : uint8_t
{
	mode0 = 0, mode1, mode2, mode3
};

// Definitions for backwards compatibility with RRF code
constexpr SpiMode SPI_MODE_0 = SpiMode::mode0;
constexpr SpiMode SPI_MODE_1 = SpiMode::mode1;
constexpr SpiMode SPI_MODE_2 = SpiMode::mode2;
constexpr SpiMode SPI_MODE_3 = SpiMode::mode3;

#endif /* SRC_HARDWARE_SHAREDSPI_SPIMODE_H_ */