/* * hardware.h * * @date May 27, 2013 * @author Andrey Belomutskiy, (c) 2012-2014 */ #ifndef HARDWARE_H_ #define HARDWARE_H_ #include "main.h" #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ void turnOnSpi(spi_device_e device); void lockSpi(spi_device_e device); void unlockSpi(void); #ifdef __cplusplus } #endif /* __cplusplus */ #define GET_BOARD_TEST_MODE_VALUE() (!palReadPad(getHwPort(boardConfiguration->boardTestModeJumperPin), getHwPin(boardConfiguration->boardTestModeJumperPin))) #ifdef __cplusplus #include "engine.h" void initHardware(Logging *logging, Engine *engine); #endif /* __cplusplus */ #endif /* HARDWARE_H_ */