Skip to content

Commit 10ced2e

Browse files
Cruz Monrreal IICruz Monrreal II
authored andcommitted
Merge branch 'naveenkaje-interruptin_doc_update' into rollup-aus_writathon
2 parents 740f50e + 8ebfafe commit 10ced2e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

drivers/InterruptIn.h

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ namespace mbed {
4848
* }
4949
*
5050
* int main() {
51+
* // register trigger() to be called upon the rising edge of event
5152
* event.rise(&trigger);
5253
* while(1) {
5354
* led = !led;
@@ -71,7 +72,10 @@ class InterruptIn : private NonCopyable<InterruptIn> {
7172
* and the pin configured to the specified mode.
7273
*
7374
* @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+
*
7579
*/
7680
InterruptIn(PinName pin, PinMode mode);
7781

@@ -142,11 +146,12 @@ class InterruptIn : private NonCopyable<InterruptIn> {
142146

143147
/** Set the input pin mode
144148
*
145-
* @param pull PullUp, PullDown, PullNone
149+
* @param pull PullUp, PullDown, PullNone, PullDefault
150+
* See PinNames.h for your target for definitions)
146151
*/
147152
void mode(PinMode pull);
148153

149-
/** Enable IRQ. This method depends on hw implementation, might enable one
154+
/** Enable IRQ. This method depends on hardware implementation, might enable one
150155
* port interrupts. For further information, check gpio_irq_enable().
151156
*/
152157
void enable_irq();
@@ -157,7 +162,7 @@ class InterruptIn : private NonCopyable<InterruptIn> {
157162
void disable_irq();
158163

159164
static void _irq_handler(uint32_t id, gpio_irq_event event);
160-
165+
#if !defined(DOXYGEN_ONLY)
161166
protected:
162167
gpio_t gpio;
163168
gpio_irq_t gpio_irq;
@@ -166,6 +171,7 @@ class InterruptIn : private NonCopyable<InterruptIn> {
166171
Callback<void()> _fall;
167172

168173
void irq_init(PinName pin);
174+
#endif
169175
};
170176

171177
} // namespace mbed

0 commit comments

Comments
 (0)