rusefi-1/firmware/hw_layer/smart_gpio.h

30 lines
651 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
*/
2020-04-01 16:00:56 -07:00
#pragma once
2019-04-13 07:58:52 -07:00
2020-04-06 10:05:30 -07:00
#if EFI_PROD_CODE
#include "drivers/gpio/mc33810.h"
#include "drivers/gpio/tle6240.h"
#include "drivers/gpio/mc33972.h"
#include "drivers/gpio/tle8888.h"
#include "drivers/gpio/drv8860.h"
2020-04-06 10:05:30 -07:00
#endif /* EFI_PROD_CODE */
2020-04-06 11:13:29 -07:00
#if EFI_UNIT_TEST
#define BOARD_EXT_GPIOCHIPS 3
#else
#define BOARD_EXT_GPIOCHIPS (BOARD_TLE6240_COUNT + BOARD_MC33972_COUNT + BOARD_TLE8888_COUNT + BOARD_DRV8860_COUNT + BOARD_MC33810_COUNT)
2020-04-06 11:13:29 -07:00
#endif
2019-04-13 07:58:52 -07:00
void initSmartGpio(void);
2020-04-06 11:13:29 -07:00
void startSmartCsPins(void);
void stopSmartCsPins(void);
2019-04-13 07:58:52 -07:00
void tle8888startup(void);