src/peripherals.c
/*
 * @brief  Configures NVIC hardware interrupts
 * @param  None
 * @retval None
 */
@brief  Configures NVIC hardware interrupts
@param  None
@retval None
@brief Configures NVIC hardware interrupts @param None @retval None
void NVIC_Configuration(void)
{
	NVIC_InitTypeDef NVIC_InitStructure;
	NVIC_InitStructure.NVIC_IRQChannel = EXTI0_IRQn;
	NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0x00;
	NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0x00;
	NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
	NVIC_Init(&NVIC_InitStructure);
	NVIC_InitStructure.NVIC_IRQChannel = EXTI1_IRQn;
	NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0x00;
	NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0x00;
	NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
	NVIC_Init(&NVIC_InitStructure);
}
void NVIC_Configuration ( void ) { NVIC_InitTypeDef NVIC_InitStructure ; NVIC_InitStructure . NVIC_IRQChannel = EXTI0_IRQn ; NVIC_InitStructure . NVIC_IRQChannelPreemptionPriority = 0x00 ; NVIC_InitStructure . NVIC_IRQChannelSubPriority = 0x00 ; NVIC_InitStructure . NVIC_IRQChannelCmd = ENABLE ; NVIC_Init ( & NVIC_InitStructure ) ; NVIC_InitStructure . NVIC_IRQChannel = EXTI1_IRQn ; NVIC_InitStructure . NVIC_IRQChannelPreemptionPriority = 0x00 ; NVIC_InitStructure . NVIC_IRQChannelSubPriority = 0x00 ; NVIC_InitStructure . NVIC_IRQChannelCmd = ENABLE ; NVIC_Init ( & NVIC_InitStructure ) ; }
@brief  Configures NVIC hardware interrupts
 @param  None
 @retval None
@brief Configures NVIC hardware interrupts @param None @retval None
/* Enable and set EXTI0 Interrupt to the lowest priority */ /* Enable and set EXTI0 Interrupt to the lowest priority */