Hello:
How do you guys start developing embedded code that can be used in a different set of microcontrollers of the same vendor?
I want to develop some device drivers for different Renesas microcontrollers, specifically the 78K0R/FB3 and 78K0R/FC3.
As a note one has more timers than the other and to generate PWM outputs you need to timer channels, one for the period and the other for the duty cycle.
For example I want to create a function for PWM that can be used on either micro.
Let's say something like void PWM_SetPWMOutput(ChannelRef Channel, U32 Period, U8 DutyCycle).
Should I use something like HAL (Hardware Abstraction Layers)?
Any website you know for further reading?
Most of the google results are specific for certain RTO's includying Linux.
Thanks
How do you guys start developing embedded code that can be used in a different set of microcontrollers of the same vendor?
I want to develop some device drivers for different Renesas microcontrollers, specifically the 78K0R/FB3 and 78K0R/FC3.
As a note one has more timers than the other and to generate PWM outputs you need to timer channels, one for the period and the other for the duty cycle.
For example I want to create a function for PWM that can be used on either micro.
Let's say something like void PWM_SetPWMOutput(ChannelRef Channel, U32 Period, U8 DutyCycle).
Should I use something like HAL (Hardware Abstraction Layers)?
Any website you know for further reading?
Most of the google results are specific for certain RTO's includying Linux.
Thanks