TLx493D 3D Hall Sensor Generic Library  1.3
Generic library for the TLx493D 3D Hall sensor family
conf_interrupts.h
Go to the documentation of this file.
1 /*
2 *****************************************************************************
3 * Copyright (C) 2019 Infineon Technologies AG. All rights reserved.
4 *
5 * Infineon Technologies AG (INFINEON) is supplying this file for use
6 * exclusively with Infineon's products. This file can be freely
7 * distributed within development tools and software supporting such microcontroller
8 * products.
9 *
10 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
11 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
13 * INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR DIRECT, INDIRECT, INCIDENTAL,
14 * ASPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
15 *
16 ******************************************************************************
17 */
18 
22 #ifndef SRC_GENERAL_CONF_ERU_H_
23 #define SRC_GENERAL_CONF_ERU_H_
24 
25 #include <xmc_eru.h>
26 
27 /* ERU config */
28 static const XMC_ERU_ETL_CONFIG_t CONF_SCL_PIN_INT_ERU =
29 {
30  // Input Pin P2.11
31  .input_b = XMC_ERU_ETL_INPUT_B1,
32  // P2.11
33  .source = XMC_ERU_ETL_SOURCE_B,
34  .edge_detection = XMC_ERU_ETL_EDGE_DETECTION_RISING,
35  .status_flag_mode = XMC_ERU_ETL_STATUS_FLAG_MODE_HWCTRL,
36  .enable_output_trigger = true,
37  .output_trigger_channel = XMC_ERU_ETL_OUTPUT_TRIGGER_CHANNEL0
38 };
39 
40 /* ERU_OGU config */
41 static const XMC_ERU_OGU_CONFIG_t CONF_SCL_PIN_OGU =
42 {
43  .service_request = XMC_ERU_OGU_SERVICE_REQUEST_ON_TRIGGER,
44  .enable_pattern_detection = false,
45 };
46 
47 #endif /* SRC_GENERAL_CONF_ERU_H_ */