rusefi-1/firmware/hw_layer/smart_gpio.h

21 lines
522 B
C
Raw Normal View History

2019-04-13 07:58:52 -07:00
/*
* @file smart_gpio.h
*
* @date Apr 13, 2019
2020-01-07 21:02:40 -08:00
* @author Andrey Belomutskiy, (c) 2012-2020
2019-04-13 07:58:52 -07:00
*/
#ifndef HW_LAYER_SMART_GPIO_H_
#define HW_LAYER_SMART_GPIO_H_
/* TLE6240 pins go right after on chips */
#define TLE6240_PIN(n) ((brain_pin_e)((int)BRAIN_PIN_LAST_ONCHIP + 1 + (n)))
/* MC33972 pins go right after TLE6240 */
#define MC33972_PIN(n) ((brain_pin_e)((int)BRAIN_PIN_LAST_ONCHIP + 1 + 16 + (n)))
void initSmartGpio(void);
void startSmartCsPins();
void stopSmartCsPins();
2019-04-13 07:58:52 -07:00
#endif /* HW_LAYER_SMART_GPIO_H_ */