Adds a const buffer listener (#742)

Replaces need for const_cast in SPI and I2C functions
This commit is contained in:
Thad House
2017-11-17 10:01:49 -08:00
committed by Peter Johnson
parent a20474bfc7
commit cd1dbb1e3a
10 changed files with 55 additions and 10 deletions

View File

@@ -30,7 +30,7 @@ int32_t HALSIM_RegisterSPIReadCallback(int32_t index,
void HALSIM_CancelSPIReadCallback(int32_t index, int32_t uid);
int32_t HALSIM_RegisterSPIWriteCallback(int32_t index,
HAL_BufferCallback callback,
HAL_ConstBufferCallback callback,
void* param);
void HALSIM_CancelSPIWriteCallback(int32_t index, int32_t uid);