You don't mention a board, but typically the builds have an xyz_hw_conf.h type file, and that addresses 95% of things that need definitions changed. Might need to chase down an interrupt handler and GPIO_AF setting, or double check them.
Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..