Hi,
I am working on a module that will act as a i2c slave.
When providing the buffer for the twis library, it is unclear if the buffer should me made volatile or not using the SDK.
Could you please help me understanding this. A buffer is provided for the hardware to put rx data in it, so I would think of making it volatile.
But the function to provide the buffer has no qualifier for volatile in its argument:
ret_code_t nrf_drv_twis_tx_prepare(
nrf_drv_twis_t const * const p_inst,
void const * const p_buf,
size_t size)
What would be your recommendation here ?Thanks for your advice. Note: the buffer is used in the twis handler, and somewhere outside.
Best regards,
Hector.