summaryrefslogtreecommitdiffstats
path: root/watch-library/watch/watch_extint.h
diff options
context:
space:
mode:
authorJoey Castillo <jose.castillo@gmail.com>2021-09-14 15:12:30 -0400
committerJoey Castillo <jose.castillo@gmail.com>2021-09-14 15:12:30 -0400
commitcb98f29e5778974ebd91b99f9757c63726b62e51 (patch)
tree8e74eca01b2f7012697725acf400bba29e0d378e /watch-library/watch/watch_extint.h
parente4c1700806d348811b8932004cfa268a40a00636 (diff)
downloadSensor-Watch-cb98f29e5778974ebd91b99f9757c63726b62e51.tar.gz
Sensor-Watch-cb98f29e5778974ebd91b99f9757c63726b62e51.tar.bz2
Sensor-Watch-cb98f29e5778974ebd91b99f9757c63726b62e51.zip
more work on alternate board pinouts
Diffstat (limited to 'watch-library/watch/watch_extint.h')
-rw-r--r--watch-library/watch/watch_extint.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/watch-library/watch/watch_extint.h b/watch-library/watch/watch_extint.h
index e3084371..9c810534 100644
--- a/watch-library/watch/watch_extint.h
+++ b/watch-library/watch/watch_extint.h
@@ -59,16 +59,15 @@ void watch_disable_external_interrupts();
* want to detect both rising and falling conditions (i.e. button down and button up), use
* INTERRUPT_TRIGGER_BOTH and use watch_get_pin_level to check the pin level in your callback
* to determine which condition caused the interrupt.
- * @param pin One of pins BTN_LIGHT, BTN_MODE, BTN_ALARM, or A0-A5. If the pin parameter matches one of
+ * @param pin One of pins BTN_LIGHT, BTN_MODE, BTN_ALARM, or A0-A4. If the pin parameter matches one of
* the three button pins, this function will also enable an internal pull-down resistor. If
- * the pin parameter is A0-A5, you are responsible for setting any required pull configuration
+ * the pin parameter is A0-A4, you are responsible for setting any required pull configuration
* using watch_enable_pull_up or watch_enable_pull_down.
* @param callback The function you wish to have called when the button is pressed.
* @param trigger The condition on which you wish to trigger: rising, falling or both.
* @note The alarm button and pin A2 share an external interrupt channel EXTINT[2]; you can only use one
* or the other. However! These pins both have an alternate method of triggering via the RTC tamper
- * interrupt, which for A2 at least has the added benefit of being able to trigger in the low-power
- * BACKUP mode.
+ * interrupt, which has the added benefit of not requiring the external interrupt controller at all.
* @see watch_register_extwake_callback
*/
void watch_register_interrupt_callback(const uint8_t pin, ext_irq_cb_t callback, watch_interrupt_trigger trigger);