For this issue I also got a problem with dynamic allocation of I2C drivers.
When I plug an I2C module, I can detect it and do something like that :
if((adc.modA_status==MOD_I2C) && (MODAPortID==0)){
tIICParameters.Channel = MODA_IIC_CHANNEL;
MODAPortID = fnOpen( TYPE_IIC, FOR_I_O, &tIICParameters); // open the channel with defined configurations
}
When I unplug it (to plug another sort of module) I wanted to shut down the corresponding MODAPortID driver.
But I did not found any
fnClose()....
Is it normal?
What is the best way to free the corresponding buffer ?
Can I use
fnFreeBuffer() ? Is it enough ?
Regards