rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
device_mpu_util.h
Go to the documentation of this file.
1/**
2 * @file device_mpu_util.h
3 *
4 * @date Feb 5, 2021
5 * @author Andrey Belomutskiy, (c) 2012-2021
6 */
7
8#pragma once
9
11
12#define MCU_SERIAL_NUMBER_LOCATION (uint8_t*)(0x1FF1E800)
13
14// todo SPI! #2284
15
16#define SPI_CFG1_8BIT_MODE (SPI_CFG1_DSIZE_2 | SPI_CFG1_DSIZE_1 | SPI_CFG1_DSIZE_0)
17#define SPI_CFG2_8BIT_MODE 0
18
19#define SPI_CFG1_16BIT_MODE (SPI_CFG1_DSISE_3 | SPI_CFG1_DSIZE_2 | SPI_CFG1_DSIZE_1 | SPI_CFG1_DSIZE_0)
20#define SPI_CFG2_16BIT_MODE 0
21
22/* 3 x 8-bit transfer */
23#define SPI_CFG1_24BIT_MODE (SPI_CFG1_DSIZE_2 | SPI_CFG1_DSIZE_1 | SPI_CFG1_DSIZE_0)
24#define SPI_CFG2_24BIT_MODE 0
25
26#define ADC_MAX_VALUE 65535
Header file of FLASH HAL module.