/** * @brief Initialize the STMTouch Driver * @param None * @retval None */ void tsl_user_Init(void) { TSL_obj_GroupInit(&MyObjGroup); /* Init Objects */ TSL_Init(MyBanks); /* Init acquisition module */ tsl_user_SetThresholds(); /* Init thresholds for each object individually (optional) */ }
/** * @brief Initialize the STMTouch Driver * @param None * @retval None */ void TSL_user_Init(void) { #if TSLPRM_USE_SHIELD == 0 TSL_user_InitGPIOs(); #endif TSL_obj_GroupInit(&MyObjGroup); // Init Objects TSL_Init(MyBanks); // Init timing and acquisition modules TSL_user_SetThresholds(); // Init thresholds for each object individually }
/** * @brief Initialize the STMTouch Driver * @param None * @retval None */ void TSL_user_Init(void) { #if TSLPRM_TSC_GPIO_CONFIG == 0 /* Automatic GPIO configuration not selected: This function must be created by the user to initialize the Touch Sensing GPIOs. */ TSL_user_InitGPIOs(); #endif TSL_obj_GroupInit(&MyObjGroup); /* Init Objects */ TSL_Init(MyBanks); /* Init timing and acquisition modules */ }
/** * @brief Initialize the STMTouch Driver * @param None * @retval None */ void tsl_user_Init(void) { TSL_obj_GroupInit(&MyObjGroup); /* Init Objects */ TSL_Init(MyBanks); /* Init acquisition module */ tsl_user_SetThresholds(); /* Init thresholds for each object individually (optional) */ /* Configure first bank and start acquisition in Interrupt mode */ idx_bank = 0; TSL_acq_BankConfig(idx_bank); TSL_acq_BankStartAcq_IT(); }