src/peripherals.c
/*
 * @brief  Configures EXTI hardware for interruptions
 * @param  None
 * retval  None
 */
@brief  Configures EXTI hardware for interruptions
@param  None
retval  None
@brief Configures EXTI hardware for interruptions @param None retval None
void EXTI_Configuration(void)
{
	EXTI_InitTypeDef EXTI_InitStructure;
	GPIO_EXTILineConfig(GPIO_PortSourceGPIOA, GPIO_PinSource0);
	GPIO_EXTILineConfig(GPIO_PortSourceGPIOA, GPIO_PinSource1);
	EXTI_InitStructure.EXTI_Line = EXTI_Line0;
	EXTI_InitStructure.EXTI_Mode = EXTI_Mode_Interrupt;
	EXTI_InitStructure.EXTI_Trigger = EXTI_Trigger_Rising_Falling;
	EXTI_InitStructure.EXTI_LineCmd = ENABLE;
	EXTI_Init(&EXTI_InitStructure);
	EXTI_InitStructure.EXTI_Line = EXTI_Line1;
	EXTI_InitStructure.EXTI_Mode = EXTI_Mode_Interrupt;
	EXTI_InitStructure.EXTI_Trigger = EXTI_Trigger_Rising_Falling;
	EXTI_InitStructure.EXTI_LineCmd = ENABLE;
	EXTI_Init(&EXTI_InitStructure);
}
void EXTI_Configuration ( void ) { EXTI_InitTypeDef EXTI_InitStructure ; GPIO_EXTILineConfig ( GPIO_PortSourceGPIOA , GPIO_PinSource0 ) ; GPIO_EXTILineConfig ( GPIO_PortSourceGPIOA , GPIO_PinSource1 ) ; EXTI_InitStructure . EXTI_Line = EXTI_Line0 ; EXTI_InitStructure . EXTI_Mode = EXTI_Mode_Interrupt ; EXTI_InitStructure . EXTI_Trigger = EXTI_Trigger_Rising_Falling ; EXTI_InitStructure . EXTI_LineCmd = ENABLE ; EXTI_Init ( & EXTI_InitStructure ) ; EXTI_InitStructure . EXTI_Line = EXTI_Line1 ; EXTI_InitStructure . EXTI_Mode = EXTI_Mode_Interrupt ; EXTI_InitStructure . EXTI_Trigger = EXTI_Trigger_Rising_Falling ; EXTI_InitStructure . EXTI_LineCmd = ENABLE ; EXTI_Init ( & EXTI_InitStructure ) ; }
@brief  Configures EXTI hardware for interruptions
 @param  None
 retval  None
@brief Configures EXTI hardware for interruptions @param None retval None
/* Connect EXTI0 Line to PA.00 pin */ /* Connect EXTI0 Line to PA.01 pin */ /* Configure EXTI0 line */ /* Configure EXTI1 line */