I imagine that if you have a conversion function xyz(native, final) you can have multiple implementations:
Code: Select all
#if defined(STM32F1)
xyz(native, final) {
}
#elif defined(STM32F2_4)
xyz(native, final) {
}
#elif
....
It does not look complex just the code is into another module.
Giovanni