Programmable controller for L298n DC Motor driver

Anything . What are your criteria (size,price,I/O etc..) The L293 requires a direction and pwm per motor (2 I/O).
When you specify your criteria we can answer your question. You could use $3 ATtiny85's if you wanted (8-pin DIP IC).