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"
|
2020-09-23 11:06:22 -07:00
|
|
|
#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
|
2021-01-06 15:29:47 -08:00
|
|
|
#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
|
|
|
|