HAL driver with two different peripherals
Posted: Fri Oct 21, 2016 8:15 pm
Hi,
I was wondering what would be the best/preferred way to implement a HAL driver which has two different hardware peripherals.
In my case a PWM driver for a PWM peripheral and a timer peripheral capable of generating PWM signals. If they will not exist in the application at the same time there is not really a problem, but what if they do have to exist both in the same application? Is it even possible in the current HAL?
Marco
I was wondering what would be the best/preferred way to implement a HAL driver which has two different hardware peripherals.
In my case a PWM driver for a PWM peripheral and a timer peripheral capable of generating PWM signals. If they will not exist in the application at the same time there is not really a problem, but what if they do have to exist both in the same application? Is it even possible in the current HAL?
Marco