TLx493D 3D Hall Sensor Generic Library  1.3
Generic library for the TLx493D 3D Hall sensor family
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_ERU_H_
23 #define SRC_GENERAL_ERU_H_
24 
25 #include <stdbool.h>
26 #include <XMC1100.h>
27 
33 void INT_init_ext_interrupts(void);
34 
38 static inline void INT_int_ext_enable(void)
39 {
40  NVIC_ClearPendingIRQ(CCU40_0_IRQn);
41  NVIC_ClearPendingIRQ(ERU0_0_IRQn);
42  NVIC_EnableIRQ(CCU40_0_IRQn);
43  NVIC_EnableIRQ(ERU0_0_IRQn);
44 }
45 
49 static inline void INT_int_ext_disable(void)
50 {
51  NVIC_DisableIRQ(CCU40_0_IRQn);
52  NVIC_DisableIRQ(ERU0_0_IRQn);
53 }
54 
59 bool INT_get_TLI_detected(void);
60 
61 #endif /* SRC_GENERAL_ERU_H_ */
void INT_init_ext_interrupts(void)
Enable falling edge interrupt on P2.11 and P0.0 (TLI support) Using ERU and CCU4 slice CC40 (0) And p...
Definition: interrupts.c:42
bool INT_get_TLI_detected(void)
Return value of flag showing TLI detected. Requires sensor be kept in Low Power/Fast Mode until a pul...
Definition: interrupts.c:134