ardupilot/libraries/AP_HAL_ChibiOS/hwdef/common/spi_hook.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
560 B
C
Raw Normal View History

2018-04-28 21:09:09 -03:00
#pragma once
#include "hal.h"
#ifdef __cplusplus
extern "C" {
#endif
#if HAL_USE_MMC_SPI == TRUE
void spiStartHook(SPIDriver *spip, const SPIConfig *config);
void spiStopHook(SPIDriver *spip);
void spiAcquireBusHook(SPIDriver *spip);
void spiReleaseBusHook(SPIDriver *spip);
2018-04-28 21:09:09 -03:00
void spiSelectHook(SPIDriver *spip);
void spiUnselectHook(SPIDriver *spip);
void spiIgnoreHook(SPIDriver *spip,size_t n);
void spiSendHook(SPIDriver *spip,size_t n, const void *txbuf);
void spiReceiveHook(SPIDriver *spip, size_t n, void *rxbuf);
#endif
#ifdef __cplusplus
}
#endif