TLx493D 3D Hall Sensor Generic Library  0.2
Generic library for the TLx493D 3D Hall sensor family
conf_ERU.h
Go to the documentation of this file.
1 /*
2  * conf_ERU.h
3  *
4  * Created on: Sep 12, 2018
5  * Author: nicolaem
6  */
7 
11 #ifndef SRC_GENERAL_CONF_ERU_H_
12 #define SRC_GENERAL_CONF_ERU_H_
13 
14 #include <xmc_eru.h>
15 
16 /* ERU config */
17 static const XMC_ERU_ETL_CONFIG_t CONF_SCL_PIN_INT_ERU =
18 {
19  .input_b = XMC_ERU_ETL_INPUT_B1,
20  .source = XMC_ERU_ETL_SOURCE_B,
21  .edge_detection = XMC_ERU_ETL_EDGE_DETECTION_RISING,
22  .status_flag_mode = XMC_ERU_ETL_STATUS_FLAG_MODE_HWCTRL,
23  .enable_output_trigger = true,
24  .output_trigger_channel = XMC_ERU_ETL_OUTPUT_TRIGGER_CHANNEL0
25 };
26 
27 /* ERU_OGU config */
28 static const XMC_ERU_OGU_CONFIG_t CONF_SCL_PIN_OGU =
29 {
30  .service_request = XMC_ERU_OGU_SERVICE_REQUEST_ON_TRIGGER,
31  .enable_pattern_detection = false
32 };
33 
34 #endif /* SRC_GENERAL_CONF_ERU_H_ */