AvrIO  1.4.5
Bibliothèque C modulaire pour ATMEL AVR
switch.h
1 
18 #ifndef _AVRIO_SWITCH_H_
19 #define _AVRIO_SWITCH_H_
20 
21 #include <avrio/defs.h>
22 
23 __BEGIN_C_DECLS
24 /* ========================================================================== */
25 # include "avrio-config.h"
26 # ifdef AVRIO_SWITCH_ENABLE
27 # include "avrio-board-switch.h"
46 /* internal public functions ================================================ */
50 void vSwitchInit (void);
51 
55 xSwitch xSwitchGet (void);
56 
57 # if defined(__DOXYGEN__)
58 /*
59  * __DOXYGEN__ defined
60  * Partie documentation ne devant pas être compilée.
61  * =============================================================================
62  */
63 
64 /* types ==================================================================== */
71 typedef xSwitch;
72 
77 # else
78 /*
79  * __DOXYGEN__ not defined
80  * Partie ne devant pas être documentée.
81  * =============================================================================
82  */
83 # endif /* __DOXYGEN__ not defined */
84 # else /* AVRIO_SWITCH_ENABLE not defined */
85 #warning "AVRIO_SWITCH_ENABLE undefined, using a bogus implementation !"
86 typedef uint8_t xSwitch;
87 # define vSwitchInit()
88 # define xSwitchGet() (xSwitch)(0)
89 
90 # endif /* AVRIO_SWITCH_ENABLE defined */
91 /* ========================================================================== */
92 __END_C_DECLS
93 #endif /* _AVRIO_SWITCH_H_ */
xSwitch xSwitchGet(void)
void vSwitchInit(void)
typedef xSwitch
Type renvoyé pour la lecture des switchs.
Definition: switch.h:71