2014-08-19 05:43 AM
2014-08-19 07:12 AM
It's just a way to let you choose a different set of pins for the peripheral functions - for the convenience of your PCB design and/or to avoid conflicts with other peripheral functions.
Look at the chip datasheet for details...2014-08-19 07:18 AM
Or more specifically the Reference Manual
Although the pins you are using shouldn't need remapping, and you failed to enable the AFIO peripheral clock to permit the remap to work.2014-08-19 10:19 AM
Thanks guys,
Then my guss was correct about remap. but I still don't know why he/she has used remap?2014-08-19 11:34 AM
but I still don't know why he/she has used remap?
I have no idea where you lifted the code from either, people tend to post code here they have problems with, or are a random hodge-podge of cut-n-paste from other similar examples, basically throwing mud at a wall hoping some will stick?