I am working with the Discovery Development Board and I currently trying to get the external interrupts/events working properly. I read in the refererence manual that there are 2 types of enable bits for external interrupts/events, EXTI_EMR and EXTI_IMR. What are the differences between these 2 and when should I use one or the other? In school I learned that interrupts are generated in hardware and are very low-level and events are more high-level and exist in software/firmware, but the STM32F procosssors seem to have both of them??? Can someone please explain?