/* Enables or disables the specified KeyScan interrupts mask.  */
void KeyScan_INTConfig(KEYSCAN_TypeDef *KeyScan, uint32_t KeyScan_IT, u8 newState)
/* Enables or disables the specified KeyScan interrupts mask.  */
void KeyScan_INTConfig(KEYSCAN_TypeDef *KeyScan, uint32_t KeyScan_IT, u8 newState)
{
	assert_param(IS_KEYSCAN_ALL_PERIPH(KeyScan));
	if (newState == ENABLE) {
		KeyScan->KS_IMR |= KeyScan_IT;
	} else {
		KeyScan->KS_IMR &= (~KeyScan_IT);
	}
}