Arduino ide + stm32f103

hello dear friends. I ask you to show understanding and help me understand. I have a stm32f103 microcontroller. I need to make a remap PA7 to use TIM1_CH1 instead of TIM3_CH2. can you tell me how to do this? do I need to enable spi1_miso?