Revision f3ac1c96 core/inc/aos_types.h
core/inc/aos_types.h | ||
---|---|---|
29 | 29 |
|
30 | 30 |
#include <ch.h> |
31 | 31 |
|
32 |
/** |
|
33 |
* @brief Converts a GPIO pad number to a unique event flag. |
|
34 |
*/ |
|
35 |
#define AOS_IOEVENT_FLAG(pad) ((eventflags_t)1 << pad) |
|
32 |
/******************************************************************************/ |
|
33 |
/* CONSTANTS */ |
|
34 |
/******************************************************************************/ |
|
35 |
|
|
36 |
/******************************************************************************/ |
|
37 |
/* SETTINGS */ |
|
38 |
/******************************************************************************/ |
|
39 |
|
|
40 |
/******************************************************************************/ |
|
41 |
/* CHECKS */ |
|
42 |
/******************************************************************************/ |
|
43 |
|
|
44 |
/******************************************************************************/ |
|
45 |
/* DATA STRUCTURES AND TYPES */ |
|
46 |
/******************************************************************************/ |
|
36 | 47 |
|
37 | 48 |
/** |
38 | 49 |
* @brief Error codes used in AMiRo-OS. |
... | ... | |
47 | 58 |
} aos_status_t; |
48 | 59 |
|
49 | 60 |
|
61 |
/******************************************************************************/ |
|
62 |
/* MACROS */ |
|
63 |
/******************************************************************************/ |
|
64 |
|
|
65 |
/** |
|
66 |
* @brief Converts a GPIO pad number to a unique event flag. |
|
67 |
*/ |
|
68 |
#define AOS_IOEVENT_FLAG(pad) ((eventflags_t)1 << pad) |
|
69 |
|
|
70 |
/******************************************************************************/ |
|
71 |
/* EXTERN DECLARATIONS */ |
|
72 |
/******************************************************************************/ |
|
73 |
|
|
74 |
/******************************************************************************/ |
|
75 |
/* INLINE FUNCTIONS */ |
|
76 |
/******************************************************************************/ |
|
77 |
|
|
50 | 78 |
#endif /* AMIROOS_TYPES_H */ |
79 |
|
|
51 | 80 |
/** @} */ |
Also available in: Unified diff