rusefi-1/firmware/hw_layer/mc33816.h

28 lines
374 B
C
Raw Normal View History

/*
* @file mc33816.h
*
* @date May 3, 2019
2020-01-07 21:02:40 -08:00
* @author Andrey Belomutskiy, (c) 2012-2020
*/
2020-02-18 05:16:19 -08:00
#pragma once
const int MC_CK = 6; // PLL x24 / CLK_DIV 4 = 6Mhz
const int MAX_SPI_MODE_A_TRANSFER_SIZE = 31; //max size for register config transfer
enum {
CODE_RAM1,
CODE_RAM2,
DATA_RAM
};
enum {
REG_MAIN,
REG_CH1,
REG_CH2,
REG_IO,
REG_DIAG
};
void initMc33816();