2019-05-03 18:13:25 -07:00
|
|
|
/*
|
|
|
|
* @file mc33816.h
|
|
|
|
*
|
|
|
|
* @date May 3, 2019
|
2020-01-07 21:02:40 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2019-05-03 18:13:25 -07:00
|
|
|
*/
|
|
|
|
|
2020-02-18 05:16:19 -08:00
|
|
|
#pragma once
|
2019-05-03 18:13:25 -07:00
|
|
|
|
2020-05-19 23:35:18 -07:00
|
|
|
const int MC_CK = 6; // PLL x24 / CLK_DIV 4 = 6Mhz
|
|
|
|
|
2019-06-06 17:12:03 -07:00
|
|
|
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
|
|
|
|
};
|
|
|
|
|
2021-04-21 11:28:48 -07:00
|
|
|
void initMc33816();
|