eLooM for STM32 application  v3.3.0
A framework for multitasking low power embedded applications powerd by STM32
Loading...
Searching...
No Matches
EXTIPinMap.h
Go to the documentation of this file.
1
37#ifndef INCLUDE_DRIVERS_EXTIPINMAP_H_
38#define INCLUDE_DRIVERS_EXTIPINMAP_H_
39
40#ifdef __cplusplus
41extern "C" {
42#endif
43
44#include <stdint.h>
46
47
48#define EXTI_DECLARE_PIN2F_MAP() \
49 extern const EXTIMapEntry g_xExtiPin2FMap[];
50
51#define EXTI_GET_P2F_MAP() g_xExtiPin2FMap
52
53#define EXTI_BEGIN_P2F_MAP() \
54 const EXTIMapEntry g_xExtiPin2FMap[] = {
55
56#define EXTI_P2F_MAP_ENTRY(pin, callbackF) \
57 { (pin), (callbackF) },
58
59#define EXTI_END_P2F_MAP() \
60 { 0, 0 }\
61 };
62
63typedef void ExtiCallbackF(uint16_t nPin);
64
65struct _EXTIMapEntry {
69 uint16_t nPin;
70
74 ExtiCallbackF *pfCallback;
75};
76
77typedef struct _EXTIMapEntry EXTIMapEntry;
78
79typedef const EXTIMapEntry* EXTIPin2CallbckMap;
80
81
82#ifdef __cplusplus
83}
84#endif
85
86
87#endif /* INCLUDE_DRIVERS_EXTIPINMAP_H_ */
Umbrella header for the basic system features.