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 for F4
3 *
4 * @date Jul 27, 2014
5 * @author Andrey Belomutskiy, (c) 2012-2020
6 */
7
8#pragma once
9
10#define MCU_SERIAL_NUMBER_LOCATION (uint8_t*)(0x1FFF7A10)
11
12#define SPI_CR1_8BIT_MODE 0
13#define SPI_CR2_8BIT_MODE 0
14
15#define SPI_CR1_16BIT_MODE SPI_CR1_DFF
16#define SPI_CR2_16BIT_MODE 0
17
18// TODO
19#define SPI_CR1_24BIT_MODE 0
20#define SPI_CR2_24BIT_MODE 0
21
22#define ADC_MAX_VALUE 4095