I can find no mention of when it would be required to enable the AFIO clock. The firmware library examples sometimes enable but mostly don't. The documentation says nothing about it. Could somebody clarify when it should be enabled please? Does anybody actually know?! Thanks, Nick.
Check Section 7.4 AFIO registers in the RM0008: Note: To read/write the AFIO_EVCR,AFIO_MAPR and AFIO_EXTICRX registers, the AFIO clock should first be enabled. Chris
I tried searching before I asked. Honestly. Thanks again for your help. Regards, Nick. Ps, The EXTI worked for me when it was connected to PA0 (WITHOUT having the AFIO clock enabled). Perhaps the AFIO clock is only required when the EXTI lines are connected to pins other than on Port A (default)? Cheers.