@@ -48,6 +48,7 @@ namespace mbed {
48
48
* }
49
49
*
50
50
* int main() {
51
+ * // register trigger() to be called upon the rising edge of event
51
52
* event.rise(&trigger);
52
53
* while(1) {
53
54
* led = !led;
@@ -71,7 +72,10 @@ class InterruptIn : private NonCopyable<InterruptIn> {
71
72
* and the pin configured to the specified mode.
72
73
*
73
74
* @param pin InterruptIn pin to connect to
74
- * @param mode The mode to set the pin to (PullUp/PullDown/etc.)
75
+ * @param mode Desired Pin mode configuration.
76
+ * (Valid values could be PullNone, PullDown, PullUp and PullDefault.
77
+ * See PinNames.h for your target for definitions)
78
+ *
75
79
*/
76
80
InterruptIn (PinName pin, PinMode mode);
77
81
@@ -142,11 +146,12 @@ class InterruptIn : private NonCopyable<InterruptIn> {
142
146
143
147
/* * Set the input pin mode
144
148
*
145
- * @param pull PullUp, PullDown, PullNone
149
+ * @param pull PullUp, PullDown, PullNone, PullDefault
150
+ * See PinNames.h for your target for definitions)
146
151
*/
147
152
void mode (PinMode pull);
148
153
149
- /* * Enable IRQ. This method depends on hw implementation, might enable one
154
+ /* * Enable IRQ. This method depends on hardware implementation, might enable one
150
155
* port interrupts. For further information, check gpio_irq_enable().
151
156
*/
152
157
void enable_irq ();
@@ -157,7 +162,7 @@ class InterruptIn : private NonCopyable<InterruptIn> {
157
162
void disable_irq ();
158
163
159
164
static void _irq_handler (uint32_t id, gpio_irq_event event);
160
-
165
+ # if !defined(DOXYGEN_ONLY)
161
166
protected:
162
167
gpio_t gpio;
163
168
gpio_irq_t gpio_irq;
@@ -166,6 +171,7 @@ class InterruptIn : private NonCopyable<InterruptIn> {
166
171
Callback<void ()> _fall;
167
172
168
173
void irq_init (PinName pin);
174
+ #endif
169
175
};
170
176
171
177
} // namespace mbed
0 commit comments