Example #1
0
static void config_rotor_sliders(void)
{
#if (QT_NUM_CHANNELS == 8u)
    {
        /*  Call this function if library used is 8 channel library with KRS Configuration  */
        config_8ch_krs();
    }
#endif
#if (QT_NUM_CHANNELS == 16u)
    {
        /*  Call this function if library used is 16 channel library with KRS Configuration */
        config_16ch_krs();
    }
#endif
#if (QT_NUM_CHANNELS == 32u)
    {
        /*  Call this function if library used is 32 channel library with KRS Configuration */
        config_32ch_krs();
    }
#endif
#if (QT_NUM_CHANNELS == 64u)
    {
        /*  Call this function if library used is 64 channel library with KRS Configuration */
        config_64ch_krs();
    }
#endif
}
Example #2
0
//! \brief Configure the sensors for rotor,slider along with keys
static void config_rotor_sliders(void)
{
// Call this function if library is 8 channel library with KRS Configuration
#if (QT_NUM_CHANNELS == 8u)
	{
		config_8ch_krs();
	}
#endif
// Call this function if library is 16 channel library with KRS Configuration
#if (QT_NUM_CHANNELS == 16u)
	{
		config_16ch_krs();
	}
#endif
// Call this function if library is 32 channel library with KRS Configuration
#if (QT_NUM_CHANNELS == 32u)
	{
		config_32ch_krs();
	}
#endif
}