When I use a formula to set the prescaler instead of a specific value, an unexpected macro will appear in the generated code.This problem does not appear on STM32CubeMX. Is this a BUG?
Thank you for your reply.I have implemented what I need.:grinning_face: BTW, Maybe there was something wrong with my previous test, STM32CubeMX has the same BUG.