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);
|
2023-05-12 23:02:26 -03:00
|
|
|
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
|