How to generate positive and negative pwm signals with nucleo-F746ZG when user gives frequency an run dc motor using bts7960b with it

Ok, but how you will tell to the board this value? - Via a Pot and ADC, or directly value through Serial port or Ethernet?

BTW I found this library - IBT2 - Library for driving the IBT-2 H-bridge motor cont… | Mbed
Also with an example code - IBT 2 Example Code - | Mbed (just replace wait(0.1) with thred_sleep_for(100)) and it could work I think.

BR, Jan