stm32: flash: f24: Make code match documentation

This removes the shift from the defines, and includes them in the helper
function, making the code match the documentation, and following how the
rest of the library commonly operates.

Code using the existing defines should continue to work.